Initialize Git Repository: 'Raspberry-Pi-Image-Tool'
Raspberry Pi Image Tool / Raspberry Pi Image Tool (arm64, cicd.trixie, trixie noble, main) (push) Successful in 12s

This commit is contained in:
Cantibra
2026-05-04 21:21:59 +02:00
commit 2512b9511f
9 changed files with 1756 additions and 0 deletions
+81
View File
@@ -0,0 +1,81 @@
name: Raspberry Pi Image Tool
on:
push:
branches:
- release
jobs:
workflow:
name: Raspberry Pi Image Tool
strategy:
matrix:
include:
- architecture: arm64
cicd: cicd.trixie
codename: trixie noble
component: main
runs-on: ${{ matrix.cicd }}
steps:
- name: Repository [Clone]
uses: actions/checkout@v6
- name: Environment
id: environment
run: |
source './.env'
/usr/bin/echo "VERSION=${VERSION}" >> "${GITHUB_OUTPUT}"
/usr/bin/echo "Set Variable 'VERSION' to '${VERSION}'"
- name: WPA-Supplicant Package [Download]
run: |
/usr/bin/apt download wpasupplicant
- name: WPA-Supplicant Package [Extract]
run: |
/usr/bin/dpkg-deb --verbose --raw-extract './wpasupplicant'* './wpasupplicant'
- name: Debian Package [Prepare]
env:
ARCHITECTURE: ${{ matrix.architecture }}
VERSION: ${{ steps.environment.outputs.version }}
run: |
/usr/bin/sed --in-place --expression="s/Architecture:.*/Architecture: ${ARCHITECTURE}/" './raspi-image/DEBIAN/control'
/usr/bin/sed --in-place --expression="s/Version:.*/Version: ${VERSION}/" './raspi-image/DEBIAN/control'
/usr/bin/install --directory --verbose './raspi-image/usr/lib/raspi-image'
/usr/bin/mv --verbose './wpasupplicant/usr/bin/wpa_passphrase' './raspi-image/usr/lib/raspi-image/wpa_passphrase'
/usr/bin/chmod --verbose '0755' './raspi-image/DEBIAN/postinst'
/usr/bin/chmod --verbose '0755' './raspi-image/DEBIAN/postrm'
/usr/bin/chmod --verbose '0755' './raspi-image/usr/sbin/raspi-image'
- name: Debian Package [Build]
env:
ARCHITECTURE: ${{ matrix.architecture }}
VERSION: ${{ steps.environment.outputs.version }}
run: |
/usr/bin/dpkg-gen './raspi-image'
/usr/bin/mv --verbose './raspi-image.deb' "./raspi-image_${VERSION}_${ARCHITECTURE}.deb"
- name: Debian Repository [Prepare]
env:
ARCHITECTURE: ${{ matrix.architecture }}
CODENAME: ${{ matrix.codename }}
COMPONENT: ${{ matrix.component }}
REPOSITORY_SSH_PRIVATE_KEY: ${{ secrets.REPOSITORY_SSH_PRIVATE_KEY }}
VERSION: ${{ steps.environment.outputs.version }}
run: |
/usr/bin/echo "${REPOSITORY_SSH_PRIVATE_KEY}" > './id_ed25519'
/usr/bin/chmod --quiet '0400' './id_ed25519'
/usr/bin/echo "REPOSITORY_CODENAME='${CODENAME}'" > "./raspi-image_${VERSION}_${ARCHITECTURE}.cfg"
/usr/bin/echo "Set Configuration 'REPOSITORY_CODENAME' to '${CODENAME}'"
/usr/bin/echo "REPOSITORY_COMPONENT='${COMPONENT}'" >> "./raspi-image_${VERSION}_${ARCHITECTURE}.cfg"
/usr/bin/echo "Set Configuration 'REPOSITORY_COMPONENT' to '${COMPONENT}'"
- name: Publish Package [Release]
uses: https://gitea.com/actions/gitea-release-action@v1
with:
name: Raspberry Pi Image Tool v${{ steps.environment.outputs.version }}
tag_name: v${{ steps.environment.outputs.version }}
files: |
raspi-image_${{ steps.environment.outputs.version }}_${{ matrix.architecture }}.deb
- name: Debian Package [Debian Repository Publish]
env:
ARCHITECTURE: ${{ matrix.architecture }}
REPOSITORY_SSH_HOSTNAME: ${{ secrets.REPOSITORY_SSH_HOSTNAME }}
REPOSITORY_SSH_USER: ${{ secrets.REPOSITORY_SSH_USER }}
REPOSITORY_DESTINATION: ${{ secrets.REPOSITORY_DESTINATION }}
VERSION: ${{ steps.environment.outputs.version }}
run: |
/usr/bin/scp -4 -B -C -i './id_ed25519' -o 'LogLevel QUIET' -o 'StrictHostKeyChecking no' -o "UserKnownHostsFile '/dev/null'" "./raspi-image_${VERSION}_${ARCHITECTURE}.deb" "${REPOSITORY_SSH_USER}"@"${REPOSITORY_SSH_HOSTNAME}":"${REPOSITORY_DESTINATION}/raspi-image_${VERSION}_${ARCHITECTURE}.deb"
/usr/bin/scp -4 -B -C -i './id_ed25519' -o 'LogLevel QUIET' -o 'StrictHostKeyChecking no' -o "UserKnownHostsFile '/dev/null'" "./raspi-image_${VERSION}_${ARCHITECTURE}.cfg" "${REPOSITORY_SSH_USER}"@"${REPOSITORY_SSH_HOSTNAME}":"${REPOSITORY_DESTINATION}/raspi-image_${VERSION}_${ARCHITECTURE}.cfg"