-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
Prevent the creation of the main tag on Docker Hub #166
Conversation
@@ -31,7 +31,7 @@ jobs: | |||
images: | | |||
rob93c/stickerify | |||
tags: | | |||
type=raw,value=latest,enable={{is_default_branch}} |
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.
This should remain as it is, since this is for the latest
tag.
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.
Done
.github/workflows/docker-image.yml
Outdated
@@ -31,7 +31,7 @@ jobs: | |||
images: | | |||
rob93c/stickerify | |||
tags: | | |||
type=raw,value=latest,enable={{is_default_branch}} | |||
type=ref,event=latest,enable=${{ github.ref != 'refs/heads/main' }} |
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.
The actual change should be applied here, as described in the related issue.
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.
Okay got you @MartelliEnrico
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.
Yeah sorry, I commented on the wrong line, I meant the one below acrually
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.
Can you check now @MartelliEnrico.
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.
LGTM
@MartelliEnrico can you check from your end if is it still picking up main or not ? |
Hi @ritikverma2000, we won't be able to check if the changes work until we merge them. |
No description provided.