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

fix github actions runs on forks #645

Merged
merged 3 commits into from
Dec 20, 2024

Conversation

JadedBlueEyes
Copy link
Contributor

This commit contains two separate fixes:

  1. use lowercased github username/repository for the docker repository name.
    This is because image registries only accept lowercase in image repository names, but github stores the repository and username in a case-sensitive manner. This broke image uploads for me, as my username has uppercase chars.

  2. change run conditions for some steps.
    It will no longer attempt to set up SSH web publishing if the SSH private key is not set.
    It will also run the image registry upload steps if registry usernames are missing, instead skipping individual uploads where the token for that registry is missing.

Finally, it simplifies the sccache run conditions to use the SCCACHE_GHA_ENABLED env variable, rather than duplicating that logic.

This commit contains two separate fixes:

1) use lowercased github username/repository for the docker
repository name.
This is because image registries only accept
lowercase in image repository names, but github stores the
repository and username in a case-sensitive manner. This broke
image uploads for me, as my username has uppercase chars.

2) change run conditions for some steps.
It will no longer attempt to set up SSH web publishing if the SSH
private key is not set.
It will also run the image registry upload steps if registry
usernames are missing, instead skipping individual uploads where
the token for that registry is missing.

Finally, it simplifies the sccache run conditions to use the
`SCCACHE_GHA_ENABLED` env variable, rather than duplicating that
logic.

Signed-off-by: Jade Ellis <[email protected]>
@girlbossceo girlbossceo merged commit 0259501 into girlbossceo:main Dec 20, 2024
8 checks passed
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