Skip to content

new stage

new stage #25

# This workflow builds a Raspberry Pi image with Docker and Bitbot pre-installed
# and uploads the bootable image as an artifact.
name: Build Bitbot Pi Image
on: [push]
# on:
# workflow_dispatch:
# push:
# branches: [ main ]
jobs:
build-pi-image:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
# Create a stage 'test-stage' instructing to add Nodesource repo and install nodejs as dependency
- name: Build Raspberry Pi image
uses: usimd/pi-gen-action@v1
id: build
with:
image-name: bitbot-pi
hostname: bitbot
username: pi
password: raspberry
compression: gz
compression-level: 6
disable-first-boot-user-rename: 1
enable-ssh: 1
pi-gen-version: arm64
release: bookworm
stage-list: stage0 stage1 stage2 ./stage-bitbot
timezone: Europe/London
verbose-output: true
# increase-runner-disk-size: true
- name: Upload image artifact
uses: actions/upload-artifact@v4
with:
name: bitbot-pi-image
path: ${{ steps.build.outputs.image-path }}