File tree Expand file tree Collapse file tree 3 files changed +46
-6
lines changed Expand file tree Collapse file tree 3 files changed +46
-6
lines changed Original file line number Diff line number Diff line change 1+ # Copyright Contributors to the Open Cluster Management project
2+
3+ on :
4+ push :
5+ # Sequence of patterns matched against refs/tags
6+ tags :
7+ - ' v*' # Push events to matching v*, i.e. v1.0, v20.15.10
8+
9+ name : Create Release
10+
11+ jobs :
12+ build :
13+ name : Create Release
14+ runs-on : ubuntu-latest
15+ steps :
16+ - name : Checkout code
17+ uses : actions/checkout@v2
18+ - name : Build project
19+ run : |
20+ make build-bin
21+ - name : Release
22+ 23+ env :
24+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
25+ with :
26+ body_path : CHANGELOG.md
27+ files : |
28+ bin/clusteradm_darwin_amd64.tar.gz
29+ bin/clusteradm_linux_amd64.tar.gz
30+ bin/clusteradm_linux_arm64.tar.gz
31+ bin/clusteradm_linux_ppc64le.tar.gz
32+ bin/clusteradm_linux_s390x.tar.gz
33+ bin/clusteradm_windows_amd64.zip
34+ draft : true
35+ prerelease : true
Original file line number Diff line number Diff line change 1+ [ comment ] : # ( Copyright Contributors to the Open Cluster Management project )
2+ # Release Content
3+
4+ - Add support for non-bootstrap token enabled environment [ issue 16] ( https://github.com/open-cluster-management-io/clusteradm/issues/16 )
Original file line number Diff line number Diff line change @@ -29,13 +29,14 @@ build:
2929
3030.PHONY :
3131build-bin :
32+ @rm -rf bin
3233 @mkdir -p bin
33- GOOS=darwin GOARCH=amd64 go build -o bin/clusteradm_darwin_amd64 ./cmd/clusteradm.go
34- GOOS=linux GOARCH=amd64 go build -o bin/clusteradm_linux_amd64 ./cmd/clusteradm.go
35- GOOS=linux GOARCH=arm64 go build -o bin/clusteradm_linux_arm64 ./cmd/clusteradm.go
36- GOOS=linux GOARCH=ppc64le go build -o bin/clusteradm_linux_ppc64le ./cmd/clusteradm.go
37- GOOS=linux GOARCH=s390x go build -o bin/clusteradm_linux_s390x ./cmd/clusteradm.go
38- GOOS=windows GOARCH=amd64 go build -o bin/clusteradm_windows_amd64.exe ./cmd/clusteradm.go
34+ GOOS=darwin GOARCH=amd64 go build -ldflags= " -s -w " -gcflags=-trimpath=x/y - o bin/clusteradm_darwin_amd64 ./cmd/clusteradm.go && tar -czf bin/clusteradm_darwin_amd64.tar.gz -C bin/ clusteradm_darwin_amd64
35+ GOOS=linux GOARCH=amd64 go build -ldflags= " -s -w " -gcflags=-trimpath=x/y - o bin/clusteradm_linux_amd64 ./cmd/clusteradm.go && tar -czf bin/clusteradm_linux_amd64.tar.gz -C bin/ clusteradm_linux_amd64
36+ GOOS=linux GOARCH=arm64 go build -ldflags= " -s -w " -gcflags=-trimpath=x/y - o bin/clusteradm_linux_arm64 ./cmd/clusteradm.go && tar -czf bin/clusteradm_linux_arm64.tar.gz -C bin/ clusteradm_linux_arm64
37+ GOOS=linux GOARCH=ppc64le go build -ldflags= " -s -w " -gcflags=-trimpath=x/y - o bin/clusteradm_linux_ppc64le ./cmd/clusteradm.go && tar -czf bin/clusteradm_linux_ppc64le.tar.gz -C bin/ clusteradm_linux_ppc64le
38+ GOOS=linux GOARCH=s390x go build -ldflags= " -s -w " -gcflags=-trimpath=x/y - o bin/clusteradm_linux_s390x ./cmd/clusteradm.go && tar -czf bin/clusteradm_linux_s390x.tar.gz -C bin/ clusteradm_linux_s390x
39+ GOOS=windows GOARCH=amd64 go build -ldflags= " -s -w " -gcflags=-trimpath=x/y - o bin/clusteradm_windows_amd64.exe ./cmd/clusteradm.go && zip -q bin/clusteradm_windows_amd64.zip -j bin/clusteradm_windows_amd64.exe
3940
4041.PHONY : install
4142install : build
You can’t perform that action at this time.
0 commit comments