upgrade steps #12
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 images | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
# TODO add all-green job | |
# TODO add dependabot for this ci file | |
# TODO can we fallback to no-fakemachine if running in a fork _OR_ at least add a scheduling timeout ? | |
#jobs: | |
# build: | |
# runs-on: ubuntu-latest | |
# if: github.event_name != "pull_request" || github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name | |
# TODO make this a strategy: matrix to build all images in parallel | |
# TODO build ospacks first | |
env: | |
TMP: '/scratch' | |
jobs: | |
print_event: | |
name: print github event | |
runs-on: ubuntu-latest | |
steps: | |
- name: Dump GitHub context | |
env: | |
GITHUB_CONTEXT: ${{ toJson(github) }} | |
run: echo "$GITHUB_CONTEXT" | |
build_images: | |
name: Build images | |
# TODO test this works... | |
#runs-on: [self-hosted, Linux, X64, kvm] | |
runs-on: ${{ github.repository_owner == 'go-debos' && '[self-hosted, Linux, X64, kvm]' || 'ubuntu-latest' }} | |
container: | |
image: ghcr.io/go-debos/debos:main | |
# --device=/dev/kvm | |
options: >- | |
--security-opt label=disable | |
--cap-add=SYS_PTRACE | |
--tmpfs /scratch:exec | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Create output directory | |
run: mkdir out | |
- name: Build rpi64 image | |
run: debos --artifactdir=out rpi64/debimage-rpi64.yaml | |
- name: Publish rpi64 artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: rpi64 | |
path: out/ | |
if-no-files-found: error |