@@ -839,4 +839,126 @@ jobs:
839839 ghcr.io/pkgforge/devscripts/debian-guix:${{ matrix.arch }}-${{ env.DOCKER_TAG }}
840840 push : true
841841 continue-on-error : true
842+ # ------------------------------------------------------------------------------------#
843+ build-push-docker-gentoo-builder :
844+ name : Push (gentoo-builder) --> Docker Hub
845+ runs-on : ${{ matrix.runner }}
846+ strategy :
847+ matrix :
848+ include :
849+ - arch : aarch64
850+ platform : arm64
851+ runner : ubuntu-24.04-arm
852+ base_img : " docker.io/gentoo/stage3:latest"
853+ target_img : " gentoo-builder-glibc"
854+
855+ - arch : aarch64
856+ platform : arm64
857+ runner : ubuntu-24.04-arm
858+ base_img : " docker.io/gentoo/stage3:llvm"
859+ target_img : " gentoo-builder-glibc-llvm"
860+
861+ - arch : aarch64
862+ platform : arm64
863+ runner : ubuntu-24.04-arm
864+ base_img : " docker.io/gentoo/stage3:musl"
865+ target_img : " gentoo-builder-musl"
866+
867+ - arch : aarch64
868+ platform : arm64
869+ runner : ubuntu-24.04-arm
870+ base_img : " docker.io/gentoo/stage3:musl-llvm"
871+ target_img : " gentoo-builder-musl-llvm"
872+
873+ - arch : x86_64
874+ platform : amd64
875+ runner : ubuntu-latest
876+ base_img : " docker.io/gentoo/stage3:latest"
877+ target_img : " gentoo-builder-glibc"
878+
879+ - arch : x86_64
880+ platform : amd64
881+ runner : ubuntu-latest
882+ base_img : " docker.io/gentoo/stage3:llvm"
883+ target_img : " gentoo-builder-glibc-llvm"
884+
885+ - arch : x86_64
886+ platform : amd64
887+ runner : ubuntu-latest
888+ base_img : " docker.io/gentoo/stage3:musl"
889+ target_img : " gentoo-builder-musl"
890+
891+ - arch : x86_64
892+ platform : amd64
893+ runner : ubuntu-latest
894+ base_img : " docker.io/gentoo/stage3:musl-llvm"
895+ target_img : " gentoo-builder-musl-llvm"
896+
897+ steps :
898+ - name : Checkout repository
899+ uses : actions/checkout@v4
900+ with :
901+ path : main
902+ filter : " blob:none"
903+
904+ - name : Debloat Runner
905+ run : |
906+ #Presets
907+ set +x ; set +e
908+ #--------------#
909+ bash <(curl -qfsSL "https://raw.githubusercontent.com/pkgforge/devscripts/refs/heads/main/Github/Runners/debloat_ubuntu.sh")
910+ continue-on-error : true
911+
912+ - name : Setup Env (${{ matrix.base_img }} ==> ${{ matrix.target_img }})
913+ run : |
914+ #Presets
915+ set +x ; set +e
916+ #--------------#
917+ #Docker Tags
918+ DOCKER_TAG="v$(date +'%Y.%m.%d')" && export DOCKER_TAG="${DOCKER_TAG}"
919+ echo "DOCKER_TAG=${DOCKER_TAG}" >> "${GITHUB_ENV}"
920+ #Copy dockerfiles
921+ mkdir -p "/tmp/DOCKERFILES" && cd "/tmp/DOCKERFILES"
922+ cp "${GITHUB_WORKSPACE}/main/Github/Runners/gentoo-builder.dockerfile" "/tmp/DOCKERFILES/gentoo-builder.dockerfile"
923+ continue-on-error : true
924+
925+ - name : Set up QEMU
926+ uses : docker/setup-qemu-action@v3
927+ continue-on-error : true
928+
929+ - name : Set up Docker Buildx
930+ uses : docker/setup-buildx-action@v3
931+ continue-on-error : true
932+
933+ - name : Login to Docker Hub
934+ uses : docker/login-action@v3
935+ with :
936+ username : " ${{ secrets.DOCKERHUB_USERNAME }}"
937+ password : " ${{ secrets.DOCKERHUB_TOKEN }}"
938+ continue-on-error : true
939+
940+ - name : Login to GHCR
941+ uses : docker/login-action@v3
942+ with :
943+ registry : ghcr.io
944+ username : " ${{ github.actor }}"
945+ password : " ${{ secrets.GITHUB_TOKEN }}"
946+ continue-on-error : true
947+
948+ # https://hub.docker.com/r/pkgforge/
949+ - name : Docker Build and Push (${{ matrix.base_img }} ==> ${{ matrix.target_img }})
950+ uses : docker/build-push-action@v6
951+ with :
952+ context : /tmp/DOCKERFILES/
953+ file : " /tmp/DOCKERFILES/gentoo-builder.dockerfile"
954+ platforms : " linux/${{ matrix.platform }}"
955+ build-args : |
956+ BASE_IMG=${{ matrix.base_img }}
957+ tags : |
958+ pkgforge/${{ matrix.target_img }}:${{ matrix.arch }}
959+ pkgforge/${{ matrix.target_img }}:${{ matrix.arch }}-${{ env.DOCKER_TAG }}
960+ ghcr.io/pkgforge/devscripts/${{ matrix.target_img }}:${{ matrix.arch }}
961+ ghcr.io/pkgforge/devscripts/${{ matrix.target_img }}:${{ matrix.arch }}-${{ env.DOCKER_TAG }}
962+ push : true
963+ continue-on-error : true
842964# ------------------------------------------------------------------------------------#
0 commit comments