MON-336 convert bitbucket pipeline to gitlab ci

This commit is contained in:
Quentin Manfroi 2018-10-23 14:57:06 +02:00
parent 75ec51ddf4
commit 1afa95a126
2 changed files with 16 additions and 15 deletions

16
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,16 @@
image: hashicorp/terraform:full
stages:
- test
test_auto_update:
stage: test
script:
- apk update
- apk upgrade
- apk add --no-cache bash git grep coreutils curl
- curl -Lo /usr/local/bin/terraform-docs "https://github.com/$(curl -s https://github.com/segmentio/terraform-docs/releases | grep terraform-docs-v0.4.0-linux-amd | head -n 1 | cut -d '"' -f 2)"
- chmod +x /usr/local/bin/terraform-docs
- ./scripts/auto_update.sh
- git status
- git diff --exit-code

View File

@ -1,15 +0,0 @@
image: hashicorp/terraform:full
pipelines:
default:
- step:
name: Check auto update
script:
- apk update
- apk upgrade
- apk add --no-cache bash git grep coreutils curl
- curl -Lo /usr/local/bin/terraform-docs "https://github.com/$(curl -s https://github.com/segmentio/terraform-docs/releases | grep terraform-docs-v0.4.0-linux-amd | head -n 1 | cut -d '"' -f 2)"
- chmod +x /usr/local/bin/terraform-docs
- ./scripts/auto_update.sh
- git status
- git diff --exit-code