-
-
Notifications
You must be signed in to change notification settings - Fork 22
Generate Brew Formula and SBOM thanks to Goreleaser #95
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 |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| name: goreleaser | ||
|
|
||
| on: | ||
| push: | ||
| tags: | ||
| - "*" | ||
|
|
||
| permissions: | ||
| contents: write | ||
|
|
||
| jobs: | ||
| goreleaser: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
| - name: Set up Go | ||
| uses: actions/setup-go@v5 | ||
| with: | ||
| go-version: stable | ||
|
Member
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. Can you change this to the same version that is used in |
||
| - name: Run GoReleaser | ||
| uses: goreleaser/goreleaser-action@v6 | ||
| with: | ||
| distribution: goreleaser | ||
| version: "${{ env.GITHUB_REF_NAME }}" | ||
| args: release --clean | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.PUBLISHER_TOKEN }} | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| version: 2 | ||
|
Member
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. Can you have a check at https://github.com/microcks/microcks-testcontainers-go/blob/main/.goreleaser.yaml and also integrate the signing part here? |
||
|
|
||
| builds: | ||
| - main: ./main.go | ||
| binary: microcks-cli | ||
| env: | ||
| - CGO_ENABLED=0 | ||
|
Member
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. Question: where do you define target platforms for the build? We used to define them into a
Contributor
Author
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. Goreleaser provides default OS and Arch if the parameter is not specified -> See here |
||
|
|
||
| release: | ||
| prerelease: auto | ||
|
|
||
| universal_binaries: | ||
| - replace: true | ||
|
|
||
| brews: | ||
| - name: microcks-cli | ||
| homepage: https://github.com/microcks/microcks-cli | ||
| repository: | ||
| owner: microcks | ||
| name: homebrew-tap | ||
|
|
||
| sboms: | ||
| - artifacts: archive | ||
|
|
||
| checksum: | ||
| name_template: "checksums.txt" | ||
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.
Could you rename this file to
release.ymland align triger actions to the one we use in other repo like https://github.com/microcks/microcks-testcontainers-go/blob/main/.github/workflows/release.yml?