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

Update "Check Docker image" build step to handle upper case chars in repo names #5504

Merged
merged 1 commit into from
May 12, 2023

Conversation

joshooaj
Copy link
Sponsor Contributor

Issue #5503 describes an issue where the "Check Docker image" build step throws an error when the build action runs on a fork owned by a user with one or more upper case characters in their name.

This PR handles this by assigning the value of github.event.repository.full_name to an environment variable, and then referencing that variable when calling docker run using bash parameter expansion to convert characters to lower case.

The reason the build doesn't fail earlier in the job is because docker/metadata-action automatically converts image names to lower case.

This resolves an error on the "Check Docker image" build step for any forks under GitHub users with an upper case character in their GitHub username.
@squidfunk squidfunk merged commit 09ce35d into squidfunk:master May 12, 2023
@squidfunk
Copy link
Owner

Thanks!

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