mirror of
https://github.com/k8snetworkplumbingwg/multus-cni.git
synced 2025-09-04 18:31:44 +00:00
Update goreleaser (#1069)
This change update goleleaser action and goreleaser config file to release multus binaries, including multus-daemon and multus-shim
This commit is contained in:
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -18,7 +18,7 @@ jobs:
|
|||||||
go-version: 1.19.x
|
go-version: 1.19.x
|
||||||
|
|
||||||
- name: Run GoReleaser
|
- name: Run GoReleaser
|
||||||
uses: goreleaser/goreleaser-action@v2
|
uses: goreleaser/goreleaser-action@v4
|
||||||
with:
|
with:
|
||||||
version: latest
|
version: latest
|
||||||
args: release --rm-dist
|
args: release --rm-dist
|
||||||
|
@@ -6,20 +6,51 @@ before:
|
|||||||
hooks:
|
hooks:
|
||||||
- go mod download
|
- go mod download
|
||||||
builds:
|
builds:
|
||||||
-
|
- env:
|
||||||
env:
|
- CGO_ENABLED=0
|
||||||
- CGO_ENABLED=0
|
id: multus
|
||||||
main: ./cmd/
|
binary: multus
|
||||||
goos:
|
main: ./cmd/multus
|
||||||
- linux
|
goos:
|
||||||
goarch:
|
- linux
|
||||||
- 386
|
goarch:
|
||||||
- amd64
|
- 386
|
||||||
- arm
|
- amd64
|
||||||
- arm64
|
- arm
|
||||||
- s390x
|
- arm64
|
||||||
ldflags:
|
- s390x
|
||||||
- -X gopkg.in/k8snetworkplumbingwg/multus-cni.v3/pkg/multus.version={{ .Tag }} -X gopkg.in/k8snetworkplumbingwg/multus-cni.v3/pkg/multus.commit={{ .Commit }} -X gopkg.in/k8snetworkplumbingwg/multus-cni.v3/pkg/multus.date={{ .Date }}
|
ldflags:
|
||||||
|
- -X gopkg.in/k8snetworkplumbingwg/multus-cni.v3/pkg/multus.version={{ .Tag }} -X gopkg.in/k8snetworkplumbingwg/multus-cni.v3/pkg/multus.commit={{ .Commit }} -X gopkg.in/k8snetworkplumbingwg/multus-cni.v3/pkg/multus.date={{ .Date }}
|
||||||
|
- env:
|
||||||
|
- CGO_ENABLED=0
|
||||||
|
id: multus-daemon
|
||||||
|
binary: multus-daemon
|
||||||
|
main: ./cmd/multus-daemon
|
||||||
|
goos:
|
||||||
|
- linux
|
||||||
|
goarch:
|
||||||
|
- 386
|
||||||
|
- amd64
|
||||||
|
- arm
|
||||||
|
- arm64
|
||||||
|
- s390x
|
||||||
|
ldflags:
|
||||||
|
- -X gopkg.in/k8snetworkplumbingwg/multus-cni.v3/pkg/multus.version={{ .Tag }} -X gopkg.in/k8snetworkplumbingwg/multus-cni.v3/pkg/multus.commit={{ .Commit }} -X gopkg.in/k8snetworkplumbingwg/multus-cni.v3/pkg/multus.date={{ .Date }}
|
||||||
|
- env:
|
||||||
|
- CGO_ENABLED=0
|
||||||
|
id: multus-shim
|
||||||
|
binary: multus-shim
|
||||||
|
main: ./cmd/multus-shim
|
||||||
|
goos:
|
||||||
|
- linux
|
||||||
|
goarch:
|
||||||
|
- 386
|
||||||
|
- amd64
|
||||||
|
- arm
|
||||||
|
- arm64
|
||||||
|
- s390x
|
||||||
|
ldflags:
|
||||||
|
- -X gopkg.in/k8snetworkplumbingwg/multus-cni.v3/pkg/multus.version={{ .Tag }} -X gopkg.in/k8snetworkplumbingwg/multus-cni.v3/pkg/multus.commit={{ .Commit }} -X gopkg.in/k8snetworkplumbingwg/multus-cni.v3/pkg/multus.date={{ .Date }}
|
||||||
archives:
|
archives:
|
||||||
- wrap_in_directory: true
|
- wrap_in_directory: true
|
||||||
checksum:
|
checksum:
|
||||||
|
Reference in New Issue
Block a user