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

Log in to buildkite packages right before pushing images #2892

Merged
merged 1 commit into from
Jul 18, 2024

Conversation

moskyb
Copy link
Contributor

@moskyb moskyb commented Jul 18, 2024

Description

Currently, we docker login to the buildkite packages container registry in the same place as all the other docker logins, in .buildkite/steps/publish_docker_images.sh. However, because this docker login is done using an OIDC token, it's timed, and only lasts five minutes.

If pushing the docker images to registries before BK packages takes longer than five minutes, the push to BK packages will fail, as the token will expire - see here.

This PR updates the docker push process so that we log in to buildkite packages as close as possible to push-time.

@moskyb moskyb requested review from swebb and a team July 18, 2024 02:43
Copy link
Contributor

@swebb swebb left a comment

Choose a reason for hiding this comment

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

🙌🏻

@moskyb moskyb enabled auto-merge July 18, 2024 02:45
@moskyb moskyb merged commit 3c913ea into main Jul 18, 2024
1 check passed
@moskyb moskyb deleted the better-docker-auth branch July 18, 2024 02:51
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.

2 participants