@@ -741,11 +741,19 @@ jobs:
741741 push : true
742742 continue-on-error : true
743743# ------------------------------------------------------------------------------------#
744- build-push-docker-debian-guix-aarch64 :
744+ build-push-docker-debian-guix :
745745 name : Push (debian-guix) --> Docker Hub
746- # runs-on: ubuntu-latest
747- runs-on : ubuntu-24.04-arm
748746 needs : [build-push-debian-unstable-base]
747+ runs-on : ${{ matrix.runner }}
748+ strategy :
749+ matrix :
750+ include :
751+ - arch : ${{ matrix.arch }}
752+ platform : amd64
753+ runner : ubuntu-24.04-arm
754+ - arch : x86_64
755+ platform : arm64
756+ runner : ubuntu-latest
749757 steps :
750758 - name : Checkout repository
751759 uses : actions/checkout@v4
@@ -803,84 +811,14 @@ jobs:
803811 with :
804812 context : /tmp/DOCKERFILES/
805813 file : " /tmp/DOCKERFILES/debian-guix.dockerfile"
806- # platforms: "linux/amd64,linux/arm64"
807- platforms : " linux/arm64"
808- tags : |
809- pkgforge/debian-guix.dockerfile:aarch64
810- pkgforge/debian-guix.dockerfile:aarch64-${{ env.DOCKER_TAG }}
811- ghcr.io/pkgforge/devscripts/debian-guix.dockerfile:aarch64
812- ghcr.io/pkgforge/devscripts/debian-guix.dockerfile:aarch64-${{ env.DOCKER_TAG }}
813- push : true
814- continue-on-error : true
815- # ------------------------------------------------------------------------------------#
816- build-push-docker-debian-guix-x86-64 :
817- name : Push (debian-guix) --> Docker Hub
818- runs-on : ubuntu-latest
819- needs : [build-push-debian-unstable-base]
820- steps :
821- - name : Checkout repository
822- uses : actions/checkout@v4
823- with :
824- path : main
825- filter : " blob:none"
826-
827- - name : Debloat Runner
828- run : |
829- #Presets
830- set +x ; set +e
831- #--------------#
832- bash <(curl -qfsSL "https://raw.githubusercontent.com/pkgforge/devscripts/refs/heads/main/Github/Runners/debloat_ubuntu.sh")
833- continue-on-error : true
834-
835- - name : Setup Env
836- run : |
837- #Presets
838- set +x ; set +e
839- #--------------#
840- #Docker Tags
841- DOCKER_TAG="v$(date +'%Y.%m.%d')" && export DOCKER_TAG="${DOCKER_TAG}"
842- echo "DOCKER_TAG=${DOCKER_TAG}" >> "${GITHUB_ENV}"
843- #Copy dockerfiles
844- mkdir -p "/tmp/DOCKERFILES" && cd "/tmp/DOCKERFILES"
845- cp "${GITHUB_WORKSPACE}/main/Github/Runners/debian-guix.dockerfile" "/tmp/DOCKERFILES/debian-guix.dockerfile"
846- continue-on-error : true
847-
848- - name : Set up QEMU
849- uses : docker/setup-qemu-action@v3
850- continue-on-error : true
851-
852- - name : Set up Docker Buildx
853- uses : docker/setup-buildx-action@v3
854- continue-on-error : true
855-
856- - name : Login to Docker Hub
857- uses : docker/login-action@v3
858- with :
859- username : " ${{ secrets.DOCKERHUB_USERNAME }}"
860- password : " ${{ secrets.DOCKERHUB_TOKEN }}"
861- continue-on-error : true
862-
863- - name : Login to GHCR
864- uses : docker/login-action@v3
865- with :
866- registry : ghcr.io
867- username : " ${{ github.actor }}"
868- password : " ${{ secrets.GITHUB_TOKEN }}"
869- continue-on-error : true
870-
871- # https://hub.docker.com/r/pkgforge/debian-guix
872- - name : Docker Build and Push (debian-guix)
873- uses : docker/build-push-action@v6
874- with :
875- context : /tmp/DOCKERFILES/
876- file : " /tmp/DOCKERFILES/debian-guix.dockerfile"
877- # platforms: "linux/amd64,linux/arm64"
878- platforms : " linux/amd64"
814+ platforms : " linux/${{ matrix.platform }}"
815+ build-args : |
816+ ARCH=$(uname -m)
879817 tags : |
880- pkgforge/debian-guix:x86_64
881- pkgforge/debian-guix:x86_64 -${{ env.DOCKER_TAG }}
882- ghcr.io/pkgforge/devscripts/debian-guix:x86_64
883- ghcr.io/pkgforge/devscripts/debian-guix:x86_64 -${{ env.DOCKER_TAG }}
818+ pkgforge/debian-guix.dockerfile:${{ matrix.arch }}
819+ pkgforge/debian-guix.dockerfile:${{ matrix.arch }} -${{ env.DOCKER_TAG }}
820+ ghcr.io/pkgforge/devscripts/debian-guix.dockerfile:${{ matrix.arch }}
821+ ghcr.io/pkgforge/devscripts/debian-guix.dockerfile:${{ matrix.arch }} -${{ env.DOCKER_TAG }}
884822 push : true
885823 continue-on-error : true
886824# ------------------------------------------------------------------------------------#
0 commit comments