Initialize Git Repository: 'Gitea-Action-Runner'
Gitea Action Runner / Gitea Action Runner (amd64, cicd.any, bookworm trixie noble, main) (push) Successful in 29s
Gitea Action Runner / Gitea Action Runner (arm64, cicd.any, bookworm trixie noble, main) (push) Successful in 28s

This commit is contained in:
Cantibra
2026-05-04 21:21:49 +02:00
commit 0b86f7fcbe
15 changed files with 684 additions and 0 deletions
+91
View File
@@ -0,0 +1,91 @@
name: Gitea Action Runner
on:
push:
branches:
- release
jobs:
workflow:
name: Gitea Action Runner
strategy:
matrix:
include:
- architecture: amd64
cicd: cicd.any
codename: bookworm trixie noble
component: main
- architecture: arm64
cicd: cicd.any
codename: bookworm 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: Gitea Action Runner [Download]
env:
ARCHITECTURE: ${{ matrix.architecture }}
VERSION: ${{ steps.environment.outputs.version }}
run: |
/usr/bin/install --directory --verbose './sources'
/usr/bin/wget --verbose --output-document='./sources/act_runner' "https://dl.gitea.com/act_runner/${VERSION}/act_runner-${VERSION}-linux-${ARCHITECTURE}"
- name: Debian Package [Prepare]
env:
ARCHITECTURE: ${{ matrix.architecture }}
VERSION: ${{ steps.environment.outputs.version }}
run: |
/usr/bin/sed --in-place --expression="s/Architecture:.*/Architecture: ${ARCHITECTURE}/" './act-runner/DEBIAN/control'
/usr/bin/sed --in-place --expression="s/Version:.*/Version: ${VERSION}/" './act-runner/DEBIAN/control'
/usr/bin/chmod --verbose '0755' './act-runner/DEBIAN/postinst'
/usr/bin/chmod --verbose '0755' './act-runner/DEBIAN/postrm'
/usr/bin/chmod --verbose '0755' './act-runner/DEBIAN/preinst'
/usr/bin/chmod --verbose '0755' './act-runner/DEBIAN/prerm'
/usr/bin/chmod --verbose '0755' './act-runner/etc/init.d/act_runner'
/usr/bin/install --directory --verbose './act-runner/usr/sbin'
/usr/bin/mv --verbose './sources/act_runner' './act-runner/usr/sbin/act_runner'
/usr/bin/chmod --verbose '0755' './act-runner/usr/sbin/act_runner'
/usr/bin/install --directory --mode='750' --verbose './act-runner/var/cache/act_runner'
/usr/bin/install --directory --mode='750' --verbose './act-runner/var/lib/act_runner'
- name: Debian Package [Build]
env:
ARCHITECTURE: ${{ matrix.architecture }}
VERSION: ${{ steps.environment.outputs.version }}
run: |
/usr/bin/dpkg-gen './act-runner'
/usr/bin/mv --verbose './act-runner.deb' "./act-runner_${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}'" > "./act-runner_${VERSION}_${ARCHITECTURE}.cfg"
/usr/bin/echo "Set Configuration 'REPOSITORY_CODENAME' to '${CODENAME}'"
/usr/bin/echo "REPOSITORY_COMPONENT='${COMPONENT}'" >> "./act-runner_${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: Gitea Action Runner v${{ steps.environment.outputs.version }}
tag_name: v${{ steps.environment.outputs.version }}
files: |
act-runner_${{ 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'" "./act-runner_${VERSION}_${ARCHITECTURE}.deb" "${REPOSITORY_SSH_USER}"@"${REPOSITORY_SSH_HOSTNAME}":"${REPOSITORY_DESTINATION}/act-runner_${VERSION}_${ARCHITECTURE}.deb"
/usr/bin/scp -4 -B -C -i './id_ed25519' -o 'LogLevel QUIET' -o 'StrictHostKeyChecking no' -o "UserKnownHostsFile '/dev/null'" "./act-runner_${VERSION}_${ARCHITECTURE}.cfg" "${REPOSITORY_SSH_USER}"@"${REPOSITORY_SSH_HOSTNAME}":"${REPOSITORY_DESTINATION}/act-runner_${VERSION}_${ARCHITECTURE}.cfg"