Update .forgejo/workflows/packages.yaml
Signed-off-by: xengi <forgejo@xengi.de>
This commit is contained in:
parent
b6aa400da3
commit
7c72b34370
1 changed files with 71 additions and 39 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue