This repository was archived by the owner on Dec 12, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed
Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Publish Docker image
2+ on :
3+ push :
4+ tags :
5+ - ' v*'
6+
7+ jobs :
8+ push :
9+ name : Push Image
10+ runs-on : ubuntu-latest
11+ strategy :
12+ fail-fast : false
13+ matrix :
14+ go : ["1.15"]
15+ steps :
16+ - uses : actions/setup-go@v2
17+ with :
18+ go-version : ${{ matrix.go }}
19+
20+ - uses : actions/checkout@v2
21+ with :
22+ fetch-depth : 0
23+
24+ - name : Login to Quay
25+ uses : docker/login-action@v1
26+ with :
27+ registry : quay.io
28+ username : ${{ secrets.QUAY_USERNAME }}
29+ password : ${{ secrets.QUAY_PASSWORD }}
30+
31+ - name : copy volume-replication-operator repo in go src
32+ run : |
33+ mkdir -p /home/runner/go/src/github.com/csi-addons
34+ cp -r /home/runner/work/volume-replication-operator/volume-replication-operator /home/runner/go/src/github.com/csi-addons
35+
36+ - name : run docker-push
37+ working-directory : " /home/runner/go/src/github.com/csi-addons/volume-replication-operator"
38+ env :
39+ GOPATH : /home/runner/go
40+ run : |
41+ export PATH=$PATH:$GOPATH/bin
42+ export VERSION="2.3.2"
43+ wget https://github.com/kubernetes-sigs/kubebuilder/releases/download/v"$VERSION"/kubebuilder_"$VERSION"_linux_amd64.tar.gz
44+ tar -zxvf kubebuilder_"$VERSION"_linux_amd64.tar.gz
45+ export KUBEBUILDER_ASSETS="$(pwd)/kubebuilder_"$VERSION"_linux_amd64/bin"
46+ # build and push image with released tag
47+ IMG_TAG=${{ github.ref }} make docker-build
48+ IMG_TAG=${{ github.ref }} make docker-push
You can’t perform that action at this time.
0 commit comments