fix build

This commit is contained in:
Lukas Prettenthaler 2021-08-19 11:11:01 +02:00
parent cdf1a810a1
commit d3a67cb5a0
No known key found for this signature in database
GPG Key ID: 58E5A82932BCE65D
2 changed files with 4 additions and 4 deletions

View File

@ -41,7 +41,7 @@ jobs:
tags: ${{ matrix.arch }}
arch: ${{ matrix.arch }}
build-args: |
ARCH=${{ matrix.arch }}
ALPINE_ARCH=${{ matrix.arch }}
ALPINE_VERSION=${{ env.ALPINE_VERSION }}
ZT_COMMIT=${{ env.ZT_COMMIT }}
ZT_VERSION=${{ env.ZT_VERSION }}

View File

@ -1,9 +1,9 @@
ARG ARCH
ARG ALPINE_ARCH
ARG ALPINE_VERSION
ARG ZT_COMMIT
ARG ZT_VERSION
FROM docker.io/\${ARCH}/alpine:${ALPINE_VERSION} as builder
FROM docker.io/\${ALPINE_ARCH}/alpine:${ALPINE_VERSION} as builder
RUN apk add --update alpine-sdk linux-headers \
&& git clone --quiet https://github.com/zerotier/ZeroTierOne.git /src \
@ -11,7 +11,7 @@ RUN apk add --update alpine-sdk linux-headers \
&& cd /src \
&& make -f make-linux.mk
FROM docker.io/\${ARCH}/alpine:${ALPINE_VERSION}
FROM docker.io/\${ALPINE_ARCH}/alpine:${ALPINE_VERSION}
LABEL version="${ZT_VERSION}"
LABEL description="ZeroTier One as Docker Image"