File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Build CSI Test Binaries
2+ on :
3+ workflow_dispatch :
4+ inputs :
5+ registrar-version :
6+ description : " Git tag you wish to build for the Node Driver Registrar"
7+ required : true
8+ default : " v2.2.0"
9+ provisioner-version :
10+ description : " Git tag you wish to build for the External Provisioner"
11+ required : true
12+ default : " v2.2.1"
13+ jobs :
14+ # TODO: Once support is added for all distros (see
15+ # https://github.com/kubernetes-csi/node-driver-registrar/pull/133). We should
16+ # update this job to support building artifacts for all supported targets
17+ registrar :
18+ runs-on : ubuntu-latest
19+ steps :
20+ - name : Clone Repo
21+ run : |
22+ git clone --depth 1 --branch ${{ github.event.inputs.registrar-version }} https://github.com/kubernetes-csi/node-driver-registrar.git
23+ - name : Build
24+ env :
25+ GOOS : linux
26+ run : |
27+ cd node-driver-registrar
28+ go build -a -ldflags ' -X main.version=${{ github.event.inputs.registrar-version }} -extldflags "-static"' -o "./bin/csi-node-driver-registrar-linux" ./cmd/csi-node-driver-registrar
29+ - name : Upload
30+ uses : bacongobbler/azure-blob-storage-upload@main
31+ with :
32+ source_dir : bin
33+ container_name : releases
34+ connection_string : ${{ secrets.AzureStorageConnectionString }}
35+ sync : false
36+
37+ provisioner :
38+ runs-on : ubuntu-latest
39+ steps :
40+ - name : Clone Repo
41+ run : |
42+ git clone --depth 1 --branch ${{ github.event.inputs.provisioner-version }} https://github.com/kubernetes-csi/external-provisioner.git
43+ - name : Build
44+ env :
45+ GOOS : linux
46+ run : |
47+ cd external-provisioner
48+ go build -a -ldflags ' -X main.version=${{ github.event.inputs.provisioner-version }} -extldflags "-static"' -o ./bin/csi-provisioner-linux ./cmd/csi-provisioner`
49+ - name : Upload
50+ uses : bacongobbler/azure-blob-storage-upload@main
51+ with :
52+ source_dir : bin
53+ container_name : releases
54+ connection_string : ${{ secrets.AzureStorageConnectionString }}
55+ sync : false
You can’t perform that action at this time.
0 commit comments