Our team is creating a CI/CD component project for running common deployment tasks. In this scenario, we have a component called terraform
that inits and applies terraform code.
Here’s how our main pipeline code looks like.
# .gitlab-ci.yml
stages:
- deploy
deploy-environment-alpha:
stage: deploy
include:
- local: path/to/deploy.yml
#### Some other configuration
Given the contents below for path/to/deploy.yml, the pipeline works as expected. It triggers the child pipeline and imports the component.
# path/to/deploy.yml
deploy-environment-alpha:
stage: deploy
include:
- component: /path/to/[email protected]
inputs:
foo: alpha
Now, I want to update the deploy.yml to include two components.
# path/to/deploy.yml
deploy-environment-alpha:
stage: deploy
include:
- component: /path/to/[email protected]
inputs:
foo: alpha
deploy-environment-beta:
stage: deploy
include:
- component: /path/to/[email protected]
inputs:
foo: beta
For some reason, Gitlab is only showing the deploy-environment-alpha job. Any reason why it is ignoring deploy-environment-beta?