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

Upload agent images to GHCR #2724

Merged
merged 1 commit into from Apr 11, 2024
Merged

Upload agent images to GHCR #2724

merged 1 commit into from Apr 11, 2024

Conversation

DrJosh9000
Copy link
Contributor

@DrJosh9000 DrJosh9000 commented Apr 10, 2024

Description

Make agent images accessible directly from GHCR.

This relates to pinning agent versions used by the k8s stack, which currently publishes images and helm charts to GHCR. Some customers might also be interested in pulling from GHCR instead of Docker Hub.

Context

https://linear.app/buildkite/issue/PENT-9/pin-the-version-of-the-buildkite-agent-used-by-agent-stack-k8s

Changes

  • docker login to GitHub using the existing credential
  • skopeo copy the image to ghcr.io/buildkite/agent

Testing

  • Tests have run locally (with go test ./...). Buildkite employees may check this if the pipeline has run automatically.
  • Code is formatted (with go fmt ./...)

I also ran a modified release pipeline to verify that it works.

@DrJosh9000 DrJosh9000 changed the title [WIP] Upload agent images to GHCR Upload agent images to GHCR Apr 11, 2024
@DrJosh9000 DrJosh9000 marked this pull request as ready for review April 11, 2024 02:10
@DrJosh9000 DrJosh9000 requested a review from moskyb April 11, 2024 02:11
Copy link
Contributor

@moskyb moskyb left a comment

Choose a reason for hiding this comment

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

this looks great! very happy to ship it.

when i was working on the k8s stack, one thing that would have been useful would have been publishing per-branch docker images to ghcr, so that we can test development branches of the agent in the kubernetes stack. i don't think we should do this in this PR (unless it's really easy?), but something to keep in mind for the future.

@DrJosh9000 DrJosh9000 merged commit 512440a into main Apr 11, 2024
1 check passed
@DrJosh9000 DrJosh9000 deleted the pent-9-images-to-ghcr branch April 11, 2024 05:38
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.

None yet

2 participants