1
0
Fork 0
mirror of https://github.com/eosswedenorg/thalos synced 2026-06-16 04:24:56 +02:00

makefile: adding docker-image and docker-publish rules

This commit is contained in:
Henrik Hautakoski 2024-05-09 11:38:09 +02:00
parent 1c1f537850
commit ea52a3848e

View file

@ -8,7 +8,7 @@ PREFIX=/usr/local
BINDIR=$(PREFIX)/bin
CFGDIR=$(PREFIX)/etc/thalos
.PHONY: build build/$(PROGRAM) build/thalos-tools test
.PHONY: build build/$(PROGRAM) build/thalos-tools test docker-image docker-publish
build: build/$(PROGRAM)
@ -20,6 +20,12 @@ tools : build/thalos-tools
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-publish:
docker publish ghcr.io/eosswedenorg/thalos:$(PROGRAM_VERSION)
install: build tools
install -D build/$(PROGRAM) $(DESTDIR)$(BINDIR)/$(PROGRAM)
install -D build/thalos-tools $(DESTDIR)$(BINDIR)/thalos-tools