Skip to content

For GitHub Actions only attempt to log in and push to container repos if the commit is pushed to the official repo #2013

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

Merged

Conversation

kylemhall
Copy link
Member

When a developer pushes a branch of Aspen Discovery to their own repo to create a pull request, it triggers the building of Docker images. The building of the images itself is good to find issues in the build process, but the actions fail because the the actions can only log in on the official repo.

This change resolves this be only logging in to the registries if the commit is pushed to the official repo, while still allowing the docker images to be build for testing purposes.

You can see it working successfully in my personal repo: https://github.com/kylemhall/aspen-discovery/actions/runs/10510807021

…ushed to the official repo

When a developer pushes a branch of Aspen Discovery to their own repo to
create a pull request, it triggers the building of Docker images.
The building of the images itself is good to find issues in the build
process, but the actions fail because the the actions can only log
in on the official repo.

This change resolves this be only logging in to the registries if the
commit is pushed to the official repo, while still allowing the docker
images to be build for testing purposes.
@kylemhall kylemhall force-pushed the fix_github_actions_docker branch from dc03c0d to 968e086 Compare August 22, 2024 20:34
@mdnoble73 mdnoble73 merged commit 2afdedf into Aspen-Discovery:24.09.00 Aug 22, 2024
1 check passed
@kylemhall kylemhall deleted the fix_github_actions_docker branch August 30, 2024 10:46
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