Skip to content

GitLab to Terraform

Hashicorp asked about how to deploy from GitLab to Terraform. A push of the master branch would trigger a new deploy. They already made an integration for GitHub.

I think for configuring this a project service would be appropriate http://docs.gitlab.com/ee/project_services/project_services.html

The alternative is something in .gitlab-ci.yml like we did with deploy to Kubernetes https://about.gitlab.com/2016/03/22/gitlab-8-6-released/ but that might be less user friendly.

GitHub has a deploy api that lets you set a url to navigate to the deploy target https://developer.github.com/v3/repos/deployments/

We have environments that now allow you to set a url https://about.gitlab.com/2016/08/22/gitlab-8-11-released/#deployment-status-in-merge-requests so maybe we can use that.

@markpundsack what do you think? /cc @JobV @ayufan @stanhu @DouweM @dzaporozhets