Skip to content

Merge https://gitlab.com/nirvati/citadel/lts/os/rpi #4

Merge https://gitlab.com/nirvati/citadel/lts/os/rpi

Merge https://gitlab.com/nirvati/citadel/lts/os/rpi #4

Workflow file for this run

name: Build image on push or PR
on: ["push", "pull_request"]
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Dependencies
run: |
sudo apt update
sudo apt install -y binfmt-support qemu-user-static quilt debootstrap apt-cacher-ng libarchive-tools qemu-utils gpg pigz
- name: Set image name
run: |
SCHIRM_OS_VERSION="$(git describe --tags)"
IMAGE_NAME="schirm-os-${SCHIRM_OS_VERSION}"
echo "SCHIRM_OS_VERSION=$SCHIRM_OS_VERSION" >> $GITHUB_ENV
echo "IMAGE_NAME=$IMAGE_NAME" >> $GITHUB_ENV
- name: Prepare Docker
run: |
# These first two commands are a workaround for a bug in GitHub actions
sudo rm /etc/docker/daemon.json
sudo systemctl restart docker
sudo docker system prune --all --force
sudo docker logout ghcr.io
- name: Run build script
run: |
echo "Building $IMAGE_NAME"
sudo IMG_FILENAME=$IMAGE_NAME ARCHIVE_FILENAME=$IMAGE_NAME SCHIRM_OS_VERSION=$SCHIRM_OS_VERSION ./build.sh
- name: Copy ZIP to current working dir
run: cp deploy/*.zip ./
- name: Debug current working dir
run: ls -la
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
path: ${{ env.IMAGE_NAME }}.zip
name: ${{ env.IMAGE_NAME }}.zip
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
path: ${{ env.IMAGE_NAME }}-desktop.zip
name: ${{ env.IMAGE_NAME }}-desktop.zip