Skip to content

Commit 07b7266

Browse files
committed
fix: disable test and use correct version
1 parent 024695d commit 07b7266

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

.github/workflows/release.yml

+11-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: Release
22

33
on:
44
push:
5-
branches:
6-
- master
5+
tags:
6+
- "*"
77

88
jobs:
99
build:
@@ -12,6 +12,13 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v2
1414

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+
1522
- uses: actions/setup-go@v2
1623
with:
1724
go-version: '^1.16.1'
@@ -23,6 +30,8 @@ jobs:
2330
password: ${{ secrets.DOCKERHUB_PASSWORD }}
2431

2532
- name: Run Makefile
33+
env:
34+
VERSION: ${GITHUB_REF##*/}
2635
run: |
2736
make build
2837
make docker-build

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ build: generate fmt vet ## Build manager binary.
8686
run: manifests generate fmt vet ## Run a controller from your host.
8787
go run ./main.go
8888

89-
docker-build: test ## Build docker image with the manager.
89+
docker-build: ## Build docker image with the manager.
9090
docker build -t ${IMG} .
9191

9292
docker-push: ## Push docker image with the manager.

0 commit comments

Comments
 (0)