complex partial revert #36 #33 #32

this should be the last complex revert PR
setting up a user friendly migration path for the repo component switch
ended up being a lot more complicated than I initially expected

there will be one more cleanup PR after this
This commit is contained in:
crystal 2024-04-28 12:33:23 -06:00
parent 2907295f72
commit 43eaa353a8
No known key found for this signature in database
GPG key ID: 1122054731F7CC43
7 changed files with 17 additions and 19 deletions

View file

@ -207,16 +207,28 @@ jobs:
- uses: crystal/install-jq-action@v2.1.0 - uses: crystal/install-jq-action@v2.1.0
- name: "Debian package registry publish: forgejo-deb-repo-lts" - name: "Debian package registry publish: forgejo-deb-repo stub"
env: env:
FORGEJO_SITE: https://code.forgejo.org FORGEJO_SITE: https://code.forgejo.org
FORGEJO_OWNER: forgejo-contrib FORGEJO_OWNER: forgejo-contrib
DEBIAN_DIST: bullseye DEBIAN_DIST: bullseye
DEBIAN_COMPONENT: forgejo DEBIAN_COMPONENT: forgejo-lts
FORGEJO_KEY: ${{ secrets.cfo_api_key }} FORGEJO_KEY: ${{ secrets.cfo_api_key }}
run: | run: |
cd repo-deb cd repo-deb
../.ci-forgejo-apt.sh forgejo-deb-repo-lts_2-4_all.deb ../.ci-forgejo-apt.sh forgejo-deb-repo_0-0_all.deb
cd ..
- name: "Debian package registry publish: forgejo-deb-repo"
env:
FORGEJO_SITE: https://code.forgejo.org
FORGEJO_OWNER: forgejo-contrib
DEBIAN_DIST: bullseye
DEBIAN_COMPONENT: forgejo-lts
FORGEJO_KEY: ${{ secrets.cfo_api_key }}
run: |
cd repo-deb
../.ci-forgejo-apt.sh forgejo-deb-repo_2-4_all.deb
cd .. cd ..
publish-release-repo: publish-release-repo:

View file

@ -2,9 +2,8 @@
cp code-forgejo-org-forgejo-contrib.asc stub/ cp code-forgejo-org-forgejo-contrib.asc stub/
cp code-forgejo-org-forgejo-contrib.asc main/ cp code-forgejo-org-forgejo-contrib.asc main/
cp forgejo-deb.list_stub stub/forgejo-deb.list cp forgejo-deb.list stub/
cp forgejo-deb.list main/ cp forgejo-deb.list main/
cp forgejo-deb.list main/forgejo-deb-lts.list
if [ "$1" = "actions" ] ; then if [ "$1" = "actions" ] ; then
PACKAGE_BUILD_EXTRA_ARGS="--no-sign" PACKAGE_BUILD_EXTRA_ARGS="--no-sign"
fi fi

View file

@ -1 +0,0 @@
deb https://code.forgejo.org/api/packages/forgejo-contrib/debian bullseye forgejo forgejo-lts

View file

@ -18,9 +18,3 @@ Priority: optional
Replaces: forgejo-deb-repo Replaces: forgejo-deb-repo
Description: APT Repository signing key for forgejo-deb Description: APT Repository signing key for forgejo-deb
Debian Package Registry key for https://code.forgejo.org/forgejo-contrib Debian Package Registry key for https://code.forgejo.org/forgejo-contrib
Package: forgejo-deb-repo-lts
Architecture: all
Priority: optional
Description: Switch to Forgejo LTS release channel
Transitional package to switch forgejo-deb-repo to LTS component

View file

@ -1 +0,0 @@
forgejo-deb-lts.list /etc/apt/sources.list.d

View file

@ -1,5 +0,0 @@
#!/usr/bin/env bash
RM_FILE="/etc/apt/sources.list.d/forgejo-deb-lts.list"
if [ -f "$RM_FILE" ]; then
rm "$RM_FILE"
fi

View file

@ -2,4 +2,4 @@ forgejo-deb-repo (0-0) unstable; urgency=medium
* forgejo-deb APT repository stub * forgejo-deb APT repository stub
-- crystal <crystal@noreply.codeberg.org> Sun, 28 Jul 2024 15:26:00 +0000 -- crystal <crystal@noreply.codeberg.org> Sun, 28 Jul 2024 18:25:00 +0000