-
Notifications
You must be signed in to change notification settings - Fork 9
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(build): make image tag lowecase #43
Conversation
c608ff3
to
b24ad6e
Compare
@flavio, do you know if there is a nicer way to lowercase the |
b24ad6e
to
d7ba5d3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@0xE282B0 I didn't find any built-in function for that by looking at the documentation over there.
I'm fine with your proposal, but I made another one in the comments.
BTW, I'm sorry I didn't see that coming with my tests :(
@@ -53,6 +53,12 @@ jobs: | |||
if: ${{ startsWith(github.ref, 'refs/tags/') }} | |||
run: | | |||
echo TAG_NAME=$(echo $GITHUB_REF | sed -e "s|refs/tags/||") >> $GITHUB_ENV |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about reusing this step and do something like:
echo TAG_NAME=$(echo $GITHUB_REF | sed -e "s|refs/tags/||") >> $GITHUB_ENV | |
echo TAG_NAME=$(echo $GITHUB_REF | sed -e "s|refs/tags/||") >> $GITHUB_ENV | |
echo REPOSITORY_NAME=$(echo {{ github.repository_owner }} | awk "{print tolower($0)}")) >> $GITHUB_ENV |
I didn't try it on GH, but I think it should work and would just reduce the number of steps and keep things consistent
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It still feels odd that it takes so many changes to fix it.
But at least it is consistent and less steps.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BTW, I'm sorry I didn't see that coming with my tests :(
No worries, you tested everything else on your fork 😊.
aa36f90
to
438889f
Compare
Signed-off-by: Sven Pfennig <[email protected]>
438889f
to
6090c7e
Compare
No description provided.