-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
The new Docker package workflow not triggered by release tags #12753
Comments
/ccn @morremeyer |
I'm guessing, but
|
The tag is still pushed, that is fine, and the
But, the |
I have tested here https://github.com/bep/githubactionstest ... and the pattern we already have is working fine there, so I'm guessing it must be a glitch ... I'm adding the |
Nope, the |
Just passing by as i skimmed the release notes and saw this, so i did not dig to much in your processes, but i've already stumbled on this when the tag was automatically created by another workflow.
|
@nikaro yea, I read that, too -- the thing is, the release tags in Hugo gets created by the "publish" button in the UI, but it's certainly some similar magic, question is what ... |
Could it be the on:
push:
tags:
- "*"
- paths:
- - Dockerfile
- - .github/workflows/image.yml |
According to the docs and my tests (https://github.com/bep/githubactionstest/actions); no. But it's a little hard to test this ... I don't want to create dummy releases, and I suspect other tags pushed from the console would behave differently. |
OK, I just pushed this tag to master: https://github.com/gohugoio/hugo/releases/tag/testbuild1 Which did not trigger a package build, which I guess is great news as it means we can test it without releasing ... |
OK, so reducing it to this seems to work:
Mysterious ... Oh, well. I can add a |
OK, the release I just did, sadly did not trigger a build. OK, I don't understand this and I currently don't have more time to spare on this. |
@webgtx I don't know where you got that information, but it is wrong. See e.g. https://github.com/community-tooling/oci-images/blob/1aff6765f666244213f4aa3cfca4b578c104c06a/.github/workflows/build.yml, where we use the This is what the |
@morremeyer I know, I forgot that it is the case for the private registries/repositories only. Sorry for misinformation |
This smells like a GitHub bug, but my current theory and workaround is:
This sounds a little off, but it could be that GitHub drops tags that's not reachable from the main branch ... And I guess I can try to switch the order of the 2 above. |
I have done some further experiments (no luck) here: https://github.com/bep/circlecitest I'm putting this work on pause myself, but I welcome tips/prs in the above repo. The goal is to control the |
OK, so @razonyang has come up with a circle CI setup that gets us around this issue; I will set it up in Hugo early the coming week. |
Not sure if this is valuable, but since you already had the complete github workflow and you are using the ui for releases anyways, have you considered the release workflow event? https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#release |
What exactly do you mean by this? Edit in: OK, reading it again, I think I understand. GitHub emits a "release event" when I hit the "publish release" from the UI that we can use to start the package job. Yea, that could work. I will check. |
Drum roll .... https://github.com/gohugoio/hugo/pkgs/container/hugo/280590856?tag=v0.135.0 ... thanks to @bmanth60 for the tip that solved this. |
Now, if someone could contribute with some short documentation about how to use this image (I guess somewhere in https://github.com/gohugoio/hugoDocs), that would be appreciated. |
Thanks bep! Thanks for interpreting! |
To get started: Docs issue: |
I think we should need the |
hugo/.github/workflows/image.yml
Line 6 in caa90e6
Not sure what's wrong.
The text was updated successfully, but these errors were encountered: