Skip to content

build headless image #2

build headless image

build headless image #2

Workflow file for this run

name: build image
on:
workflow_dispatch:
jobs:
modify-rpi-image:
runs-on: ubuntu-latest
steps:
-
name: Checkout repository
uses: actions/checkout@v4
-
name: Add pygame to Raspberry Pi OS Bookworm
uses: dtcooper/rpi-image-modifier@v1
id: create-image
env:
TEST: 'hi mom!'
with:
base-image-url: https://downloads.raspberrypi.com/raspios_lite_arm64/images/raspios_lite_arm64-2024-11-19/2024-11-19-raspios-bookworm-arm64-lite.img.xz
image-path: 2024-11-19-raspios-bookworm-arm64-lite-modified-with-pygame.img
compress-with-xz: true
cache: true
mount-repository: true
env-vars: TEST
script-path: build_raspOVOS.sh
-
name: Print outputs
shell: bash
run: |
echo 'image-path: ${{ steps.create-image.outputs.image-path }}'
echo 'image-size: ${{ steps.create-image.outputs.image-size }}'
echo 'image-sha256sum: ${{ steps.create-image.outputs.image-sha256sum }}'
-
name: Upload to releases
uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: steps.create-image.outputs.image-path
tags: true
draft: true
overwrite: true
prerelease: true
verbose: true