Add workflow for building runner image #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-get update && sudo apt-get 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 |