Skip to content

Add workflow for building runner image #4

Add workflow for building runner image

Add workflow for building runner image #4

Workflow file for this run

name: Build image
on:
workflow_dispatch:
schedule:
- cron: '0 3 * * *'
# TODO: Test only
pull_request:
jobs:
build-image:
runs-on: [self-hosted, large]
steps:
- uses: canonical/setup-lxd@main
with:
channel: 5.19/stable
- uses: actions/checkout@v4
- name: Install wget
run: sudo apt update && sudo apt install -yq wget
- name: Run build script
run: bash scripts/build-image.sh
- uses: actions/upload-artifact@v3
with:
name: self-hosted-runner-image
path: ./runner-image.tar.gz
retention-days: 14
if-no-files-found: error