Skip to content

Public reusable workflow #79

Public reusable workflow

Public reusable workflow #79

name: Build Incus image
on:
workflow_dispatch:
env:
os: mageia
jobs:
build-for-target:
name: Build for target
runs-on: self-hosted
steps:
- name: Clone repo
uses: Chiogros/image-mageia/.github/workflows/checkout-self-hosted.yaml
- name: Build rootfs
uses: ./.github/workflows/build-rootfs.yaml
- name: Cache build
id: build
uses: actions/cache@v4
with:
path: ./out/disk.qcow2
key: image-${{ env.os }}-incus-${{ hashFiles('*.sqfs', '*.yaml') }}
- name: Make build-incus
if: steps.build.outputs.cache-hit != 'true'
run: make build-incus
- name: Upload image
uses: actions/upload-artifact@v4
with:
name: image-${{ env.os }}-incus
path: ./out/*