Skip to content
Snippets Groups Projects
Commit 09e03352 authored by Luca Pireddu's avatar Luca Pireddu
Browse files

Add make rule to build amd64 and armv7 docker images with docker buildx

parent b145b374
No related branches found
No related tags found
No related merge requests found
FULLTAG=alpinebased:grafana-backup
DOCKER_REPO ?= ysde
DOCKER_NAME := grafana-backup
DOCKER_TAG ?= latest
PLATFORMS ?= linux/amd64,linux/arm/v7
FULLTAG = $(DOCKER_REPO)/$(DOCKER_NAME):$(DOCKER_TAG)
DOCKERFILE=Dockerfile
all: build
build:
docker build -t $(FULLTAG) -f $(DOCKERFILE) .
push: build
docker push $(FULLTAG)
buildx_and_push:
docker buildx build \
--output type=image,name=$(DOCKER_REPO)/$(DOCKER_NAME),push=true \
--platform linux/amd64,linux/arm/v7 \
--tag $(FULLTAG) \
--file $(DOCKERFILE) .
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment