I am writing a gitlab-ci.yml file to build images using packer and thereafter deploy them with terraform. Since I am new to gitlab, I thought it is possible to reference both Terraform and Packer images like so:
image:
name: registry.gitlab.com/gitlab-org/gitlab-build-images:terraform
entrypoint:
- '/usr/bin/env'
- 'PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
image:
name: hashicorp/packer
entrypoint:
- '/usr/bin/env'
- 'PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
question from:https://stackoverflow.com/questions/65844444/multiple-images-as-entrypoints-for-gitlab-ci-configuration-file