MON-449 use alpine image instead of terraform full
This commit is contained in:
parent
f9012ff302
commit
24810b5e0f
@ -1,16 +1,20 @@
|
|||||||
image: hashicorp/terraform:full
|
image: alpine:latest
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- test
|
- test
|
||||||
- build
|
- build
|
||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- apk update
|
||||||
|
- apk upgrade
|
||||||
|
- apk add --no-cache curl
|
||||||
|
|
||||||
auto_update:
|
auto_update:
|
||||||
|
image: hashicorp/terraform:full
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- apk update
|
- apk add --no-cache bash git grep coreutils
|
||||||
- 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.6.0-linux-amd | head -n 1 | cut -d '"' -f 2)"
|
- curl -Lo /usr/local/bin/terraform-docs "https://github.com/$(curl -s https://github.com/segmentio/terraform-docs/releases | grep terraform-docs-v0.6.0-linux-amd | head -n 1 | cut -d '"' -f 2)"
|
||||||
- chmod +x /usr/local/bin/terraform-docs
|
- chmod +x /usr/local/bin/terraform-docs
|
||||||
- ./scripts/auto_update.sh ./
|
- ./scripts/auto_update.sh ./
|
||||||
@ -24,9 +28,6 @@ auto_update:
|
|||||||
deploy_terraform:
|
deploy_terraform:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
script:
|
script:
|
||||||
- apk update
|
|
||||||
- apk upgrade
|
|
||||||
- apk add --no-cache curl
|
|
||||||
- "curl -X POST -F token=${TEMPLATES_GITLAB_TOKEN} -F ref=MON-182_minimal_v1 -F \"variables[SCENARIO]=test\" https://git.fr.clara.net/api/v4/projects/513/trigger/pipeline"
|
- "curl -X POST -F token=${TEMPLATES_GITLAB_TOKEN} -F ref=MON-182_minimal_v1 -F \"variables[SCENARIO]=test\" https://git.fr.clara.net/api/v4/projects/513/trigger/pipeline"
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
@ -38,9 +39,6 @@ deploy_terraform:
|
|||||||
build_template:
|
build_template:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- apk update
|
|
||||||
- apk upgrade
|
|
||||||
- apk add --no-cache curl
|
|
||||||
- "curl -X POST -F token=${TEMPLATES_GITLAB_TOKEN} -F ref=MON-182_minimal_v1 -F \"variables[SCENARIO]=build\" -F \"variables[TAG]=$CI_COMMIT_TAG\" https://git.fr.clara.net/api/v4/projects/513/trigger/pipeline"
|
- "curl -X POST -F token=${TEMPLATES_GITLAB_TOKEN} -F ref=MON-182_minimal_v1 -F \"variables[SCENARIO]=build\" -F \"variables[TAG]=$CI_COMMIT_TAG\" https://git.fr.clara.net/api/v4/projects/513/trigger/pipeline"
|
||||||
only:
|
only:
|
||||||
- tags
|
- tags
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user