Frank refactoring part 1
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
.PHONY: build-production
|
||||
build-production: ## Build the production docker image.
|
||||
@docker buildx build \
|
||||
--platform linux/amd64,linux/arm64/v8 \
|
||||
--tag registry.tanshu.com/frank:latest \
|
||||
$(if $(TAG),--tag registry.tanshu.com/frank:$(TAG)) \
|
||||
--pull \
|
||||
--push \
|
||||
git@git.tanshu.com:tanshu/barker.git#:frank
|
||||
|
||||
.PHONY: build-check
|
||||
build-check: ## Multi-arch build without push (compile check)
|
||||
@docker buildx build \
|
||||
--platform linux/amd64,linux/arm64/v8 \
|
||||
--tag frank:test \
|
||||
--pull \
|
||||
--progress=plain \
|
||||
git@git.tanshu.com:tanshu/barker.git#:frank
|
||||
|
||||
.PHONY: build-check-local
|
||||
build-check-local: ## Build local (compile check)
|
||||
@git archive --format=tar HEAD:frank | docker buildx build \
|
||||
--platform linux/amd64 \
|
||||
--tag frank:test \
|
||||
--pull \
|
||||
--progress=plain \
|
||||
--load \
|
||||
-
|
||||
Reference in New Issue
Block a user