From 7c72b343701a344507efceea7b406bc0934dd17e Mon Sep 17 00:00:00 2001 From: xengi Date: Thu, 13 Aug 2026 21:48:21 +0200 Subject: [PATCH] Update .forgejo/workflows/packages.yaml Signed-off-by: xengi --- .forgejo/workflows/packages.yaml | 160 ++++++++++++++++++------------- 1 file changed, 96 insertions(+), 64 deletions(-) diff --git a/.forgejo/workflows/packages.yaml b/.forgejo/workflows/packages.yaml index 60459e9..e4f6ae3 100644 --- a/.forgejo/workflows/packages.yaml +++ b/.forgejo/workflows/packages.yaml @@ -37,7 +37,103 @@ jobs: aur-ssh-private-key: ${{ secrets.AUR_SSH_PRIVATE_KEY }} pushover-api-token: ${{ secrets.PUSHOVER_API_TOKEN }} pushover-user-key: ${{ secrets.PUSHOVER_USER_KEY }} + + cephadm: + runs-on: debian-stable + env: + PACKAGE_NAME: cephadm + container: + image: git.sb20.xengi.de/xengi/archlinux-aur:latest + credentials: + username: xengi + password: ${{ secrets.REGISTRY_TOKEN }} + steps: + - name: Checkout repository + run: git clone "https://x-access-token:${FORGEJO_TOKEN}@${FORGEJO_SERVER_URL#https://}/${FORGEJO_REPOSITORY}.git" "$FORGEJO_WORKSPACE" + - name: Install dependencies + run: yay -Sy --needed --noconfirm --noprogressbar curl jq + - name: Get versions + id: versions + shell: bash + run: | + upstream=$( + curl -fsSL https://docs.ceph.com/en/latest/releases/ | + grep -oE 'latest [0-9]+\.[0-9]+\.[0-9]+' | + head -n1 | + cut -d' ' -f2 + ) + test -n "$upstream" + echo "upstream=$upstream" >> "$FORGEJO_OUTPUT" + echo aur=$(curl -fsSL 'https://aur.archlinux.org/rpc/?v=5&type=info&arg[]=${{ env.PACKAGE_NAME }}' | jq -er '.results[0].Version | split("-")[0]') >> "$FORGEJO_OUTPUT" + - uses: ./.forgejo/actions/update-aur-package + with: + package-name: ${{ env.PACKAGE_NAME }} + upstream-version: ${{ steps.versions.outputs.upstream }} + aur-version: ${{ steps.versions.outputs.aur }} + test-command: sudo cephadm --help + commit-message: bumped to version ${{ steps.versions.outputs.upstream }} + notify-message: ${{ env.PACKAGE_NAME }} updated from ${{ steps.versions.outputs.aur }} to ${{ steps.versions.outputs.upstream }} + aur-ssh-private-key: ${{ secrets.AUR_SSH_PRIVATE_KEY }} + pushover-api-token: ${{ secrets.PUSHOVER_API_TOKEN }} + pushover-user-key: ${{ secrets.PUSHOVER_USER_KEY }} + cephadm-git: + runs-on: debian-stable + env: + PACKAGE_NAME: cephadm-git + container: + image: git.sb20.xengi.de/xengi/archlinux-aur:latest + credentials: + username: xengi + password: ${{ secrets.REGISTRY_TOKEN }} + steps: + - name: Checkout repository + run: git clone "https://x-access-token:${FORGEJO_TOKEN}@${FORGEJO_SERVER_URL#https://}/${FORGEJO_REPOSITORY}.git" "$FORGEJO_WORKSPACE" + - uses: ./.forgejo/actions/update-aur-package + with: + package-name: ${{ env.PACKAGE_NAME }} + upstream-version: '0' + aur-version: '0' + update-pkgrel: 'false' + git-package: 'true' + test-command: sudo cephadm --help + commit-message: bumped git commit + notify-message: ${{ env.PACKAGE_NAME }} updated git commit + aur-ssh-private-key: ${{ secrets.AUR_SSH_PRIVATE_KEY }} + pushover-api-token: ${{ secrets.PUSHOVER_API_TOKEN }} + pushover-user-key: ${{ secrets.PUSHOVER_USER_KEY }} + + gerbolyze: + runs-on: debian-stable + env: + PACKAGE_NAME: gerbolyze + container: + image: git.sb20.xengi.de/xengi/archlinux-aur:latest + credentials: + username: xengi + password: ${{ secrets.REGISTRY_TOKEN }} + steps: + - name: Checkout repository + run: git clone "https://x-access-token:${FORGEJO_TOKEN}@${FORGEJO_SERVER_URL#https://}/${FORGEJO_REPOSITORY}.git" "$FORGEJO_WORKSPACE" + - name: Install dependencies + run: yay -Sy --needed --noconfirm --noprogressbar curl jq + - name: Get versions + id: versions + run: | + echo upstream=$(curl -fsSL "https://pypi.org/pypi/${{ env.PACKAGE_NAME }}/json" | jq -er '.info.version') >> "$FORGEJO_OUTPUT" + echo aur=$(curl -fsSL 'https://aur.archlinux.org/rpc/?v=5&type=info&arg[]=${{ env.PACKAGE_NAME }}' | jq -er '.results[0].Version | split("-")[0]') >> "$FORGEJO_OUTPUT" + - uses: ./.forgejo/actions/update-aur-package + with: + package-name: ${{ env.PACKAGE_NAME }} + upstream-version: ${{ steps.versions.outputs.upstream }} + aur-version: ${{ steps.versions.outputs.aur }} + test-command: gerbolyze --help + commit-message: bumped to version ${{ steps.versions.outputs.upstream }} + notify-message: ${{ env.PACKAGE_NAME }} updated from ${{ steps.versions.outputs.aur }} to ${{ steps.versions.outputs.upstream }} + aur-ssh-private-key: ${{ secrets.AUR_SSH_PRIVATE_KEY }} + pushover-api-token: ${{ secrets.PUSHOVER_API_TOKEN }} + pushover-user-key: ${{ secrets.PUSHOVER_USER_KEY }} + go-aws-sso: runs-on: debian-stable env: @@ -134,71 +230,7 @@ jobs: pushover-api-token: ${{ secrets.PUSHOVER_API_TOKEN }} pushover-user-key: ${{ secrets.PUSHOVER_USER_KEY }} - cephadm: - runs-on: debian-stable - env: - PACKAGE_NAME: cephadm - container: - image: git.sb20.xengi.de/xengi/archlinux-aur:latest - credentials: - username: xengi - password: ${{ secrets.REGISTRY_TOKEN }} - steps: - - name: Checkout repository - run: git clone "https://x-access-token:${FORGEJO_TOKEN}@${FORGEJO_SERVER_URL#https://}/${FORGEJO_REPOSITORY}.git" "$FORGEJO_WORKSPACE" - - name: Install dependencies - run: yay -Sy --needed --noconfirm --noprogressbar curl jq - - name: Get versions - id: versions - shell: bash - run: | - upstream=$( - curl -fsSL https://docs.ceph.com/en/latest/releases/ | - grep -oE 'latest [0-9]+\.[0-9]+\.[0-9]+' | - head -n1 | - cut -d' ' -f2 - ) - test -n "$upstream" - echo "upstream=$upstream" >> "$FORGEJO_OUTPUT" - echo aur=$(curl -fsSL 'https://aur.archlinux.org/rpc/?v=5&type=info&arg[]=${{ env.PACKAGE_NAME }}' | jq -er '.results[0].Version | split("-")[0]') >> "$FORGEJO_OUTPUT" - - uses: ./.forgejo/actions/update-aur-package - with: - package-name: ${{ env.PACKAGE_NAME }} - upstream-version: ${{ steps.versions.outputs.upstream }} - aur-version: ${{ steps.versions.outputs.aur }} - test-command: sudo cephadm --help - commit-message: bumped to version ${{ steps.versions.outputs.upstream }} - notify-message: ${{ env.PACKAGE_NAME }} updated from ${{ steps.versions.outputs.aur }} to ${{ steps.versions.outputs.upstream }} - aur-ssh-private-key: ${{ secrets.AUR_SSH_PRIVATE_KEY }} - pushover-api-token: ${{ secrets.PUSHOVER_API_TOKEN }} - pushover-user-key: ${{ secrets.PUSHOVER_USER_KEY }} - - cephadm-git: - runs-on: debian-stable - env: - PACKAGE_NAME: cephadm-git - container: - image: git.sb20.xengi.de/xengi/archlinux-aur:latest - credentials: - username: xengi - password: ${{ secrets.REGISTRY_TOKEN }} - steps: - - name: Checkout repository - run: git clone "https://x-access-token:${FORGEJO_TOKEN}@${FORGEJO_SERVER_URL#https://}/${FORGEJO_REPOSITORY}.git" "$FORGEJO_WORKSPACE" - - uses: ./.forgejo/actions/update-aur-package - with: - package-name: ${{ env.PACKAGE_NAME }} - upstream-version: '0' - aur-version: '0' - update-pkgrel: 'false' - git-package: 'true' - test-command: sudo cephadm --help - commit-message: bumped git commit - notify-message: ${{ env.PACKAGE_NAME }} updated git commit - aur-ssh-private-key: ${{ secrets.AUR_SSH_PRIVATE_KEY }} - pushover-api-token: ${{ secrets.PUSHOVER_API_TOKEN }} - pushover-user-key: ${{ secrets.PUSHOVER_USER_KEY }} virtualfish: runs-on: debian-stable