fix workflow for me
Some checks are pending
/ build-forgejo-deb (push) Waiting to run
/ installtest-bookworm-sqlite (push) Waiting to run
/ installtest-bookworm-user (push) Waiting to run
/ testsuite-repo-upgrade-sqlite (push) Waiting to run
/ installtest-buster-bin (push) Waiting to run
/ publish-release-repo (push) Waiting to run

This commit is contained in:
Alex Janka 2024-06-15 12:11:46 +10:00
parent 1f46e59334
commit c9e6827093

View file

@ -1,7 +1,7 @@
on: [push, pull_request] on: [push, pull_request]
jobs: jobs:
build-forgejo-deb: build-forgejo-deb:
runs-on: bullseye runs-on: docker://bookworm
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
@ -81,37 +81,7 @@ jobs:
repo-deb/*.deb repo-deb/*.deb
installtest-bookworm-sqlite: installtest-bookworm-sqlite:
runs-on: bookworm runs-on: docker://bookworm
steps:
- uses: actions/checkout@v4
- name: "actions prep: installtest"
id: ciprep
run: ./.ci-make.sh actions-prep installtest
- uses: actions/download-artifact@v3
with:
name: forgejo-deb-${{ steps.ciprep.outputs.artifactlabel }}
- run: ./.ci-make.sh install-run-test ./forgejo-sqlite_*_arm64.deb
installtest-bullseye-sqlite:
runs-on: bullseye
steps:
- uses: actions/checkout@v4
- name: "actions prep: installtest"
id: ciprep
run: ./.ci-make.sh actions-prep installtest
- uses: actions/download-artifact@v3
with:
name: forgejo-deb-${{ steps.ciprep.outputs.artifactlabel }}
- run: ./.ci-make.sh install-run-test ./forgejo-sqlite_*_arm64.deb
installtest-buster-sqlite:
runs-on: buster
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@ -126,7 +96,7 @@ jobs:
- run: ./.ci-make.sh install-run-test ./forgejo-sqlite_*_arm64.deb - run: ./.ci-make.sh install-run-test ./forgejo-sqlite_*_arm64.deb
installtest-bookworm-user: installtest-bookworm-user:
runs-on: bookworm runs-on: docker://bookworm
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@ -142,7 +112,7 @@ jobs:
- run: ./.ci-make.sh install-run-test ./forgejo_*_arm64.deb - run: ./.ci-make.sh install-run-test ./forgejo_*_arm64.deb
testsuite-repo-upgrade-sqlite: testsuite-repo-upgrade-sqlite:
runs-on: bookworm runs-on: docker://bookworm
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@ -160,7 +130,7 @@ jobs:
- run: ./.ci-make.sh verify-data-dir-chmod - run: ./.ci-make.sh verify-data-dir-chmod
installtest-buster-bin: installtest-buster-bin:
runs-on: buster runs-on: docker://buster
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@ -175,8 +145,8 @@ jobs:
- run: ./.ci-make.sh install-run-test ./forgejo-bin_*_arm64.deb - run: ./.ci-make.sh install-run-test ./forgejo-bin_*_arm64.deb
publish-release-repo: publish-release-repo:
runs-on: bookworm runs-on: docker://bookworm
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') && github.repository == 'forgejo-contrib/forgejo-deb' if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@ -195,24 +165,17 @@ jobs:
- uses: actions/forgejo-release@v1 - uses: actions/forgejo-release@v1
with: with:
direction: upload direction: upload
url: https://codeberg.org url: https://git.alexjanka.com
token: ${{ secrets.codeberg_api_key }} token: ${{ secrets.PACKAGING_TOKEN }}
release-dir: forgejo-release
- uses: actions/forgejo-release@v1
with:
direction: upload
url: https://code.forgejo.org
token: ${{ secrets.cfo_api_key }}
release-dir: forgejo-release release-dir: forgejo-release
- name: Debian package registry publish - name: Debian package registry publish
env: env:
FORGEJO_SITE: https://code.forgejo.org FORGEJO_SITE: https://git.alexjanka.com
FORGEJO_OWNER: forgejo-contrib FORGEJO_OWNER: alex
DEBIAN_DIST: bullseye DEBIAN_DIST: testing
DEBIAN_COMPONENT: forgejo-lts DEBIAN_COMPONENT: forgejo
FORGEJO_KEY: ${{ secrets.cfo_api_key }} FORGEJO_KEY: ${{ secrets.PACKAGING_TOKEN }}
run: | run: |
cd forgejo-release cd forgejo-release
../.ci-forgejo-apt.sh *.deb ../.ci-forgejo-apt.sh *.deb