Commit 50710ace authored by Fábio Matavelli's avatar Fábio Matavelli Committed by Fábio Matavelli

change to gitlab terraform custom image

parent cbd69c20
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# Entrypoint is also needed as image by default set `terraform` binary as an # Entrypoint is also needed as image by default set `terraform` binary as an
# entrypoint. # entrypoint.
image: image:
name: hashicorp/terraform:light name: registry.gitlab.com/gitlab-org/gitlab-build-images:terraform
entrypoint: entrypoint:
- '/usr/bin/env' - '/usr/bin/env'
- 'PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' - 'PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
...@@ -18,7 +18,6 @@ cache: ...@@ -18,7 +18,6 @@ cache:
- .terraform - .terraform
before_script: before_script:
- apk update && apk add jq
- alias convert_report="jq '([.resource_changes[].change.actions] | flatten) | {\"create\": (map(select(. == \"create\")) | length),\"update\":(map(select(. == \"update\")) | length),\"delete\": (map(select(. == \"delete\")) | length)}'" - alias convert_report="jq '([.resource_changes[].change.actions] | flatten) | {\"create\": (map(select(. == \"create\")) | length),\"update\":(map(select(. == \"update\")) | length),\"delete\": (map(select(. == \"delete\")) | length)}'"
- terraform --version - terraform --version
- terraform init - terraform init
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment