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

feat: Build images for forks #108

Merged
merged 2 commits into from
Jan 13, 2024

Conversation

mbtamuli
Copy link
Contributor

Fixes #100
This PR adds two workflows(One of them is just an updated version of an existing workflow)

  • .github/workflows/images-build-and-push.yaml - Will build and push images for tags and branches. In case of the main repository, will push to Docker Hub. In case of forks, will push to GitHub Container Registry - ghcr.io/<username>/csi-driver-image making it easier for contributors to test.
  • .github/workflows/images-cleanup.yaml - Runs daily cleanup for the forks only. Will only keep latest or any semver tagged images.

Signed-off-by: Mriyam Tamuli <[email protected]>
Signed-off-by: Mriyam Tamuli <[email protected]>
@mbtamuli mbtamuli requested a review from a team as a code owner January 12, 2024 16:59
@mbtamuli mbtamuli mentioned this pull request Jan 12, 2024
1 task
Copy link
Collaborator

@mugdha-adhav mugdha-adhav left a comment

Choose a reason for hiding this comment

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

This seems like a good starting point. In future we might want to fine tune conditions like when the images are pushed from the base repository (like only pushing on master branch).

I haven't personally tested the changes, leaving it up to the author to verify the push events are working as expected.

@mbtamuli
Copy link
Contributor Author

CI changes are hard to test without being merged, especially with GitHub actions that only allow workflows to get registered on the default branch.

@mugdha-adhav mugdha-adhav merged commit 1d90ef4 into warm-metal:master Jan 13, 2024
6 checks passed
@mbtamuli mbtamuli deleted the feat/images-for-forks branch January 13, 2024 17:30
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.

Automated image build and push not working on tags
2 participants