Skip to content

Commit

Permalink
build: Fix version in docker binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
pando85 committed Jun 18, 2024
1 parent 477ec62 commit 8ef3099
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
FROM golang:1.22.4 AS builder

ARG VERSION

COPY . .
RUN make kured-alert-silencer
RUN VERSION=${VERSION} make kured-alert-silencer

FROM alpine:3.20.0

Expand Down
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,14 @@ kured-alert-silencer:
.PHONY: image
image:
$(SUDO) docker buildx build $(DOCKER_EXTRA_ARGS) \
--build-arg VERSION=$(VERSION) \
--load -t ghcr.io/$(DH_ORG)/kured-alert-silencer:$(VERSION) .

.PHONY: push-images
push-images: DOCKER_EXTRA_ARGS ?= --platform linux/amd64,linux/arm64
push-images:
$(SUDO) docker buildx build $(DOCKER_EXTRA_ARGS) \
--build-arg VERSION=$(VERSION) \
--push -t ghcr.io/$(DH_ORG)/kured-alert-silencer:$(VERSION) .

.PHONY: manifest
Expand Down

0 comments on commit 8ef3099

Please sign in to comment.