]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
ci: replace non-standard PLATFORM with standard TARGETARCH
authorJo Zzsi <jozzsicsataban@gmail.com>
Thu, 15 Jan 2026 13:45:18 +0000 (08:45 -0500)
committerLaszlo <laszlo.gombos@gmail.com>
Thu, 15 Jan 2026 15:41:09 +0000 (10:41 -0500)
The simple goal of this PR is to remove unnecessary variable
to make the code more readable and maintainable.

.github/workflows/container-extra.yml
.github/workflows/container.yml
test/container/Dockerfile-azurelinux

index 728684986d6c054258981cf63acc05a5b4fe4a23..9a3573d6aef89242ceed9841a66905142f50e84a 100644 (file)
@@ -75,4 +75,3 @@ jobs:
                       DISTRIBUTION=${{ matrix.config.tag }}
                       REGISTRY=${{ matrix.config.registry }}
                       OPTION=${{ matrix.config.option }}
-                      PLATFORM=${{ matrix.config.platform }}
index d7c152732ef80fe51066e114b4a5082ac745846c..e950fc0150b667f08d9bf78100d9525bf66c3497 100644 (file)
@@ -70,4 +70,3 @@ jobs:
                   platforms: ${{ matrix.architecture.platform }}
                   build-args: |
                       DISTRIBUTION=${{ matrix.config.tag }}
-                      PLATFORM=${{ matrix.config.platform }}
index da82517e60c9fb0fd3db0d0191521c7eed2a0328..dc0243a56c06f27a498efcfe0cc8d3eb024cac26 100644 (file)
@@ -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 \