Will push latest docker version as well as terraform version

This commit is contained in:
spengreb 2022-12-01 16:02:14 +01:00
parent 53b0678d02
commit aa45175a63

View file

@ -33,5 +33,6 @@ publish:
- TERRAFORM_VERSION=$(curl -s https://checkpoint-api.hashicorp.com/v1/check/terraform | jq -r -M '.current_version')
- docker build --pull -t "$CI_REGISTRY_IMAGE:$TERRAFORM_VERSION" .
- docker push "$CI_REGISTRY_IMAGE:$TERRAFORM_VERSION"
- docker push "$CI_REGISTRY_IMAGE:latest"
only:
- master