Skip to content

[5/8] riscv: guest VIFs with a busybox hotplug script #6

[5/8] riscv: guest VIFs with a busybox hotplug script

[5/8] riscv: guest VIFs with a busybox hotplug script #6

name: Build xen-riscv64-trixie
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+-xen-riscv64-trixie'
pull_request:
paths:
- 'docker/riscv/trixie/**'
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
persist-credentials: false
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
- name: Log in to GHCR
if: github.event_name != 'pull_request'
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build (PR - no push)
if: github.event_name == 'pull_request'
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
with:
context: docker/riscv/trixie/image
file: docker/riscv/trixie/image/Dockerfile
platforms: linux/amd64
push: false
- name: Build and push (tag)
if: github.event_name == 'push'
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
with:
context: docker/riscv/trixie/image
file: docker/riscv/trixie/image/Dockerfile
platforms: linux/amd64
push: true
tags: ghcr.io/${{ github.repository_owner }}/xen-riscv64-trixie:${{ github.ref_name }}