File tree 2 files changed +12
-3
lines changed
2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ name: Release
2
2
3
3
on :
4
4
push :
5
- branches :
6
- - master
5
+ tags :
6
+ - " * "
7
7
8
8
jobs :
9
9
build :
12
12
steps :
13
13
- uses : actions/checkout@v2
14
14
15
+ - uses : actions/cache@v2
16
+ with :
17
+ path : ~/go/pkg/mod
18
+ key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
19
+ restore-keys : |
20
+ ${{ runner.os }}-go-
21
+
15
22
- uses : actions/setup-go@v2
16
23
with :
17
24
go-version : ' ^1.16.1'
23
30
password : ${{ secrets.DOCKERHUB_PASSWORD }}
24
31
25
32
- name : Run Makefile
33
+ env :
34
+ VERSION : ${GITHUB_REF##*/}
26
35
run : |
27
36
make build
28
37
make docker-build
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ build: generate fmt vet ## Build manager binary.
86
86
run : manifests generate fmt vet # # Run a controller from your host.
87
87
go run ./main.go
88
88
89
- docker-build : test # # Build docker image with the manager.
89
+ docker-build : # # Build docker image with the manager.
90
90
docker build -t ${IMG} .
91
91
92
92
docker-push : # # Push docker image with the manager.
You can’t perform that action at this time.
0 commit comments