Skip to content
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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

compnerd
Copy link
Member

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.

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.
@compnerd
Copy link
Member Author

@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.

Copy link
Member

@nathanchance nathanchance left a 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:

nathanchance@a10b86e

https://github.com/nathanchance/containers/actions/runs/2402489607

.github/actions/push-container/action.yml Outdated Show resolved Hide resolved
.github/workflows/llvm-project-epoch-one.yml Show resolved Hide resolved
.github/actions/push-container/action.yml Outdated Show resolved Hide resolved
@nickdesaulniers
Copy link
Member

LGTM with @nathanchance 's thoughts addressed. Thanks for the patch!

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]>
@nathanchance
Copy link
Member

I addressed my own comments and applied the changes to the epoch three workflow, hopefully you don't mind.

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