diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 7e8fc13..8a24c38 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -12,9 +12,9 @@ jobs: strategy: fail-fast: true matrix: - platform: - - linux/amd64 - - linux/arm64 + arch: + - amd64 + - arm64 version: - buster - bullseye @@ -41,6 +41,6 @@ jobs: with: push: true tags: eumau/debian:${{ matrix.version }}${{ matrix.variant }} - platforms: ${{ matrix.platform }} + platforms: linux/${{ matrix.arch }} build-args: | - TARGET_PLATFORM=${{ matrix.platform }} + TARGET_ARCH=${{ matrix.arch }} diff --git a/Dockerfile b/Dockerfile index 88ff342..5b7beef 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,8 @@ ARG DEBIAN_VERSION=bullseye-slim -ARG TARGET_PLATFORM=linux/amd64 +ARG TARGET_ARCH=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}-${TARGET_PLATFORM//\//-} /usr/local/bin/confd +ADD https://github.com/kelseyhightower/confd/releases/download/v${CONFD_VERSION}/confd-${CONFD_VERSION}-linux-${TARGET_ARCH} /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 \