Replies: 1 comment 3 replies
-
Cool! In another project, I've handled conditional building like this. It has the perk of not requiring us to be careful with commit messages. I imagine something similar could be done, e.g., with commit messages on things like the template repository. Forgive my ignorance of the current approach, but do you think something like this could work for us? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Related problem
The CI is currently set up to check each staging image's Dockerfile for changes and tag for existence before deciding whether to pull or rebuild that stage.
C-PAC/.github/workflows/build_stages.yml
Lines 38 to 69 in 12c4f74
C-PAC/.github/workflows/build_stages.yml
Line 72 in 12c4f74
This logic falls short on both sides of the idea runs-only-when-necessary:
c-pac_templates:latest
Proposed feature
We could update the CI to take a key string like
in the commit message, update the strategies to be something like
and update the workflow logic with something like
plus some logic to handle which downstream stages depend on a given image. Then rebuilds would
[rebuild…
is specified[rebuild…
is specifiedAlternatives
We could also/additionally add an input parameter to the
workflow_call
so, for example, a merge tomain
in FCP-INDI/C-PAC_templates could trigger the relevant rebuildsAdditional context
Ref: Conditional GitHub action based on commit message
Beta Was this translation helpful? Give feedback.
All reactions