mirror of
https://github.com/eosswedenorg/thalos
synced 2026-06-25 10:33:43 +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
|
BINDIR=$(PREFIX)/bin
|
||||||
CFGDIR=$(PREFIX)/etc/thalos
|
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)
|
build: build/$(PROGRAM)
|
||||||
|
|
||||||
|
|
@ -20,6 +20,12 @@ tools : build/thalos-tools
|
||||||
build/thalos-tools :
|
build/thalos-tools :
|
||||||
$(GO) build $(GOBUILDFLAGS) -o $@ $(shell find cmd/tools -type f -name *.go)
|
$(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: build tools
|
||||||
install -D build/$(PROGRAM) $(DESTDIR)$(BINDIR)/$(PROGRAM)
|
install -D build/$(PROGRAM) $(DESTDIR)$(BINDIR)/$(PROGRAM)
|
||||||
install -D build/thalos-tools $(DESTDIR)$(BINDIR)/thalos-tools
|
install -D build/thalos-tools $(DESTDIR)$(BINDIR)/thalos-tools
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue