Update Makefile
This commit is contained in:
parent
18b05ba68d
commit
a17037bab3
1 changed files with 7 additions and 4 deletions
11
Makefile
11
Makefile
|
|
@ -1,5 +1,5 @@
|
|||
IMAGE_REPO=ghcr.io/trstringer/manual-approval
|
||||
TARGET_PLATFORM=linux/amd64
|
||||
TARGET_PLATFORM=linux/amd64,linux/arm64,linux/arm/v8
|
||||
|
||||
.PHONY: tidy
|
||||
tidy:
|
||||
|
|
@ -11,15 +11,18 @@ build:
|
|||
echo "VERSION is required"; \
|
||||
exit 1; \
|
||||
fi
|
||||
docker build --platform $(TARGET_PLATFORM) -t $(IMAGE_REPO):$$VERSION .
|
||||
docker build --platform $(TARGET_PLATFORM) -t $(IMAGE_REPO):$(VERSION) .
|
||||
|
||||
.PHONY: push
|
||||
.PHONY: build_push
|
||||
push:
|
||||
@if [ -z "$(VERSION)" ]; then \
|
||||
echo "VERSION is required"; \
|
||||
exit 1; \
|
||||
fi
|
||||
docker push $(IMAGE_REPO):$(VERSION)
|
||||
docker buildx create --use --name mybuilder
|
||||
docker buildx build --push --platform $(TARGET_PLATFORM) -t $(IMAGE_REPO):$(VERSION) .
|
||||
docker buildx rm mybuilder
|
||||
|
||||
|
||||
.PHONY: test
|
||||
test:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue