From 90f62a2c46b4821a25900f0cf2e8bc9c56300e92 Mon Sep 17 00:00:00 2001 From: Filip Pytloun Date: Thu, 6 Apr 2023 12:59:23 +0200 Subject: [PATCH] Fix argument --- Dockerfile | 2 +- Makefile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 21d8edd..d930394 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ -ARG RESTIC_VERSION=0.15.1 FROM golang:1.19-alpine AS builder +ARG RESTIC_VERSION=0.15.1 RUN apk add --no-cache git RUN git clone --depth 1 --branch v${RESTIC_VERSION} https://github.com/restic/restic.git /go/src/github.com/restic/restic diff --git a/Makefile b/Makefile index 1ffaa44..029a764 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,8 @@ ORG ?= genunix VERSION ?= $(shell grep "ARG RESTIC_VERSION" Dockerfile | cut -d = -f 2) -PLATFORMS ?= linux/arm/v7,linux/arm64/v8,linux/amd64 +PLATFORMS ?= linux/arm64/v8,linux/amd64 -build-all: print-version build-version build-latest +build: print-version build-version build-latest print-version: @echo "Building $(ORG)/restic:$(VERSION) for $(PLATFORMS)"