diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index cba39d6..a29a035 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -11,6 +11,9 @@ jobs: runs-on: ubuntu-latest strategy: matrix: + platform: + - linux/amd64 + - linux/arm64 version: - buster - bullseye @@ -37,4 +40,6 @@ jobs: with: push: true tags: eumau/debian:${{ matrix.version }}${{ matrix.variant }} - platforms: linux/amd64,linux/arm64 + platforms: ${{ matrix.platform }} + build-args: | + TARGET_PLATFORM=${{ matrix.platform }} diff --git a/Dockerfile b/Dockerfile index 56d7018..1817933 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,8 @@ ARG DEBIAN_VERSION=bullseye-slim +ARG TARGET_PLATFORM=linux/amd64 FROM debian:${DEBIAN_VERSION} ARG CONFD_VERSION=0.16.0 -ADD https://github.com/kelseyhightower/confd/releases/download/v${CONFD_VERSION}/confd-${CONFD_VERSION}-linux-amd64 /usr/local/bin/confd +ADD https://github.com/kelseyhightower/confd/releases/download/v${CONFD_VERSION}/confd-${CONFD_VERSION}-${TARGET_PLATFORM////-} /usr/local/bin/confd RUN mkdir -p /start.d \ && printf '#!/bin/bash\nset -e\n/usr/local/bin/confd -onetime -backend env\nrun-parts -v /start.d\nexec ${@}\n' > /entrypoint.sh \ && mkdir -p /etc/confd/conf.d /etc/confd/templates \