@@ -492,167 +492,33 @@ jobs:
492492 context : /tmp/DOCKERFILES/
493493 file : " /tmp/DOCKERFILES/ubuntu-builder.dockerfile"
494494 platforms : " linux/${{ matrix.platform }}"
495+ build-args : |
496+ ARCH=${{ matrix.arch }}
495497 tags : |
496498 pkgforge/ubuntu-builder:${{ matrix.arch }}
497499 pkgforge/ubuntu-builder:${{ matrix.arch }}-${{ env.DOCKER_TAG }}
498500 ghcr.io/pkgforge/devscripts/ubuntu-builder:${{ matrix.arch }}
499501 ghcr.io/pkgforge/devscripts/ubuntu-builder:${{ matrix.arch }}-${{ env.DOCKER_TAG }}
500- push : true
501- continue-on-error : true
502- # ------------------------------------------------------------------------------------#
503- build-push-docker-ubuntu-base-aarch64 :
504- name : Push (Ubuntu-Base-aarch64) --> Docker Hub
505- needs : [build-push-ubuntu-builder]
506- # runs-on: arm64-linux-healthchecker
507- # runs-on: ubuntu-latest
508- runs-on : ubuntu-24.04-arm
509-
510- steps :
511- - name : Checkout repository
512- uses : actions/checkout@v4
513- with :
514- path : main
515- filter : " blob:none"
516-
517- - name : Debloat Runner
518- run : |
519- #Presets
520- set +x ; set +e
521- #--------------#
522- bash <(curl -qfsSL "https://raw.githubusercontent.com/pkgforge/devscripts/main/Github/Runners/debloat_ubuntu.sh") --force
523- continue-on-error : true
524-
525- - name : Setup Env
526- run : |
527- #Presets
528- set +x ; set +e
529- #--------------#
530- #Docker Tags
531- DOCKER_TAG="v$(date +'%Y.%m.%d')" && export DOCKER_TAG="${DOCKER_TAG}"
532- echo "DOCKER_TAG=${DOCKER_TAG}" >> "${GITHUB_ENV}"
533- #Copy dockerfiles
534- mkdir -p "/tmp/DOCKERFILES" && cd "/tmp/DOCKERFILES"
535- cp "${GITHUB_WORKSPACE}/main/Github/Runners/ubuntu-systemd-base.dockerfile" "/tmp/DOCKERFILES/ubuntu-systemd-base.dockerfile"
536- continue-on-error : true
537-
538- - name : Set up QEMU
539- uses : docker/setup-qemu-action@v3
540- continue-on-error : true
541-
542- - name : Set up Docker Buildx
543- uses : docker/setup-buildx-action@v3
544- continue-on-error : true
545-
546- - name : Login to Docker Hub
547- uses : docker/login-action@v3
548- with :
549- username : " ${{ secrets.DOCKERHUB_USERNAME }}"
550- password : " ${{ secrets.DOCKERHUB_TOKEN }}"
551- continue-on-error : true
552-
553- - name : Login to GHCR
554- uses : docker/login-action@v3
555- with :
556- registry : ghcr.io
557- username : " ${{ github.actor }}"
558- password : " ${{ secrets.GITHUB_TOKEN }}"
559- continue-on-error : true
560-
561- # https://hub.docker.com/r/pkgforge/ubuntu-systemd-base
562- - name : Docker Build and Push (Ubuntu-Systemd-Base)
563- uses : docker/build-push-action@v6
564- with :
565- context : /tmp/DOCKERFILES/
566- file : " /tmp/DOCKERFILES/ubuntu-systemd-base.dockerfile"
567- platforms : " linux/arm64"
568- build-args : |
569- ARCH=aarch64
570- tags : |
571- pkgforge/ubuntu-systemd-base:aarch64
572- pkgforge/ubuntu-systemd-base:aarch64-${{ env.DOCKER_TAG }}
573- ghcr.io/pkgforge/devscripts/ubuntu-systemd-base:aarch64
574- ghcr.io/pkgforge/devscripts/ubuntu-systemd-base:aarch64-${{ env.DOCKER_TAG }}
575- push : true
502+ outputs : type=registry,compression=zstd,compression-level=22
576503 continue-on-error : true
577504# ------------------------------------------------------------------------------------#
578- build-push-docker- ubuntu-base-riscv64 :
579- name : Push (Ubuntu-Base-riscv64 ) --> Docker Hub
505+ build-push-ubuntu-systemd-base :
506+ name : Push (Ubuntu-Base ${{ matrix.arch }} ) --> Docker Hub
580507 needs : [build-push-ubuntu-builder]
581- runs-on : ubuntu-latest
582-
583- steps :
584- - name : Checkout repository
585- uses : actions/checkout@v4
586- with :
587- path : main
588- filter : " blob:none"
589-
590- - name : Debloat Runner
591- run : |
592- #Presets
593- set +x ; set +e
594- #--------------#
595- bash <(curl -qfsSL "https://raw.githubusercontent.com/pkgforge/devscripts/main/Github/Runners/debloat_ubuntu.sh") --force
596- continue-on-error : true
597-
598- - name : Setup Env
599- run : |
600- #Presets
601- set +x ; set +e
602- #--------------#
603- #Docker Tags
604- DOCKER_TAG="v$(date +'%Y.%m.%d')" && export DOCKER_TAG="${DOCKER_TAG}"
605- echo "DOCKER_TAG=${DOCKER_TAG}" >> "${GITHUB_ENV}"
606- #Copy dockerfiles
607- mkdir -p "/tmp/DOCKERFILES" && cd "/tmp/DOCKERFILES"
608- cp "${GITHUB_WORKSPACE}/main/Github/Runners/ubuntu-systemd-base.dockerfile" "/tmp/DOCKERFILES/ubuntu-systemd-base.dockerfile"
609- continue-on-error : true
610-
611- - name : Set up QEMU
612- uses : docker/setup-qemu-action@v3
613- continue-on-error : true
614-
615- - name : Set up Docker Buildx
616- uses : docker/setup-buildx-action@v3
617- continue-on-error : true
618-
619- - name : Login to Docker Hub
620- uses : docker/login-action@v3
621- with :
622- username : " ${{ secrets.DOCKERHUB_USERNAME }}"
623- password : " ${{ secrets.DOCKERHUB_TOKEN }}"
624- continue-on-error : true
625-
626- - name : Login to GHCR
627- uses : docker/login-action@v3
628- with :
629- registry : ghcr.io
630- username : " ${{ github.actor }}"
631- password : " ${{ secrets.GITHUB_TOKEN }}"
632- continue-on-error : true
508+ runs-on : ${{ matrix.runner }}
509+ strategy :
510+ matrix :
511+ include :
512+ - arch : aarch64
513+ platform : arm64
514+ runner : ubuntu-24.04-arm
515+ - arch : riscv64
516+ platform : riscv64
517+ runner : ubuntu-latest
518+ - arch : x86_64
519+ platform : amd64
520+ runner : ubuntu-latest
633521
634- # https://hub.docker.com/r/pkgforge/ubuntu-systemd-base
635- - name : Docker Build and Push (Ubuntu-Systemd-Base)
636- uses : docker/build-push-action@v6
637- with :
638- context : /tmp/DOCKERFILES/
639- file : " /tmp/DOCKERFILES/ubuntu-systemd-base.dockerfile"
640- platforms : " linux/riscv64"
641- build-args : |
642- ARCH=riscv64
643- tags : |
644- pkgforge/ubuntu-systemd-base:riscv64
645- pkgforge/ubuntu-systemd-base:riscv64-${{ env.DOCKER_TAG }}
646- ghcr.io/pkgforge/devscripts/ubuntu-systemd-base:riscv64
647- ghcr.io/pkgforge/devscripts/ubuntu-systemd-base:riscv64-${{ env.DOCKER_TAG }}
648- push : true
649- continue-on-error : true
650- # ------------------------------------------------------------------------------------#
651- build-push-docker-ubuntu-base-x64 :
652- name : Push (Ubuntu-Base-x64) --> Docker Hub
653- needs : [build-push-ubuntu-builder]
654- runs-on : ubuntu-latest
655-
656522 steps :
657523 - name : Checkout repository
658524 uses : actions/checkout@v4
@@ -710,15 +576,15 @@ jobs:
710576 with :
711577 context : /tmp/DOCKERFILES/
712578 file : " /tmp/DOCKERFILES/ubuntu-systemd-base.dockerfile"
713- platforms : " linux/amd64 "
579+ platforms : " linux/${{ matrix.platform }} "
714580 build-args : |
715- ARCH=x86_64
581+ ARCH=${{ matrix.arch }}
716582 tags : |
717- pkgforge/ubuntu-systemd-base:x86_64
718- pkgforge/ubuntu-systemd-base:x86_64 -${{ env.DOCKER_TAG }}
719- ghcr.io/pkgforge/devscripts/ubuntu-systemd-base:x86_64
720- ghcr.io/pkgforge/devscripts/ubuntu-systemd-base:x86_64 -${{ env.DOCKER_TAG }}
721- push : true
583+ pkgforge/ubuntu-systemd-base:${{ matrix.arch }}
584+ pkgforge/ubuntu-systemd-base:${{ matrix.arch }} -${{ env.DOCKER_TAG }}
585+ ghcr.io/pkgforge/devscripts/ubuntu-systemd-base:${{ matrix.arch }}
586+ ghcr.io/pkgforge/devscripts/ubuntu-systemd-base:${{ matrix.arch }} -${{ env.DOCKER_TAG }}
587+ outputs : type=registry,compression=zstd,compression-level=22
722588 continue-on-error : true
723589# ------------------------------------------------------------------------------------#
724590 build-push-docker-runner-aarch64 :
0 commit comments