Initialize Git Repository: 'Node.js-Archive-Keyring'
Node.js Archive Keyring / Node.js Archive Keyring (amd64, cicd.any, bookworm noble trixie, main, 24) (push) Successful in 11s
Node.js Archive Keyring / Node.js Archive Keyring (arm64, cicd.any, bookworm noble trixie, main, 24) (push) Successful in 10s

This commit is contained in:
Cantibra
2026-05-04 21:21:51 +02:00
commit b76584201c
11 changed files with 398 additions and 0 deletions
+84
View File
@@ -0,0 +1,84 @@
name: Node.js Archive Keyring
on:
push:
branches:
- release
jobs:
workflow:
name: Node.js Archive Keyring
strategy:
matrix:
architecture:
- amd64
- arm64
node:
- 24
codename:
- bookworm noble trixie
component:
- main
cicd:
- cicd.any
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: Debian Package [Prepare]
env:
ARCHITECTURE: ${{ matrix.architecture }}
NODE: ${{ matrix.node }}
VERSION: ${{ steps.environment.outputs.version }}
run: |
/usr/bin/mv --verbose './nodejs-archive-keyring' "nodejs-${NODE}-archive-keyring"
/usr/bin/sed --in-place --expression="s/Architecture:.*/Architecture: ${ARCHITECTURE}/" "nodejs-${NODE}-archive-keyring/DEBIAN/control"
/usr/bin/sed --in-place --expression="s/CICD_NODE/${NODE}/g" "nodejs-${NODE}-archive-keyring/DEBIAN/control"
/usr/bin/sed --in-place --expression="s/Version:.*/Version: ${VERSION}/" "nodejs-${NODE}-archive-keyring/DEBIAN/control"
/usr/bin/sed --in-place --expression="s/CICD_ARCHITECTURE/${ARCHITECTURE}/" "nodejs-${NODE}-archive-keyring/etc/apt/sources.list.d/nodejs.sources"
/usr/bin/sed --in-place --expression="s/CICD_NODE/node_${NODE}.x/" "nodejs-${NODE}-archive-keyring/etc/apt/sources.list.d/nodejs.sources"
- name: Debian Package [Build]
env:
ARCHITECTURE: ${{ matrix.architecture }}
NODE: ${{ matrix.node }}
VERSION: ${{ steps.environment.outputs.version }}
run: |
/usr/bin/dpkg-gen "./nodejs-${NODE}-archive-keyring"
/usr/bin/mv --verbose "./nodejs-${NODE}-archive-keyring.deb" "./nodejs-${NODE}-archive-keyring_${VERSION}_${ARCHITECTURE}.deb"
- name: Debian Repository [Prepare]
env:
ARCHITECTURE: ${{ matrix.architecture }}
CODENAME: ${{ matrix.codename }}
COMPONENT: ${{ matrix.component }}
NODE: ${{ matrix.node }}
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}'" > "./nodejs-${NODE}-archive-keyring_${VERSION}_${ARCHITECTURE}.cfg"
/usr/bin/echo "Set Configuration 'REPOSITORY_CODENAME' to '${CODENAME}'"
/usr/bin/echo "REPOSITORY_COMPONENT='${COMPONENT}'" >> "./nodejs-${NODE}-archive-keyring_${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: Node.js v18 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: Debian Package [Debian Repository Publish]
env:
ARCHITECTURE: ${{ matrix.architecture }}
NODE: ${{ matrix.node }}
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'" "./nodejs-${NODE}-archive-keyring_${VERSION}_${ARCHITECTURE}.deb" "${REPOSITORY_SSH_USER}"@"${REPOSITORY_SSH_HOSTNAME}":"${REPOSITORY_DESTINATION}/nodejs-${NODE}-archive-keyring_${VERSION}_${ARCHITECTURE}.deb"
/usr/bin/scp -4 -B -C -i './id_ed25519' -o 'LogLevel QUIET' -o 'StrictHostKeyChecking no' -o "UserKnownHostsFile '/dev/null'" "./nodejs-${NODE}-archive-keyring_${VERSION}_${ARCHITECTURE}.cfg" "${REPOSITORY_SSH_USER}"@"${REPOSITORY_SSH_HOSTNAME}":"${REPOSITORY_DESTINATION}/nodejs-${NODE}-archive-keyring_${VERSION}_${ARCHITECTURE}.cfg"