wip
This commit is contained in:
7
Makefile
7
Makefile
@@ -43,18 +43,13 @@ local-format: ## format locally all files
|
|||||||
gofmt -s -l -w .
|
gofmt -s -l -w .
|
||||||
|
|
||||||
.PHONY: build
|
.PHONY: build
|
||||||
build: sources-image ## Build the docker image with application binary
|
build: ## Build the docker image with application binary
|
||||||
@echo "+ $@"
|
@echo "+ $@"
|
||||||
docker build --no-cache \
|
docker build --no-cache \
|
||||||
-f containers/Dockerfile \
|
-f containers/Dockerfile \
|
||||||
--build-arg SOURCES_IMAGE=$(NAME)-sources:$(VERSION) \
|
|
||||||
-t poketools:$(VERSION) .
|
-t poketools:$(VERSION) .
|
||||||
|
|
||||||
GIT_CREDENTIALS?=$(shell cat ~/.git-credentials 2> /dev/null)
|
GIT_CREDENTIALS?=$(shell cat ~/.git-credentials 2> /dev/null)
|
||||||
.PHONY: sources-image
|
|
||||||
sources-image: ## Generate a Docker image with only the sources
|
|
||||||
@echo "+ $@"
|
|
||||||
docker build -t $(NAME)-sources:$(VERSION) -f containers/Dockerfile.sources .
|
|
||||||
|
|
||||||
|
|
||||||
.PHONY: local-run-dependencies
|
.PHONY: local-run-dependencies
|
||||||
|
|||||||
Reference in New Issue
Block a user