-
-
Notifications
You must be signed in to change notification settings - Fork 103
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
PRs fail because of Docker Logins are not set #339
Comments
@jaydrogers There is a GHA context boolean variable for that if: ${{ github.event_name == 'pull_request' && ! github.event.pull_request.head.repo.fork }} |
Thanks! I had something similar with that, but the problem I was running into was uploading to a registry dedicated for testing. I don't want any possibility of giving away my production credentials and I attempted to even use GHA only, but that ran into permissions errors with the GHA token. My other thought was to create a special user for DockerHub, but even with that, PRs don't have access to secrets -- meaning I would have to use unencrypted variables 😅 |
No, PR-s from forks should simply not publish Docker images. |
Here is a how to dump a GHA context. There are a dozen of them. |
I was thinking of having it create an image then dump it to a tar as an artifact? It would just be nice to have a single source of truth for me to collaborate with someone. That's why I was thinking some separate repository with totally separate credentials. |
This has been fixed and GitHub Actions will only run if it is a PR from the main repository 👍 |
Problem
Examples
Proposed Solution
The text was updated successfully, but these errors were encountered: