Skip to content

ci: fix workflow triggering on tag + matrix parameters#1827

Merged
morph-dev merged 1 commit into
ethereum:masterfrom
morph-dev:circleci
May 14, 2025
Merged

ci: fix workflow triggering on tag + matrix parameters#1827
morph-dev merged 1 commit into
ethereum:masterfrom
morph-dev:circleci

Conversation

@morph-dev
Copy link
Copy Markdown
Collaborator

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 a when config for a docker-master-tag workflow.

I also removed the duplication of invoking all jobs manually, and I'm using matrix jobs.

To-Do

@morph-dev morph-dev requested review from KolbyML and carver May 14, 2025 17:48
@morph-dev morph-dev self-assigned this May 14, 2025
@morph-dev morph-dev marked this pull request as ready for review May 14, 2025 17:52
Copy link
Copy Markdown
Member

@KolbyML KolbyML left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit: looks good

Comment thread .circleci/config.yml
- docker-build:
name: docker_build_trin
target: trin
name: docker_build__<< matrix.target >>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
name: docker_build__<< matrix.target >>
name: docker_build_<< matrix.target >>

were the double _ intentional?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh ok 👍

@morph-dev morph-dev merged commit 5c85c10 into ethereum:master May 14, 2025
16 checks passed
@morph-dev morph-dev deleted the circleci branch May 14, 2025 17:59
@carver
Copy link
Copy Markdown
Contributor

carver commented May 15, 2025

Now I only use << pipeline.git.tag >> as a when config for a docker-master-tag workflow.

Just to make sure I understand the theory, the reason that the tag build was not triggering is that:

[ << pipeline.git.tag >>, << pipeline.git.branch.is_default >> ]

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 bridge-v1.2.3 if we want to trigger tag events for different binaries.

@morph-dev
Copy link
Copy Markdown
Collaborator Author

will never be true, because it won't simultaneously treat the event as a tag and as a branch, right?

Yes, that's correct.

One option is to go the route of planning other tags to look like bridge-v1.2.3 if we want to trigger tag events for different binaries.

Yes, that would be an option. If we start doing that frequently, it would make sense to adjust circleci config to support that.
If it is one-time thing, then we can just do it manually, like we did before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants