Skip to content

Commit 5ff7c07

Browse files
authored
Updates image targets to match CI (#50)
We only build and distribute amd64 images at this time, so we should specify that as the platform when building the image to prevent accidental pushes of arm64 images when building from Apple Silicon. Additionally, CI doesn't publish images with the `v` prefix, so the versioning targets are updated to match.
1 parent 8f85cba commit 5ff7c07

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ list-images:
1515
docker images $(IMAGE_NAME) -a
1616

1717
build:
18-
docker build --no-cache -t $(IMAGE) ./
18+
docker build --platform linux/amd64 --no-cache -t $(IMAGE) ./
1919

2020
version: build
21-
docker image tag $(IMAGE) $(IMAGE_NAME):v$(MAJOR_VERSION) && \
22-
docker image tag $(IMAGE) $(IMAGE_NAME):v$(MAJOR_VERSION).$(MINOR_VERSION) && \
23-
docker image tag $(IMAGE) $(IMAGE_NAME):v$(MAJOR_VERSION).$(MINOR_VERSION).$(PATCH_VERSION)
21+
docker image tag $(IMAGE) $(IMAGE_NAME):$(MAJOR_VERSION) && \
22+
docker image tag $(IMAGE) $(IMAGE_NAME):$(MAJOR_VERSION).$(MINOR_VERSION) && \
23+
docker image tag $(IMAGE) $(IMAGE_NAME):$(MAJOR_VERSION).$(MINOR_VERSION).$(PATCH_VERSION)
2424

2525
test-unit:
2626
./tests/test_functions.sh

0 commit comments

Comments
 (0)