-
-
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
ci: run on all tags #12754
ci: run on all tags #12754
Conversation
This looks like guessing to me. We don't want this to be run on So, the intention of the current setup is right: Build image if either
What's missing is 2. I could probably force a build by changing the image.yml file, but I doubt it would pick up the tag... To conclude., we need someone who knows. |
And a double note: This isn't me pointing fingers at anyone; I have spent too may hours in the mysteries of GitHub actions to blame anyone of not understanding it to the point ... |
Maybe this? on:
push:
paths:
- Dockerfile
- .github/workflows/image.yml
pull_request:
branches-ignore: [**] |
I FEEL THIS IN MY BONES. |
@bep so for 1, you want to build it on every push that changes the files, even to master? |
I don't mind doing that. My take on this is:
I will do a little investigation on my own on this. I'm doing a patch release later today. |
I agree with that take. With the current changes, it should build:
That is as you described it in #12754 (comment). The The issue now might be - and I don't have any experience with that so far - that this PR here is coming from my fork, which does not have push access to the registry for the gohugoio organization, and rightly so. I think that might make it impossible to use the matrix workflow (I adapted it from https://docs.docker.com/build/ci/github-actions/multi-platform/#distribute-build-across-multiple-runners) to speed up builds. Maybe a better way is to instead:
With that, the build itself would be tested, but the image only pushed for tags. Sorry that this change is causing so many difficulties right now, this is not what I intended. |
The GITHUB_TOKEN with write access is not available to forks, which is a good thing! I tested this in a PR in a branch in the Hugo repo, and that works. We will never get a setup that tests this in PRs, and that is fine; as long as we get it to work on the Let's move this discussion to #12758 |
Run on all tags, check files only for PRs.
Should resolve #12753.