diff --git a/Makefile b/Makefile index 2d3088b..52fc95c 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,6 @@ PROJECT := dateilager VERSION := $(shell git describe --tags --abbrev=0) +GIT_COMMIT := $(shell git rev-parse --short HEAD) BUILD_FLAGS := -ldflags="-s -w -X github.com/gadget-inc/dateilager/pkg/version.Version=$(VERSION)" DB_HOST ?= 127.0.0.1 @@ -201,6 +202,10 @@ else docker push gcr.io/gadget-core-production/dateilager:latest endif +upload-prerelease-container-image: release + docker build -t gcr.io/gadget-core-production/dateilager:$(GIT_COMMIT) . + docker push gcr.io/gadget-core-production/dateilager:$(GIT_COMMIT) + run-container: release docker build -t dl-local:latest . docker run --rm -it -p 127.0.0.1:$(GRPC_PORT):$(GRPC_PORT)/tcp -v ./development:/home/main/secrets/tls -v ./development:/home/main/secrets/paseto dl-local:latest $(GRPC_PORT) "postgres://$(DB_USER):$(DB_PASS)@host.docker.internal:5432" dl