Skip to content

Commit d096d0c

Browse files
authored
Merge pull request #7 from nginxinc/areste
chore: change github actions
2 parents 54f3d25 + 8b699be commit d096d0c

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

.github/workflows/go-builder.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,20 @@ jobs:
2121
BUILD=$(git log --format='%H' -n 1)
2222
VERSION="dev"
2323
GOOS=linux GOARCH=amd64 go build -ldflags "-w -s -X github.com/nginxinc/nginx-k8s-supportpkg/pkg/version.Build=$BUILD\
24-
-X github.com/nginxinc/nginx-k8s-supportpkg/pkg/version.Version=$VERSION" -o release/kubectl-nic-supportpkg
25-
tar czvf release/kubectl-nic-supportpkg_${VERSION}_linux_amd64.tar.gz -C release kubectl-nic-supportpkg
24+
-X github.com/nginxinc/nginx-k8s-supportpkg/pkg/version.Version=$VERSION" -o release/kubectl-nginx_supportpkg
25+
tar czvf release/kubectl-nginx-supportpkg_${VERSION}_linux_amd64.tar.gz -C release kubectl-nginx_supportpkg
2626
2727
GOOS=linux GOARCH=arm64 go build -ldflags "-w -s -X github.com/nginxinc/nginx-k8s-supportpkg/pkg/version.Build=$BUILD\
28-
-X github.com/nginxinc/nginx-k8s-supportpkg/pkg/version.Version=$VERSION" -o release/kubectl-nic-supportpkg
29-
tar czvf release/kubectl-nic-supportpkg_${VERSION}_linux_arm64.tar.gz -C release kubectl-nic-supportpkg
28+
-X github.com/nginxinc/nginx-k8s-supportpkg/pkg/version.Version=$VERSION" -o release/kubectl-nginx_supportpkg
29+
tar czvf release/kubectl-nginx-supportpkg_${VERSION}_linux_arm64.tar.gz -C release kubectl-nginx_supportpkg
3030
3131
GOOS=darwin GOARCH=amd64 go build -ldflags "-w -s -X github.com/nginxinc/nginx-k8s-supportpkg/pkg/version.Build=$BUILD\
32-
-X github.com/nginxinc/nginx-k8s-supportpkg/pkg/version.Version=$VERSION" -o release/kubectl-nic-supportpkg
33-
tar czvf release/kubectl-nic-supportpkg_${VERSION}_darwin_amd64.tar.gz -C release kubectl-nic-supportpkg
32+
-X github.com/nginxinc/nginx-k8s-supportpkg/pkg/version.Version=$VERSION" -o release/kubectl-nginx_supportpkg
33+
tar czvf release/kubectl-nginx-supportpkg_${VERSION}_darwin_amd64.tar.gz -C release kubectl-nginx_supportpkg
3434
3535
GOOS=darwin GOARCH=arm64 go build -ldflags "-w -s -X github.com/nginxinc/nginx-k8s-supportpkg/pkg/version.Build=$BUILD\
36-
-X github.com/nginxinc/nginx-k8s-supportpkg/pkg/version.Version=$VERSION" -o release/kubectl-nic-supportpkg
37-
tar czvf release/kubectl-nic-supportpkg_${VERSION}_darwin_arm64.tar.gz -C release kubectl-nic-supportpkg
36+
-X github.com/nginxinc/nginx-k8s-supportpkg/pkg/version.Version=$VERSION" -o release/kubectl-nginx_supportpkg
37+
tar czvf release/kubectl-nginx-supportpkg_${VERSION}_darwin_arm64.tar.gz -C release kubectl-nginx_supportpkg
3838
3939
- name: Upload Artifacts
4040
uses: actions/upload-artifact@v4

.github/workflows/release-builder.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ jobs:
3636
echo "OS: ${OS} and ARCH: ${ARCH}"
3737
GOOS=${OS} GOARCH=${ARCH} go build -ldflags "-w -s -X github.com/nginxinc/nginx-k8s-supportpkg/pkg/version.Build=$BUILD\
3838
-X github.com/nginxinc/nginx-k8s-supportpkg/pkg/version.Version=$VERSION"\
39-
-o release/kubectl-nic-supportpkg_${VERSION}_${OS}_${ARCH}/kubectl-nic-supportpkg
40-
cp LICENSE release/kubectl-nic-supportpkg_${VERSION}_${OS}_${ARCH}/
41-
tar czvf release/kubectl-nic-supportpkg_${VERSION}_${OS}_${ARCH}.tar.gz -C release/kubectl-nic-supportpkg_${VERSION}_${OS}_${ARCH}/ .
39+
-o release/kubectl-nginx_supportpkg_${VERSION}_${OS}_${ARCH}/kubectl-nginx_supportpkg
40+
cp LICENSE release/kubectl-nginx_supportpkg_${VERSION}_${OS}_${ARCH}/
41+
tar czvf release/kubectl-nginx_supportpkg_${VERSION}_${OS}_${ARCH}.tar.gz -C release/kubectl-nginx_supportpkg_${VERSION}_${OS}_${ARCH}/ .
4242
done; done
4343
4444
- name: Upload release binaries

0 commit comments

Comments
 (0)