Skip to content

Fix Error: Process completed with exit code 8. #78

Fix Error: Process completed with exit code 8.

Fix Error: Process completed with exit code 8. #78

Workflow file for this run

name: HoneyPi CI release
on:
push:
branches:
- main
workflow_dispatch:
# To cancel a currently running workflow from the same PR, branch or tag when a new workflow is triggered
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
rpi-image:
name: "Build 🍯-🐝-Image"
runs-on: ubuntu-latest
steps:
- name: Get current date
shell: bash
run: echo "START_TIME=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v4
# install dependencies
- name: πŸ”½ Install dependencies
run: |
sudo apt-get update
sudo apt-get -y install --no-install-recommends coreutils quilt parted qemu-utils qemu-user-static debootstrap zerofree zip dosfstools libarchive-tools libcap2-bin grep rsync xz-utils file git curl bc
# build image
- name: 🚧 Build
run: |
git clone https://github.com/RPi-Distro/pi-gen pi-gen
# turn the detached message off
git config --global advice.detachedHead false
cd pi-gen && git fetch && git fetch --tags
git checkout 2024-03-12-raspios-bullseye
cp ./../config ./config
cp -R ./../stage-honeypi ./stage-honeypi
sudo ./build.sh
sudo mv ./deploy/*.zip ./deploy/HoneyPi.zip
sudo chown -fR $(stat -c "%U:%G" .) ./deploy
# delete previous releases
- name: πŸ—‘οΈ Delete previous releases
uses: dev-drprasad/[email protected]
with:
keep_latest: 0
delete_tags: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# create release and upload image
- name: πŸš€ Create release and upload image
uses: svenstaro/[email protected]
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: pi-gen/deploy/HoneyPi.zip
asset_name: ${{ env.START_TIME }}-HoneyPi-armhf-lite.zip
tag: ${{ env.START_TIME }}-HoneyPi
release_name: ${{ env.START_TIME }}-HoneyPi-Image
body: "Raspberry Pi OS armhf Lite image with HoneyPi pre installed. Release created by GitHub action."
overwrite: true
- name: Add artifact to Workflow
uses: actions/upload-artifact@v4
with:
name: HoneyPi-Image
path: pi-gen/deploy/HoneyPi.zip