Files
OpenSSH-Moduli-Generator/.gitea/workflows/release.yml
T
Cantibra 0c92d48b74
OpenSSH Moduli Generator / OpenSSH Moduli Generator (amd64, cicd.any, bookworm trixie noble, main) (push) Successful in 10s
OpenSSH Moduli Generator / OpenSSH Moduli Generator (arm64, cicd.any, bookworm trixie noble, main) (push) Successful in 9s
Initialize Git Repository: 'OpenSSH-Moduli-Generator'
2026-05-12 06:30:05 +02:00

58 lines
3.5 KiB
YAML

name: OpenSSH Moduli Generator
on:
push:
branches:
- release
jobs:
workflow:
name: OpenSSH Moduli Generator
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 (Workspace) [Checkout]
uses: actions/checkout@v6
- name: Environment [Source]
id: environment
run: |
source './.env'
/usr/bin/echo "VERSION=${VERSION}" >> "${GITHUB_OUTPUT}"
/usr/bin/echo "Set Variable 'VERSION' to '${VERSION}'"
- name: OpenSSH Moduli Generator [Prepare Debian Package]
run: |
/usr/bin/sed --in-place --expression='s/Architecture:.*/Architecture: ${{ matrix.architecture }}/' './openssh-moduli/DEBIAN/control'
/usr/bin/sed --in-place --expression='s/Version:.*/Version: ${{ steps.environment.outputs.version }}/' './openssh-moduli/DEBIAN/control'
/usr/bin/chmod --verbose '0755' './openssh-moduli/usr/sbin/sshd-moduli'
- name: Debian Package [Generate]
run: |
/usr/bin/dpkg-gen './openssh-moduli'
/usr/bin/mv --verbose './openssh-moduli.deb' './openssh-moduli_${{ steps.environment.outputs.version }}_${{ matrix.architecture }}.deb'
- name: Release Debian Package [Configuration]
run: |
/usr/bin/echo '${{ secrets.REPOSITORY_SSH_PRIVATE_KEY }}' > './id_ed25519'
/usr/bin/chmod --quiet '0400' './id_ed25519'
/usr/bin/echo "REPOSITORY_CODENAME='${{ matrix.codename }}'" > './openssh-moduli_${{ steps.environment.outputs.version }}_${{ matrix.architecture }}.cfg'
/usr/bin/echo "Set Configuration 'REPOSITORY_CODENAME' to '${{ matrix.codename }}'"
/usr/bin/echo "REPOSITORY_COMPONENT='${{ matrix.component }}'" >> './openssh-moduli_${{ steps.environment.outputs.version }}_${{ matrix.architecture }}.cfg'
/usr/bin/echo "Set Configuration 'REPOSITORY_COMPONENT' to '${{ matrix.component }}'"
- name: Release Debian Package [PrivLab Repository]
uses: https://gitea.com/actions/gitea-release-action@v1
with:
name: OpenSSH Moduli Generator v${{ steps.environment.outputs.version }}
tag_name: v${{ steps.environment.outputs.version }}
files: |
openssh-moduli_${{ steps.environment.outputs.version }}_${{ matrix.architecture }}.deb
- name: Release Debian Package [Advanced Package Tool Repository]
run: |
/usr/bin/scp -4 -B -C -i './id_ed25519' -o 'LogLevel QUIET' -o 'StrictHostKeyChecking no' -o "UserKnownHostsFile '/dev/null'" './openssh-moduli_${{ steps.environment.outputs.version }}_${{ matrix.architecture }}.deb' '${{ secrets.REPOSITORY_SSH_USER }}'@'${{ secrets.REPOSITORY_SSH_HOSTNAME }}':'${{ secrets.REPOSITORY_DESTINATION }}/openssh-moduli_${{ steps.environment.outputs.version }}_${{ matrix.architecture }}.deb'
/usr/bin/scp -4 -B -C -i './id_ed25519' -o 'LogLevel QUIET' -o 'StrictHostKeyChecking no' -o "UserKnownHostsFile '/dev/null'" './openssh-moduli_${{ steps.environment.outputs.version }}_${{ matrix.architecture }}.cfg' '${{ secrets.REPOSITORY_SSH_USER }}'@'${{ secrets.REPOSITORY_SSH_HOSTNAME }}':'${{ secrets.REPOSITORY_DESTINATION }}/openssh-moduli_${{ steps.environment.outputs.version }}_${{ matrix.architecture }}.cfg'