Skip to content

Commit ecc4f3b

Browse files
committed
ci: Split build target into two steps
1 parent 32c65bf commit ecc4f3b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ jobs:
9898
uses: docker/setup-buildx-action@v3
9999
- name: Build template-controller
100100
run: |
101-
GOARCH=${{ matrix.goarch }} make build
101+
GOARCH=${{ matrix.goarch }} make build-bin
102102
- name: Build docker images
103103
run: |
104104
docker build -t test-image --platform=${{ matrix.docker_platform }} .

Makefile

+4-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@ test: manifests generate fmt vet envtest ## Run tests.
6161
##@ Build
6262

6363
.PHONY: build
64-
build: generate fmt vet ## Build manager binary.
64+
build: generate fmt vet build-bin ## Build manager binary.
65+
66+
.PHONY: build-bin
67+
build-bin: ## Build manager binary.
6568
go build -o bin/manager main.go
6669

6770
.PHONY: run

0 commit comments

Comments
 (0)