constraints from ENV #59
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 headless image | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
modify-rpi-image: | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Checkout repository | |
uses: actions/checkout@v4 | |
- | |
name: Add OVOS to Raspberry Pi OS Bookworm | |
uses: dtcooper/rpi-image-modifier@v1 | |
id: create-image | |
env: | |
USER: 'ovos' | |
PASSWORD: 'ovos' | |
HOSTNAME: "raspOVOS" | |
CONSTRAINTS: "https://github.com/OpenVoiceOS/ovos-releases/raw/refs/heads/main/constraints-alpha.txt" | |
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: raspOVOS-bookworm-arm64-lite.img | |
compress-with-xz: true | |
cache: true | |
mount-repository: true | |
env-vars: USER,PASSWORD,HOSTNAME,CONSTRAINTS | |
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: Create Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token | |
with: | |
tag_name: raspOVOS-bookworm-arm64-lite-${{ github.run_id }} | |
release_name: raspOVOS-bookworm-arm64-lite-${{ github.run_id }} | |
body: | | |
raspOVOS headless image | |
draft: true | |
prerelease: false | |
- | |
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 }} | |
release_id: ${{ steps.create_release.outputs.id }} | |
draft: false | |
overwrite: true | |
prerelease: true | |
verbose: true |