Skip to content

Commit a87fcf9

Browse files
committed
fix: adds a docker buildx step before release-snapshot
1 parent fc24307 commit a87fcf9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

make/goreleaser.mk

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ ifndef GORELEASER_CURRENT_TAG
88
export GORELEASER_CURRENT_TAG=$(GIT_TAG)
99
endif
1010

11+
.PHONY: docker-buildx
12+
docker-buildx:
13+
docker-buildx:
14+
docker buildx create --use --name=caren --platform=linux/arm64,linux/amd64 || true
15+
1116
.PHONY: build-snapshot
1217
build-snapshot: ## Builds a snapshot with goreleaser
1318
build-snapshot: go-generate ; $(info $(M) building snapshot $*)
@@ -30,7 +35,7 @@ release: go-generate ; $(info $(M) building release $*)
3035

3136
.PHONY: release-snapshot
3237
release-snapshot: ## Builds a snapshot release with goreleaser
33-
release-snapshot: go-generate ; $(info $(M) building snapshot release $*)
38+
release-snapshot: docker-buildx go-generate ; $(info $(M) building snapshot release $*)
3439
goreleaser --verbose=$(GORELEASER_VERBOSE) \
3540
release \
3641
--snapshot \

0 commit comments

Comments
 (0)