-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CI: introduce a composite workflow for docker image handling #21
base: main
Are you sure you want to change the base?
Conversation
Introduce a composite action that abstracts out the login and pushing of the container image. This allows us to uniformly perform the action without having to recheck conditions in between steps, which may drift apart.
@nathanchance - I think that with this, we should be able to still use the matrix strategy and build multiple architectures, though we would need to modify the tags. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! I wired this up for the container build as well and it appears to work quite well:
https://github.com/nathanchance/containers/actions/runs/2402489607
LGTM with @nathanchance 's thoughts addressed. Thanks for the patch! |
This is necessary for run commands in composite actions: https://stackoverflow.com/questions/71041836/github-actions-required-property-is-missing-shell Signed-off-by: Nathan Chancellor <[email protected]>
This is slightly more descriptive. Signed-off-by: Nathan Chancellor <[email protected]>
Otherwise, the step will just show ./.github/actions/push-container which is not terribly descriptive. While we're here, use only one blank line between this step and the previous one, rather than two. Signed-off-by: Nathan Chancellor <[email protected]>
To pick up '.github/workflows/llvm-project-epoch-three.yml', which needs the same changes in this branch. Signed-off-by: Nathan Chancellor <[email protected]>
Signed-off-by: Nathan Chancellor <[email protected]>
I addressed my own comments and applied the changes to the epoch three workflow, hopefully you don't mind. |
Introduce a composite action that abstracts out the login and pushing of
the container image. This allows us to uniformly perform the action
without having to recheck conditions in between steps, which may drift
apart.