fix workflow for me

This commit is contained in:
Alex Janka 2024-06-15 12:11:46 +10:00
parent 7bb821c4f6
commit 2c58436bbf

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:
@ -79,37 +79,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
@ -124,7 +94,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
@ -140,7 +110,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
@ -158,7 +128,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
@ -173,8 +143,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
@ -193,24 +163,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