ci: fix workflow triggering on tag + matrix parameters#1827
Conversation
| - docker-build: | ||
| name: docker_build_trin | ||
| target: trin | ||
| name: docker_build__<< matrix.target >> |
There was a problem hiding this comment.
| name: docker_build__<< matrix.target >> | |
| name: docker_build_<< matrix.target >> |
were the double _ intentional?
There was a problem hiding this comment.
Yes. We already have one in "docker_build" and some targets might contain "_" in the future. I figured that using two would make things clearer.
Just to make sure I understand the theory, the reason that the tag build was not triggering is that: will never be true, because it won't simultaneously treat the event as a tag and as a branch, right? One option is to go the route of planning other tags to look like |
Yes, that's correct.
Yes, that would be an option. If we start doing that frequently, it would make sense to adjust circleci config to support that. |
What was wrong?
The recently updated circleci config to build and publish docker images is not triggering on tag.
This is not something that I was able to test, but I'm pretty confident that this will solve the problem.
How was it fixed?
Now I only use
<< pipeline.git.tag >>as awhenconfig for adocker-master-tagworkflow.I also removed the duplication of invoking all jobs manually, and I'm using matrix jobs.
To-Do