Skip to content

Commit

Permalink
chore: update goreleaser and add relevant notes
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlovelltroy committed Nov 8, 2024
1 parent 1ae7c91 commit ceeb77a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
11 changes: 7 additions & 4 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 2
version: 2.4
project_name: smd
before:
hooks:
Expand Down Expand Up @@ -32,6 +32,7 @@ builds:
- arm64
goamd64:
- v4

env:
- CGO_ENABLED=0

Expand Down Expand Up @@ -85,6 +86,7 @@ builds:
goamd64:
- v4


env:
- CGO_ENABLED=0

Expand All @@ -103,6 +105,7 @@ dockers:
- "--label=org.opencontainers.image.version={{.Version}}"
goarch: amd64
goamd64: v4

extra_files:
- LICENSE
- CHANGELOG.md
Expand Down Expand Up @@ -177,11 +180,11 @@ nfpms:
section: utils
priority: optional
contents:
- src: dist/smd_{{ .Os }}_{{ if eq .Arch "amd64" }}{{ .Arch }}_{{ .Amd64 }}{{ else }}{{ .Arch }}{{ end }}/smd
- src: dist/smd_{{ .Os }}_{{ if eq .Arch "amd64" }}{{ .Arch }}_{{ .Amd64 }}{{ else if eq .Arch "arm64" }}{{ .Arch }}_{{ .Arm64 }}{{ else }}{{ .Arch }}{{ end }}/smd
dst: /usr/local/bin/smd
- src: dist/smd-init_{{ .Os }}_{{ if eq .Arch "amd64" }}{{ .Arch }}_{{ .Amd64 }}{{ else }}{{ .Arch }}{{ end }}/smd-init
- src: dist/smd-init_{{ .Os }}_{{ if eq .Arch "amd64" }}{{ .Arch }}_{{ .Amd64 }}{{ else if eq .Arch "arm64" }}{{ .Arch }}_{{ .Arm64 }}{{ else }}{{ .Arch }}{{ end }}/smd-init
dst: /usr/local/bin/smd-init
- src: dist/smd-loader_{{ .Os }}_{{ if eq .Arch "amd64" }}{{ .Arch }}_{{ .Amd64 }}{{ else }}{{ .Arch }}{{ end }}/smd-loader
- src: dist/smd-loader_{{ .Os }}_{{ if eq .Arch "amd64" }}{{ .Arch }}_{{ .Amd64 }}{{ else if eq .Arch "arm64" }}{{ .Arch }}_{{ .Arm64 }}{{ else }}{{ .Arch }}{{ end }}/smd-loader
dst: /usr/local/bin/smd-loader

checksum:
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,13 @@ Once the environment variables are set, you can build the project locally using

Follow the installation instructions from [GoReleaser’s documentation](https://goreleaser.com/install/).

1. Run GoReleaser in snapshot mode with the --snapshot and --skip-publish flags to create a local build without attempting to release it:
1. Run GoReleaser in snapshot mode with the --snapshot flag to create a local build without attempting to release it:
```bash
goreleaser release --snapshot --skip-publish --clean
goreleaser release --snapshot --clean
```
2. Check the dist/ directory for the built binaries, which will include the metadata from the environment variables. You can inspect the binary output to confirm that the metadata was correctly embedded.

__NOTE__ If you see errors, ensure that you are using the same version of goreleaser that is being used in the [Release Action](.github/workflows/Release.yml)


The rest of this README is unchanged from the HPE version.
Expand Down

0 comments on commit ceeb77a

Please sign in to comment.