Docker: Build for riscv64 (#10345)
Upstream support has been added in Debian and Alpine. Only build as part of `docker_manifest` (Beta/Alpha/Daily) releases, because these will take a **while** thanks to qemu. Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
@@ -73,7 +73,9 @@ jobs:
|
|||||||
- name: Sanitize platform string
|
- name: Sanitize platform string
|
||||||
id: sanitize_platform
|
id: sanitize_platform
|
||||||
# Replace slashes with underscores
|
# Replace slashes with underscores
|
||||||
run: echo "cleaned_platform=${{ inputs.platform }}" | sed 's/\//_/g' >> $GITHUB_OUTPUT
|
env:
|
||||||
|
plat: ${{ inputs.platform }}
|
||||||
|
run: echo "cleaned_platform=${plat}" | sed 's/\//_/g' >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Docker login
|
- name: Docker login
|
||||||
if: ${{ inputs.push }}
|
if: ${{ inputs.push }}
|
||||||
|
|||||||
@@ -43,6 +43,15 @@ jobs:
|
|||||||
push: true
|
push: true
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
|
docker-debian-riscv64:
|
||||||
|
uses: ./.github/workflows/docker_build.yml
|
||||||
|
with:
|
||||||
|
distro: debian
|
||||||
|
platform: linux/riscv64
|
||||||
|
runs-on: ubuntu-24.04-arm
|
||||||
|
push: true
|
||||||
|
secrets: inherit
|
||||||
|
|
||||||
docker-alpine-amd64:
|
docker-alpine-amd64:
|
||||||
uses: ./.github/workflows/docker_build.yml
|
uses: ./.github/workflows/docker_build.yml
|
||||||
with:
|
with:
|
||||||
@@ -70,16 +79,27 @@ jobs:
|
|||||||
push: true
|
push: true
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
|
docker-alpine-riscv64:
|
||||||
|
uses: ./.github/workflows/docker_build.yml
|
||||||
|
with:
|
||||||
|
distro: alpine
|
||||||
|
platform: linux/riscv64
|
||||||
|
runs-on: ubuntu-24.04-arm
|
||||||
|
push: true
|
||||||
|
secrets: inherit
|
||||||
|
|
||||||
docker-manifest:
|
docker-manifest:
|
||||||
needs:
|
needs:
|
||||||
# Debian
|
# Debian
|
||||||
- docker-debian-amd64
|
- docker-debian-amd64
|
||||||
- docker-debian-arm64
|
- docker-debian-arm64
|
||||||
- docker-debian-armv7
|
- docker-debian-armv7
|
||||||
|
- docker-debian-riscv64
|
||||||
# Alpine
|
# Alpine
|
||||||
- docker-alpine-amd64
|
- docker-alpine-amd64
|
||||||
- docker-alpine-arm64
|
- docker-alpine-arm64
|
||||||
- docker-alpine-armv7
|
- docker-alpine-armv7
|
||||||
|
- docker-alpine-riscv64
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
@@ -162,6 +182,7 @@ jobs:
|
|||||||
meshtastic/meshtasticd@${{ needs.docker-debian-amd64.outputs.digest }}
|
meshtastic/meshtasticd@${{ needs.docker-debian-amd64.outputs.digest }}
|
||||||
meshtastic/meshtasticd@${{ needs.docker-debian-arm64.outputs.digest }}
|
meshtastic/meshtasticd@${{ needs.docker-debian-arm64.outputs.digest }}
|
||||||
meshtastic/meshtasticd@${{ needs.docker-debian-armv7.outputs.digest }}
|
meshtastic/meshtasticd@${{ needs.docker-debian-armv7.outputs.digest }}
|
||||||
|
meshtastic/meshtasticd@${{ needs.docker-debian-riscv64.outputs.digest }}
|
||||||
|
|
||||||
- name: Docker meta (Alpine)
|
- name: Docker meta (Alpine)
|
||||||
id: meta_alpine
|
id: meta_alpine
|
||||||
@@ -182,3 +203,4 @@ jobs:
|
|||||||
meshtastic/meshtasticd@${{ needs.docker-alpine-amd64.outputs.digest }}
|
meshtastic/meshtasticd@${{ needs.docker-alpine-amd64.outputs.digest }}
|
||||||
meshtastic/meshtasticd@${{ needs.docker-alpine-arm64.outputs.digest }}
|
meshtastic/meshtasticd@${{ needs.docker-alpine-arm64.outputs.digest }}
|
||||||
meshtastic/meshtasticd@${{ needs.docker-alpine-armv7.outputs.digest }}
|
meshtastic/meshtasticd@${{ needs.docker-alpine-armv7.outputs.digest }}
|
||||||
|
meshtastic/meshtasticd@${{ needs.docker-alpine-riscv64.outputs.digest }}
|
||||||
|
|||||||
Reference in New Issue
Block a user