Fix argument
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
ARG RESTIC_VERSION=0.15.1
|
|
||||||
FROM golang:1.19-alpine AS builder
|
FROM golang:1.19-alpine AS builder
|
||||||
|
|
||||||
|
ARG RESTIC_VERSION=0.15.1
|
||||||
RUN apk add --no-cache git
|
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
|
RUN git clone --depth 1 --branch v${RESTIC_VERSION} https://github.com/restic/restic.git /go/src/github.com/restic/restic
|
||||||
|
|
||||||
|
|||||||
4
Makefile
4
Makefile
@@ -1,8 +1,8 @@
|
|||||||
ORG ?= genunix
|
ORG ?= genunix
|
||||||
VERSION ?= $(shell grep "ARG RESTIC_VERSION" Dockerfile | cut -d = -f 2)
|
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:
|
print-version:
|
||||||
@echo "Building $(ORG)/restic:$(VERSION) for $(PLATFORMS)"
|
@echo "Building $(ORG)/restic:$(VERSION) for $(PLATFORMS)"
|
||||||
|
|||||||
Reference in New Issue
Block a user