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: push container images to ghcr.io as well #3658

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

dulltz
Copy link

@dulltz dulltz commented Oct 23, 2024

What this PR does / why we need it:
Add GHCR as a destination container registry.
With this change we will be able to pull the container at the following URI:

  • ghcr.io/openpolicyanget/gatekeeper
  • ghcr.io/openpolicyanget/gatekeeper-crds
  • ghcr.io/openpolicyanget/gator

Which issue(s) this PR fixes (optional, using fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when the PR gets merged):
Fixes #3652

Special notes for your reviewer:
After merging this PR, container images will appear in Packages section.
2024-10-23 15 18 06

@dulltz dulltz force-pushed the feature/release-to-ghcr branch 2 times, most recently from d13fc9d to 8a082f4 Compare October 23, 2024 04:55
@dulltz dulltz marked this pull request as ready for review October 23, 2024 05:03
@dulltz dulltz requested a review from a team as a code owner October 23, 2024 05:03
@dulltz dulltz marked this pull request as draft October 23, 2024 05:06
@dulltz dulltz force-pushed the feature/release-to-ghcr branch 2 times, most recently from f29dedb to 6148782 Compare October 23, 2024 05:46
@dulltz dulltz marked this pull request as ready for review October 23, 2024 05:48
- name: Build and push ghcr.io/${{ env.IMAGE_REPO }}
if: steps.check-ghcr-image.outputs.exists == 'false'
run: |
make REPOSITORY=ghcr.io/${{ env.IMAGE_REPO }} docker-buildx-release \
Copy link
Member

Choose a reason for hiding this comment

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

can you integrate this into the existing release and pre-release flows so artifacts don't get rebuild and digests will be same

Copy link
Author

Choose a reason for hiding this comment

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

Got it, I'll give it a try and update the PR.

Copy link
Author

Choose a reason for hiding this comment

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

@sozercan I have made corrections based on the review comment. d1e8d7b

@dulltz dulltz requested a review from sozercan October 24, 2024 05:52
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.

Publish Docker Images to Additional Registries (e.g., ghcr.io) Due to Docker Hub Rate Limits
2 participants