The simple goal of this PR is to remove unnecessary variable
to make the code more readable and maintainable.
DISTRIBUTION=${{ matrix.config.tag }}
REGISTRY=${{ matrix.config.registry }}
OPTION=${{ matrix.config.option }}
- PLATFORM=${{ matrix.config.platform }}
platforms: ${{ matrix.architecture.platform }}
build-args: |
DISTRIBUTION=${{ matrix.config.tag }}
- PLATFORM=${{ matrix.config.platform }}
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 \