Hi,
I have 2 repositories, let’s call them big_project
and another_project
. big_project
depends on another_project
, so when building it, it triggers a build in another_project
and waits for it to complete. Something along the lines of:
stages:
- build_dep
- build_main
- deploy
build_dep:
stage: build_dep
trigger:
project: another_group/another_project
strategy: depend
branch: 1.0.0-beta01
build_main:
stage: build_main
tags:
- some-tag
script:
- # cook a crab
artifacts:
paths:
- ./release/
when: on_success
deploy_stuff:
dependencies:
- build_main
stage: deploy
tags:
- some-tag
script:
- # deploy the crab
Now that we are close to release, we are tagging our builds on both repositories, say 1.0.0-beta01
. But when running the pipeline in big_project
, it will still use the latest code from the branch. Is there anyway to provide a tag name as a variable so that build_dep
is able to get from the correct commit? Even better if we can build from a specfic tag in big_project
and build_dep
can use the same commit with that tag (we use the same tag names in both repositories).
If not, how else should be go about modifying our .yml file so that we can build previously tagged releases?