mirror of
https://github.com/eosswedenorg/thalos
synced 2026-06-16 04:24:56 +02:00
Adding variabels for docker.
This commit is contained in:
parent
a466392b84
commit
a79bf8f2f3
1 changed files with 4 additions and 2 deletions
6
Makefile
6
Makefile
|
|
@ -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
|
||||
|
||||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue