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

Bug: Docker images are not tagged with release version #250

Closed
paullatzelsperger opened this issue Apr 19, 2023 · 0 comments · Fixed by #251
Closed

Bug: Docker images are not tagged with release version #250

paullatzelsperger opened this issue Apr 19, 2023 · 0 comments · Fixed by #251
Assignees
Labels
bug Something isn't working

Comments

@paullatzelsperger
Copy link
Contributor

paullatzelsperger commented Apr 19, 2023

Describe the bug

When creating a new release, for example 4.2.0, Docker images should be tagged with ...:4.2.0 (amongst others).
For some reason this does not happen.

To Reproduce

Create a new release version (DON'T DO THIS IN THE UPSTREAM!)

Expected behavior

the version tag is created

Screenshots/Error Messages

If applicable, add screenshots and/or error messages to help explain your problem.

Context Informations

first observed during the 0.3.3 release on April 19, 2023

Possible Implementation

My initial suspicion was, that either the docker/metadata-action does not pick up the newly created tag, or creating a tag does not trigger the build.yaml workflow.

On closer inspection, the reason turned out to be, that in order for workflows to be triggered from workflow runs, we apparently cannot use a GITHUB_TOKEN, but must use a PAT, according to the documentation. That means, that the workflow that creates the tag (i.e. publish_new_release.yaml) cannot run using a GITHUB_TOKEN, it must use a PAT, otherwise the other job, that publishes the image (build.yaml) won't execute. The solution could be as easy as to remove the permissions: block from the github-release job.

I tried it out by manually creating a Git tag, which did indeed trigger the workflow, and caused the correct Docker tag to be created.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant