Files
Node.js-Archive-Keyring/.gitea/workflows/release.yml
T
Cantibra c6a29037a2
Node.js Archive Keyring / Node.js Archive Keyring (amd64, cicd.any, bookworm noble trixie, main, 22) (push) Successful in 9s
Node.js Archive Keyring / Node.js Archive Keyring (amd64, cicd.any, bookworm noble trixie, main, 24) (push) Successful in 10s
Node.js Archive Keyring / Node.js Archive Keyring (amd64, cicd.any, bookworm noble trixie, main, 26) (push) Successful in 9s
Node.js Archive Keyring / Node.js Archive Keyring (arm64, cicd.any, bookworm noble trixie, main, 22) (push) Successful in 10s
Node.js Archive Keyring / Node.js Archive Keyring (arm64, cicd.any, bookworm noble trixie, main, 24) (push) Successful in 9s
Node.js Archive Keyring / Node.js Archive Keyring (arm64, cicd.any, bookworm noble trixie, main, 26) (push) Successful in 9s
1
2026-06-10 00:19:38 +02:00

65 lines
4.3 KiB
YAML

name: Node.js Archive Keyring
on:
push:
branches:
- release
jobs:
workflow:
name: Node.js Archive Keyring
strategy:
matrix:
architecture:
- amd64
- arm64
node:
- 22
- 24
- 26
codename:
- bookworm noble trixie
component:
- main
cicd:
- cicd.any
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: Node.js Archive Keyring [Prepare Debian Package]
run: |
/usr/bin/mv --verbose './nodejs-archive-keyring' 'nodejs-${{ matrix.node }}-archive-keyring'
/usr/bin/sed --in-place --expression='s/Architecture:.*/Architecture: ${{ matrix.architecture }}/' 'nodejs-${{ matrix.node }}-archive-keyring/DEBIAN/control'
/usr/bin/sed --in-place --expression='s/CICD_NODE/${{ matrix.node }}/g' 'nodejs-${{ matrix.node }}-archive-keyring/DEBIAN/control'
/usr/bin/sed --in-place --expression='s/Version:.*/Version: ${{ steps.environment.outputs.version }}/' 'nodejs-${{ matrix.node }}-archive-keyring/DEBIAN/control'
/usr/bin/sed --in-place --expression='s/CICD_ARCHITECTURE/${{ matrix.architecture }}/' 'nodejs-${{ matrix.node }}-archive-keyring/etc/apt/sources.list.d/nodejs.sources'
/usr/bin/sed --in-place --expression='s/CICD_NODE/node_${{ matrix.node }}.x/' 'nodejs-${{ matrix.node }}-archive-keyring/etc/apt/sources.list.d/nodejs.sources'
- name: Debian Package [Generate]
run: |
/usr/bin/dpkg-gen './nodejs-${{ matrix.node }}-archive-keyring'
/usr/bin/mv --verbose './nodejs-${{ matrix.node }}-archive-keyring.deb' './nodejs-${{ matrix.node }}-archive-keyring_${{ 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 }}'" > './nodejs-${{ matrix.node }}-archive-keyring_${{ steps.environment.outputs.version }}_${{ matrix.architecture }}.cfg'
/usr/bin/echo "Set Configuration 'REPOSITORY_CODENAME' to '${{ matrix.codename }}'"
/usr/bin/echo "REPOSITORY_COMPONENT='${{ matrix.component }}'" >> './nodejs-${{ matrix.node }}-archive-keyring_${{ 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: Node.js ${{ matrix.node }} Archive Keyring v${{ steps.environment.outputs.version }}
tag_name: v${{ steps.environment.outputs.version }}
files: |
nodejs-${{ matrix.node }}-archive-keyring_${{ 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'" './nodejs-${{ matrix.node }}-archive-keyring_${{ steps.environment.outputs.version }}_${{ matrix.architecture }}.deb' '${{ secrets.REPOSITORY_SSH_USER }}'@'${{ secrets.REPOSITORY_SSH_HOSTNAME }}':'${{ secrets.REPOSITORY_DESTINATION }}/nodejs-${{ matrix.node }}-archive-keyring_${{ 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'" './nodejs-${{ matrix.node }}-archive-keyring_${{ steps.environment.outputs.version }}_${{ matrix.architecture }}.cfg' '${{ secrets.REPOSITORY_SSH_USER }}'@'${{ secrets.REPOSITORY_SSH_HOSTNAME }}':'${{ secrets.REPOSITORY_DESTINATION }}/nodejs-${{ matrix.node }}-archive-keyring_${{ steps.environment.outputs.version }}_${{ matrix.architecture }}.cfg'