Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 3d3298d

Browse files
committed
Tag CI images with current tag
Signed-off-by: Christopher Crone <[email protected]>
1 parent 09d1d63 commit 3d3298d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,17 +71,17 @@ clean:
7171

7272
ci-lint:
7373
@echo "Linting..."
74-
docker build -t $(IMAGE_NAME)-lint $(IMAGE_BUILD_ARGS) -f Dockerfile.lint . --target=lint-image
75-
docker run --rm $(IMAGE_NAME)-lint
74+
docker build -t $(IMAGE_NAME)-lint:$(TAG) $(IMAGE_BUILD_ARGS) -f Dockerfile.lint . --target=lint-image
75+
docker run --rm $(IMAGE_NAME)-lint:$(TAG)
7676

7777
ci-test:
7878
@echo "Testing..."
79-
docker build -t $(IMAGE_NAME)-test $(IMAGE_BUILD_ARGS) . --target=test
79+
docker build -t $(IMAGE_NAME)-test:$(TAG) $(IMAGE_BUILD_ARGS) . --target=test
8080

8181
ci-bin-%:
8282
@echo "Building tarball for $*..."
83-
docker build -t $(IMAGE_NAME)-bin-all $(IMAGE_BUILD_ARGS) . --target=bin-build
84-
docker run --rm $(IMAGE_NAME)-bin-all tar -cz $(BIN_NAME)-$*$(if $(filter windows, $*),.exe,) -C /go/src/$(PKG_NAME)/_build/$(TAG)/ > $(BIN_NAME)-$*-$(TAG).tar.gz
83+
docker build -t $(IMAGE_NAME)-bin-all:$(TAG) $(IMAGE_BUILD_ARGS) . --target=bin-build
84+
docker run --rm $(IMAGE_NAME)-bin-all:$(TAG) tar -cz $(BIN_NAME)-$*$(if $(filter windows, $*),.exe,) -C /go/src/$(PKG_NAME)/_build/$(TAG)/ > $(BIN_NAME)-$*-$(TAG).tar.gz
8585

8686
.PHONY: bin bin-all release test check lint e2e-test unit-test clean ci-lint ci-test
8787
.DEFAULT: all

0 commit comments

Comments
 (0)