-
Notifications
You must be signed in to change notification settings - Fork 0
fix(ci): resolve Docker build and auto-release failures #157
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,6 +6,13 @@ name: ci | |
| on: | ||
| push: | ||
| branches: [main] | ||
| paths: | ||
| - "Dockerfile*" | ||
| - "docker-compose*.yml" | ||
| - ".dockerignore" | ||
| - "src/**" | ||
| - "*.dockerfile" | ||
| - ".github/workflows/ci.yml" | ||
|
Comment on lines
+9
to
+15
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The Adding |
||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
|
|
||
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.
github.tokenwon't triggerrelease.ymlon tag pushGitHub explicitly prevents
GITHUB_TOKENfrom triggering downstream workflow runs to avoid infinite loops.release.ymllistens onpush: tags: ["v*"], so whenauto-release.ymlcreates a tag via the GitHub API usinggithub.token, the tag event is silently swallowed andrelease.ymlnever starts. The summary step even says "Release workflow will be triggered automatically," which will no longer be true.The original
secrets.MY_GITHUB_TOKENPAT was the right approach because a PAT does propagatepushtag events. The correct fix is to provision (or reprovision) that secret — or replace it with a GitHub App installation token — rather than switching togithub.token.