From: Jo Zzsi Date: Thu, 15 Jan 2026 13:45:18 +0000 (-0500) Subject: ci: replace non-standard PLATFORM with standard TARGETARCH X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bbacbc36854821bb597aa559eea161fce7723988;p=thirdparty%2Fdracut-ng.git ci: replace non-standard PLATFORM with standard TARGETARCH The simple goal of this PR is to remove unnecessary variable to make the code more readable and maintainable. --- diff --git a/.github/workflows/container-extra.yml b/.github/workflows/container-extra.yml index 728684986..9a3573d6a 100644 --- a/.github/workflows/container-extra.yml +++ b/.github/workflows/container-extra.yml @@ -75,4 +75,3 @@ jobs: DISTRIBUTION=${{ matrix.config.tag }} REGISTRY=${{ matrix.config.registry }} OPTION=${{ matrix.config.option }} - PLATFORM=${{ matrix.config.platform }} diff --git a/.github/workflows/container.yml b/.github/workflows/container.yml index d7c152732..e950fc015 100644 --- a/.github/workflows/container.yml +++ b/.github/workflows/container.yml @@ -70,4 +70,3 @@ jobs: platforms: ${{ matrix.architecture.platform }} build-args: | DISTRIBUTION=${{ matrix.config.tag }} - PLATFORM=${{ matrix.config.platform }} diff --git a/test/container/Dockerfile-azurelinux b/test/container/Dockerfile-azurelinux index da82517e6..dc0243a56 100644 --- a/test/container/Dockerfile-azurelinux +++ b/test/container/Dockerfile-azurelinux @@ -1,9 +1,10 @@ FROM mcr.microsoft.com/azurelinux/base/core:3.0 -ARG PLATFORM=linux/amd64 +# export +ARG TARGETARCH RUN \ -if [[ "${PLATFORM}" =~ "amd64" ]]; then \ +if [ "${TARGETARCH}" == "amd64" ]; then \ tdnf -y install --setopt=install_weak_deps=False \ systemd-boot \ systemd-ukify \