Skip to content

Commit

Permalink
ci: Split build target into two steps
Browse files Browse the repository at this point in the history
  • Loading branch information
codablock committed Jul 8, 2024
1 parent 32c65bf commit ecc4f3b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ jobs:
uses: docker/setup-buildx-action@v3
- name: Build template-controller
run: |
GOARCH=${{ matrix.goarch }} make build
GOARCH=${{ matrix.goarch }} make build-bin
- name: Build docker images
run: |
docker build -t test-image --platform=${{ matrix.docker_platform }} .
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ test: manifests generate fmt vet envtest ## Run tests.
##@ Build

.PHONY: build
build: generate fmt vet ## Build manager binary.
build: generate fmt vet build-bin ## Build manager binary.

.PHONY: build-bin
build-bin: ## Build manager binary.
go build -o bin/manager main.go

.PHONY: run
Expand Down

0 comments on commit ecc4f3b

Please sign in to comment.