proxy: use confd fork to enable arm support

This commit is contained in:
iwilltry42 2020-06-18 15:51:26 +02:00
parent d2deb02c3d
commit 4ca19dbf9c
No known key found for this signature in database
GPG Key ID: 7BA57AD1CFF16110
2 changed files with 8 additions and 8 deletions

View File

@ -223,7 +223,7 @@ steps:
password: password:
from_secret: docker_password from_secret: docker_password
build_args: build_args:
- ARCH=arm64 - ARCH=arm
when: when:
event: event:
- tag - tag

View File

@ -1,12 +1,12 @@
FROM nginx:1.16.0-alpine FROM nginx:1.16.0-alpine
ARG ARCH ARG CONFD_REPO=iwilltry42/confd
# set ARCH from build-arg, if it's set ARG CONFD_VERSION=0.16.1
ENV ARCH=${ARCH} ARG OS=linux
# if ARCH unset, default to amd64 ARG ARCH=amd64
ENV ARCH=${ARCH:-amd64} RUN echo "Building for '${OS}/${ARCH}'..." \
RUN apk -U --no-cache add curl ca-certificates\ && apk -U --no-cache add curl ca-certificates\
&& mkdir -p /etc/confd \ && mkdir -p /etc/confd \
&& curl -sLf https://github.com/kelseyhightower/confd/releases/download/v0.16.0/confd-0.16.0-linux-${ARCH} > /usr/bin/confd \ && curl -sLf "https://github.com/${CONFD_REPO}/releases/download/v${CONFD_VERSION}/confd-${CONFD_VERSION}-${OS}-${ARCH}" > /usr/bin/confd \
&& chmod +x /usr/bin/confd \ && chmod +x /usr/bin/confd \
&& apk del curl && apk del curl