From 1afa95a126b803862f9e9034b23afce5696c82d8 Mon Sep 17 00:00:00 2001 From: Quentin Manfroi Date: Tue, 23 Oct 2018 14:57:06 +0200 Subject: [PATCH] MON-336 convert bitbucket pipeline to gitlab ci --- .gitlab-ci.yml | 16 ++++++++++++++++ bitbucket-pipelines.yml | 15 --------------- 2 files changed, 16 insertions(+), 15 deletions(-) create mode 100644 .gitlab-ci.yml delete mode 100644 bitbucket-pipelines.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..9916ab7 --- /dev/null +++ b/.gitlab-ci.yml @@ -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 diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml deleted file mode 100644 index 196bcdb..0000000 --- a/bitbucket-pipelines.yml +++ /dev/null @@ -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