Skip to content

Commit

Permalink
Adding variabels for docker.
Browse files Browse the repository at this point in the history
  • Loading branch information
pnx committed Jun 23, 2024
1 parent a466392 commit a79bf8f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ PROGRAM_VERSION=1.1.2-rc3
PREFIX=/usr/local
BINDIR=$(PREFIX)/bin
CFGDIR=$(PREFIX)/etc/thalos
DOCKER_IMAGE_REPO ?= ghcr.io/eosswedenorg/thalos
DOCKER_IMAGE_TAG ?= $(PROGRAM_VERSION)

.PHONY: build build/$(PROGRAM) build/thalos-tools test docker-image docker-publish

Expand All @@ -21,10 +23,10 @@ build/thalos-tools :
$(GO) build $(GOBUILDFLAGS) -o $@ $(shell find cmd/tools -type f -name *.go)

docker-image:
docker image build --build-arg VERSION=$(PROGRAM_VERSION) -t ghcr.io/eosswedenorg/thalos:$(PROGRAM_VERSION) docker
docker image build --build-arg VERSION=$(PROGRAM_VERSION) -t $(DOCKER_IMAGE_REPO):$(DOCKER_IMAGE_TAG) docker

docker-publish:
docker image push ghcr.io/eosswedenorg/thalos:$(PROGRAM_VERSION)
docker image push $(DOCKER_IMAGE_REPO):$(DOCKER_IMAGE_TAG)

install: build tools
install -D build/$(PROGRAM) $(DESTDIR)$(BINDIR)/$(PROGRAM)
Expand Down

0 comments on commit a79bf8f

Please sign in to comment.