Skip to content

Commit d54e015

Browse files
committed
add
1 parent fcc2da5 commit d54e015

File tree

1 file changed

+71
-0
lines changed

1 file changed

+71
-0
lines changed

.github/workflows/build_gh_runner_images.yaml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -659,6 +659,77 @@ jobs:
659659
ghcr.io/pkgforge/devscripts/gh-runner-aarch64-ubuntu:latest-${{ env.DOCKER_TAG }}
660660
push: true
661661
continue-on-error: true
662+
#------------------------------------------------------------------------------------#
663+
build-push-docker-runner-riscv64:
664+
name: Push (runner-riscv64) --> Docker Hub
665+
runs-on: ubuntu-latest
666+
#needs: [build-push-docker-ubuntu-base]
667+
steps:
668+
- name: Checkout repository
669+
uses: actions/checkout@v4
670+
with:
671+
path: main
672+
filter: "blob:none"
673+
674+
- name: Debloat Runner
675+
run: |
676+
#Presets
677+
set +x ; set +e
678+
#--------------#
679+
bash <(curl -qfsSL "https://raw.githubusercontent.com/pkgforge/devscripts/main/Github/Runners/debloat_ubuntu.sh") --force
680+
continue-on-error: true
681+
682+
- name: Setup Env
683+
run: |
684+
#Presets
685+
set +x ; set +e
686+
#--------------#
687+
#Docker Tags
688+
DOCKER_TAG="v$(date +'%Y.%m.%d')" && export DOCKER_TAG="${DOCKER_TAG}"
689+
echo "DOCKER_TAG=${DOCKER_TAG}" >> "${GITHUB_ENV}"
690+
#Copy dockerfiles
691+
mkdir -p "/tmp/DOCKERFILES" && cd "/tmp/DOCKERFILES"
692+
cp "${GITHUB_WORKSPACE}/main/Github/Runners/riscv64-ubuntu.dockerfile" "/tmp/DOCKERFILES/riscv64-ubuntu.dockerfile"
693+
cp "${GITHUB_WORKSPACE}/main/Github/Runners/manage_linux.sh" "/tmp/DOCKERFILES/manager.sh"
694+
continue-on-error: true
695+
696+
- name: Set up QEMU
697+
uses: docker/setup-qemu-action@v3
698+
continue-on-error: true
699+
700+
- name: Set up Docker Buildx
701+
uses: docker/setup-buildx-action@v3
702+
continue-on-error: true
703+
704+
- name: Login to Docker Hub
705+
uses: docker/login-action@v3
706+
with:
707+
username: "${{ secrets.DOCKERHUB_USERNAME }}"
708+
password: "${{ secrets.DOCKERHUB_TOKEN }}"
709+
continue-on-error: true
710+
711+
- name: Login to GHCR
712+
uses: docker/login-action@v3
713+
with:
714+
registry: ghcr.io
715+
username: "${{ github.actor }}"
716+
password: "${{ secrets.GITHUB_TOKEN }}"
717+
continue-on-error: true
718+
719+
#https://hub.docker.com/r/pkgforge/gh-runner-riscv64-ubuntu
720+
- name: Docker Build and Push (gh-runner-riscv64-ubuntu)
721+
uses: docker/build-push-action@v6
722+
with:
723+
context: /tmp/DOCKERFILES/
724+
file: "/tmp/DOCKERFILES/riscv64-ubuntu.dockerfile"
725+
platforms: "linux/amd64"
726+
tags: |
727+
pkgforge/gh-runner-riscv64-ubuntu:latest
728+
pkgforge/gh-runner-riscv64-ubuntu:${{ env.DOCKER_TAG }}
729+
ghcr.io/pkgforge/devscripts/gh-runner-riscv64-ubuntu:latest
730+
ghcr.io/pkgforge/devscripts/gh-runner-riscv64-ubuntu:${{ env.DOCKER_TAG }}
731+
push: true
732+
continue-on-error: true
662733
#------------------------------------------------------------------------------------#
663734
build-push-docker-runner-x86-64:
664735
name: Push (runner-x86_64) --> Docker Hub

0 commit comments

Comments
 (0)