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:
parent
1c1f537850
commit
ea52a3848e
1 changed files with 7 additions and 1 deletions
8
Makefile
8
Makefile
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue