Skip to content

Commit c87a108

Browse files
committed
build for riscv64
1 parent 130e1f8 commit c87a108

File tree

1 file changed

+70
-0
lines changed

1 file changed

+70
-0
lines changed

.github/workflows/build_gh_runner_images.yaml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,76 @@ jobs:
385385
ghcr.io/pkgforge/devscripts/ubuntu-systemd-base:aarch64-${{ env.DOCKER_TAG }}
386386
push: true
387387
continue-on-error: true
388+
#------------------------------------------------------------------------------------#
389+
build-push-docker-ubuntu-base-riscv64:
390+
name: Push (Ubuntu-Base-riscv64) --> Docker Hub
391+
runs-on: ubuntu-latest
392+
393+
steps:
394+
- name: Checkout repository
395+
uses: actions/checkout@v4
396+
with:
397+
path: main
398+
filter: "blob:none"
399+
400+
- name: Debloat Runner
401+
run: |
402+
#Presets
403+
set +x ; set +e
404+
#--------------#
405+
bash <(curl -qfsSL "https://raw.githubusercontent.com/pkgforge/devscripts/refs/heads/main/Github/Runners/debloat_ubuntu.sh")
406+
continue-on-error: true
407+
408+
- name: Setup Env
409+
run: |
410+
#Presets
411+
set +x ; set +e
412+
#--------------#
413+
#Docker Tags
414+
DOCKER_TAG="v$(date +'%Y.%m.%d')" && export DOCKER_TAG="${DOCKER_TAG}"
415+
echo "DOCKER_TAG=${DOCKER_TAG}" >> "${GITHUB_ENV}"
416+
#Copy dockerfiles
417+
mkdir -p "/tmp/DOCKERFILES" && cd "/tmp/DOCKERFILES"
418+
cp "${GITHUB_WORKSPACE}/main/Github/Runners/ubuntu-systemd-base.dockerfile" "/tmp/DOCKERFILES/ubuntu-systemd-base.dockerfile"
419+
continue-on-error: true
420+
421+
- name: Set up QEMU
422+
uses: docker/setup-qemu-action@v3
423+
continue-on-error: true
424+
425+
- name: Set up Docker Buildx
426+
uses: docker/setup-buildx-action@v3
427+
continue-on-error: true
428+
429+
- name: Login to Docker Hub
430+
uses: docker/login-action@v3
431+
with:
432+
username: "${{ secrets.DOCKERHUB_USERNAME }}"
433+
password: "${{ secrets.DOCKERHUB_TOKEN }}"
434+
continue-on-error: true
435+
436+
- name: Login to GHCR
437+
uses: docker/login-action@v3
438+
with:
439+
registry: ghcr.io
440+
username: "${{ github.actor }}"
441+
password: "${{ secrets.GITHUB_TOKEN }}"
442+
continue-on-error: true
443+
444+
#https://hub.docker.com/r/pkgforge/ubuntu-systemd-base
445+
- name: Docker Build and Push (Ubuntu-Systemd-Base)
446+
uses: docker/build-push-action@v6
447+
with:
448+
context: /tmp/DOCKERFILES/
449+
file: "/tmp/DOCKERFILES/ubuntu-systemd-base.dockerfile"
450+
platforms: "linux/riscv64"
451+
tags: |
452+
pkgforge/ubuntu-systemd-base:riscv64
453+
pkgforge/ubuntu-systemd-base:riscv64-${{ env.DOCKER_TAG }}
454+
ghcr.io/pkgforge/devscripts/ubuntu-systemd-base:riscv64
455+
ghcr.io/pkgforge/devscripts/ubuntu-systemd-base:riscv64-${{ env.DOCKER_TAG }}
456+
push: true
457+
continue-on-error: true
388458
#------------------------------------------------------------------------------------#
389459
build-push-docker-ubuntu-base-x64:
390460
name: Push (Ubuntu-Base-x64) --> Docker Hub

0 commit comments

Comments
 (0)