-
Notifications
You must be signed in to change notification settings - Fork 9
Chore: Add CI to release tagged image and binary #18
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
Chore: Add CI to release tagged image and binary #18
Conversation
Signed-off-by: Daishan Peng <daishan@acorn.io>
.github/workflows/release.yml
Outdated
| type: string | ||
|
|
||
| env: | ||
| GO_VERSION: "1.23" |
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.
Can we go to 1.25 now? Maybe even bump the version in go.mod?
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.
updated 👍
.github/workflows/release.yml
Outdated
| workflow_dispatch: | ||
| inputs: | ||
| tag: | ||
| description: 'Tag to release (e.g., v1.0.0)' | ||
| required: true | ||
| type: string |
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.
I say we remove this. Just do it with a tag.
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.
yeah, not idea why AI generates that. We should just do tag from event
.github/workflows/release.yml
Outdated
| tag: ${{ steps.version.outputs.VERSION }} | ||
| name: Release ${{ steps.version.outputs.VERSION }} | ||
| bodyFile: CHANGELOG.md | ||
| artifacts: "release/*" | ||
| draft: false | ||
| prerelease: ${{ contains(steps.version.outputs.VERSION, '-') }} | ||
| token: ${{ secrets.GITHUB_TOKEN }} | ||
| generateReleaseNotes: true No newline at end of file |
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.
I think we should add allowUpdates: true here so that this works if someone creates a release through the GitHub UI.
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.
updated
| # Linting | ||
| lint: | ||
| golangci-lint run | ||
| golangci-lint run --tests=false |
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.
Is this necessary?
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.
No, i meant to add it to our ci so that lint don't check test files. I added --tests=false to all the lint action now.
f9c52f8 to
3309557
Compare
02416b4 to
5c3d043
Compare
7ed13d1 to
375c5d4
Compare
Signed-off-by: Daishan Peng <daishan@acorn.io>
375c5d4 to
a732e4a
Compare
Add CI to do tagged release for binary and docker images