Skip to content

Commit eb5620e

Browse files
committed
fix: optionally disable ARM64 arch by default
- since our GitHub Actions now doesn't work well with ARM architecture. So I decided to disable ARM images by default. However, any interested people can still grab the Docker file image and build corresponding image locally (e.g. will be useful for Macbook M1 devs). Later, than Github Actions will work natively on ARM - we will integrate it into our CI
1 parent 74c2c43 commit eb5620e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Makefile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,22 @@ TAG ?= latest
66

77
publish: build
88
$(DOCKER) push $(REPO):${TAG}
9-
$(DOCKER) push $(REPO):${TAG}-arm64
9+
10+
publish-arm64: build-arm64
11+
$(DOCKER) push $(REPO):${TAG}-arm64
1012

1113
publish-tag: build publish
1214
$(DOCKER) tag $(REPO):${TAG} "$(REPO):$(INPUT_RELEASE_VERSION)-rust-$(RUST_VERSION)"
13-
$(DOCKER) tag "$(REPO):${TAG}-arm64" "$(REPO):$(INPUT_RELEASE_VERSION)-rust-$(RUST_VERSION)-arm64"
1415
$(DOCKER) push "$(REPO):$(INPUT_RELEASE_VERSION)-rust-$(RUST_VERSION)"
16+
17+
publish-tag-arm64: build-arm64 publish-arm64
18+
$(DOCKER) tag "$(REPO):${TAG}-arm64" "$(REPO):$(INPUT_RELEASE_VERSION)-rust-$(RUST_VERSION)-arm64"
1519
$(DOCKER) push "$(REPO):$(INPUT_RELEASE_VERSION)-rust-$(RUST_VERSION)-arm64"
1620

1721
build:
1822
$(DOCKER) build --build-arg RUST_VERSION=$(RUST_VERSION) -t $(REPO):${TAG} .
23+
24+
build-arm64:
1925
$(DOCKER) build --build-arg RUST_VERSION=$(RUST_VERSION) -t "$(REPO):${TAG}-arm64" -f Dockerfile_arm64 .
2026

2127
test:

0 commit comments

Comments
 (0)