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

Only push image on main branch and releases #207

Merged
merged 1 commit into from
Dec 17, 2024
Merged

Conversation

phibos
Copy link
Contributor

@phibos phibos commented Dec 16, 2024

At the moment the tags for the docker image are only provided for releases, tags and branches. There are no tags extracted for PRs, this results in an empty tag list and the pipeline fails for PRs. This change enables the push only for the main branch and releases.

If you would like to push an image for every PR the following line has to be added.

tags: |
  ....
  # pull request event
  type=ref,event=pr

@akpw
Copy link
Owner

akpw commented Dec 17, 2024

@phibos thanks, makes sense to me

@akpw akpw merged commit 3beb00e into akpw:main Dec 17, 2024
1 check passed
@phibos phibos deleted the docker_push branch December 19, 2024 07:34
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