Files
restic/Makefile
Filip Pytloun e8be87a82a
Some checks failed
continuous-integration/drone Build is failing
Fix arm64 platform
2024-03-31 20:40:45 +02:00

15 lines
523 B
Makefile

ORG ?= genunix
VERSION ?= $(shell grep "ARG RESTIC_VERSION" Dockerfile | cut -d = -f 2)
PLATFORMS ?= linux/arm64,linux/amd64
build: print-version build-version build-latest
print-version:
@echo "Building $(ORG)/restic:$(VERSION) for $(PLATFORMS)"
build-version:
docker buildx build --build-arg RESTIC_VERSION=$(VERSION) --push --platform $(PLATFORMS) --tag $(ORG)/restic:$(VERSION) .
build-latest:
docker buildx build --build-arg RESTIC_VERSION=$(VERSION) --push --platform $(PLATFORMS) --tag $(ORG)/restic:latest .