Skip to content

Commit

Permalink
Update go-releaser/build (#54)
Browse files Browse the repository at this point in the history
Need to update go-releaser and go-build due to the structure change, and
moving to `--clean`.

Signed-off-by: Joe Talerico <[email protected]>
  • Loading branch information
jtaleric authored Apr 3, 2023
1 parent 99f7e1e commit 4721d80
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ jobs:
go-version: 1.19

- name: Build
run: go build -v ./...
run: make build
2 changes: 1 addition & 1 deletion .github/workflows/go-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ jobs:
uses: goreleaser/goreleaser-action@master
with:
version: latest
args: release --rm-dist
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }}
24 changes: 24 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
before:
hooks:
builds:
- env:
- CGO_ENABLED=0
goarch:
- amd64
- arm64
- ppc64le
- s390x
dir: ./cmd/k8s-netperf/
archives:
- name_template: "k8s-netperf-{{.Arch}}"
format: tar.gz
format_overrides:
- goos: windows
format: zip
replacements:
386: i386
amd64: x86_64
files:
- LICENSE

0 comments on commit 4721d80

Please sign in to comment.