Compare commits

...
Sign in to create a new pull request.

129 commits
1.19 ... main

Author SHA1 Message Date
6c25846bab Forgejo v10.0.3
All checks were successful
/ installtest-bookworm-sqlite (push) Successful in 1m18s
/ build-forgejo-deb (push) Successful in 9m56s
/ installtest-bullseye-sqlite (push) Successful in 49s
/ installtest-buster-sqlite (push) Successful in 1m28s
/ installtest-bookworm-user (push) Successful in 1m0s
/ testsuite-repo-upgrade-sqlite (push) Successful in 1m33s
/ installtest-buster-bin (push) Successful in 1m42s
/ publish-release-repo (push) Successful in 59s
2025-03-29 08:45:06 +01:00
b0182b9025 Forgejo v10.0.2
Some checks failed
/ installtest-bookworm-sqlite (push) Blocked by required conditions
/ installtest-bullseye-sqlite (push) Blocked by required conditions
/ installtest-buster-sqlite (push) Blocked by required conditions
/ installtest-bookworm-user (push) Blocked by required conditions
/ testsuite-repo-upgrade-sqlite (push) Blocked by required conditions
/ installtest-buster-bin (push) Blocked by required conditions
/ publish-release-repo (push) Blocked by required conditions
/ build-forgejo-deb (push) Has been cancelled
2025-03-29 08:42:12 +01:00
ce179fd76f Forgejo v10.0.1
All checks were successful
/ installtest-buster-bin (push) Successful in 3m8s
/ testsuite-repo-upgrade-sqlite (push) Successful in 3m37s
/ build-forgejo-deb (push) Successful in 23m14s
/ installtest-bookworm-sqlite (push) Successful in 1m51s
/ installtest-bullseye-sqlite (push) Successful in 2m30s
/ installtest-bookworm-user (push) Successful in 53s
/ installtest-buster-sqlite (push) Successful in 3m16s
/ publish-release-repo (push) Successful in 1m27s
2025-02-17 15:18:14 +01:00
c541fd518d Forgejo v10.0.0
All checks were successful
/ installtest-bookworm-sqlite (push) Successful in 1m17s
/ installtest-bullseye-sqlite (push) Successful in 1m6s
/ installtest-bookworm-user (push) Successful in 1m22s
/ installtest-buster-sqlite (push) Successful in 4m1s
/ testsuite-repo-upgrade-sqlite (push) Successful in 2m6s
/ installtest-buster-bin (push) Successful in 2m8s
/ build-forgejo-deb (push) Successful in 35m14s
/ publish-release-repo (push) Successful in 1m31s
2025-01-19 11:01:48 +01:00
ed28da0d2c Forgejo v9.0.3
All checks were successful
/ publish-release-repo (push) Successful in 1m23s
/ installtest-bookworm-sqlite (push) Successful in 2m39s
/ installtest-buster-bin (push) Successful in 2m41s
/ build-forgejo-deb (push) Successful in 21m16s
/ installtest-buster-sqlite (push) Successful in 3m0s
/ installtest-bookworm-user (push) Successful in 1m25s
/ testsuite-repo-upgrade-sqlite (push) Successful in 2m18s
/ installtest-bullseye-sqlite (push) Successful in 1m17s
2024-12-14 12:56:25 +01:00
fbdc464a9b update go version to 1.23
Some checks failed
/ testsuite-repo-upgrade-sqlite (push) Has been skipped
/ build-forgejo-deb (push) Failing after 2m11s
/ installtest-bookworm-sqlite (push) Has been skipped
/ installtest-bullseye-sqlite (push) Has been skipped
/ installtest-buster-sqlite (push) Has been skipped
/ installtest-bookworm-user (push) Has been skipped
/ installtest-buster-bin (push) Has been skipped
/ publish-release-repo (push) Has been skipped
2024-12-01 09:26:26 +01:00
4f28b03d5f
Forgejo v9.0.2
Some checks failed
/ testsuite-repo-upgrade-sqlite (push) Has been skipped
/ installtest-buster-bin (push) Has been skipped
/ publish-release-repo (push) Has been skipped
/ build-forgejo-deb (push) Failing after 8m1s
/ installtest-bookworm-sqlite (push) Has been skipped
/ installtest-bullseye-sqlite (push) Has been skipped
/ installtest-buster-sqlite (push) Has been skipped
/ installtest-bookworm-user (push) Has been skipped
2024-11-28 16:31:27 +01:00
246b511dbd Update .forgejo/workflows/forgejo-deb.yml
All checks were successful
/ installtest-bookworm-user (push) Successful in 45s
/ build-forgejo-deb (push) Successful in 8m47s
/ installtest-bullseye-sqlite (push) Successful in 1m13s
/ installtest-buster-sqlite (push) Successful in 1m23s
/ publish-release-repo (push) Successful in 40s
/ installtest-buster-bin (push) Successful in 1m25s
/ testsuite-repo-upgrade-sqlite (push) Successful in 2m24s
/ installtest-bookworm-sqlite (push) Successful in 30s
2024-10-08 19:39:30 +02:00
7464db27e3 Update .forgejo/workflows/forgejo-deb.yml
Some checks failed
/ installtest-bullseye-sqlite (push) Successful in 34s
/ installtest-bookworm-user (push) Successful in 29s
/ installtest-buster-sqlite (push) Successful in 1m38s
/ installtest-bookworm-sqlite (push) Successful in 2m9s
/ installtest-buster-bin (push) Successful in 59s
/ testsuite-repo-upgrade-sqlite (push) Successful in 2m20s
/ build-forgejo-deb (push) Successful in 30m27s
/ publish-release-repo (push) Failing after 53s
2024-10-08 18:56:54 +02:00
fd4a84f509 Update .forgejo/workflows/forgejo-deb.yml
Some checks failed
/ installtest-bookworm-sqlite (push) Successful in 31s
/ installtest-bullseye-sqlite (push) Successful in 35s
/ installtest-bookworm-user (push) Successful in 34s
/ installtest-buster-sqlite (push) Successful in 1m23s
/ build-forgejo-deb (push) Successful in 9m19s
/ testsuite-repo-upgrade-sqlite (push) Successful in 1m11s
/ installtest-buster-bin (push) Successful in 1m30s
/ publish-release-repo (push) Failing after 19s
2024-10-08 18:13:00 +02:00
9bbc6bd6d6 Update .forgejo/workflows/forgejo-deb.yml
All checks were successful
/ build-forgejo-deb (push) Successful in 8m39s
/ installtest-bookworm-sqlite (push) Successful in 32s
/ installtest-bullseye-sqlite (push) Successful in 32s
/ installtest-bookworm-user (push) Successful in 34s
/ testsuite-repo-upgrade-sqlite (push) Successful in 1m33s
/ installtest-buster-bin (push) Successful in 1m37s
/ installtest-buster-sqlite (push) Successful in 3m41s
/ publish-release-repo (push) Has been skipped
2024-10-08 17:57:41 +02:00
83e018f3dd Update .forgejo/workflows/forgejo-deb.yml
All checks were successful
/ installtest-buster-sqlite (push) Successful in 2m11s
/ installtest-bullseye-sqlite (push) Successful in 2m14s
/ testsuite-repo-upgrade-sqlite (push) Successful in 1m2s
/ installtest-buster-bin (push) Successful in 1m33s
/ installtest-bookworm-user (push) Successful in 33s
/ installtest-bookworm-sqlite (push) Successful in 46s
/ build-forgejo-deb (push) Successful in 8m31s
/ publish-release-repo (push) Has been skipped
2024-10-08 17:27:37 +02:00
eebd057bf6
testing repo hosting
Some checks failed
/ installtest-bookworm-user (push) Has been cancelled
/ testsuite-repo-upgrade-sqlite (push) Has been cancelled
/ installtest-buster-bin (push) Has been cancelled
/ installtest-bookworm-sqlite (push) Failing after 1m17s
/ installtest-bullseye-sqlite (push) Failing after 1m21s
/ publish-release-repo (push) Has been cancelled
/ installtest-buster-sqlite (push) Has been cancelled
/ build-forgejo-deb (push) Has been cancelled
2024-10-08 16:43:26 +02:00
8c50d64e5d Forgejo v8.0.3 2024-09-15 19:40:07 +02:00
0e0d010347
Forgejo v8.0.2 2024-09-01 19:18:13 +02:00
dff00b2c12
Forgejo v8.0.1 2024-08-27 09:58:27 +02:00
crystal
6b49ead003
Forgejo v7.0.7 2024-08-25 19:00:20 -06:00
crystal
b5914277d3
[squash] split common data
instead of building the packaged binaries with the `bindata` tag, this
introduces a new forgejo-common package which contains common assets and
architecture independent files.

This is the first of a handful of PRs that will ultimately enable
building packages for multiple architectures.
2024-07-07 11:23:16 -06:00
Moritz Kobel
7fcc7721f8
Forgejo v7.0.5 2024-07-05 22:04:46 +02:00
crystal
2cbc8603ba
Support downloading binaries for experimental releases
This is a minor enhancement that allows the forgejo-bin package to match
the others, specifically when building a pull request for an official
Forgejo version that hasn't yet been released.
2024-05-01 19:57:10 -06:00
crystal
f985489b70
better tag fetching
in addition to using the checkout action for all the fetches, this will
make sure we get a deep clone of the repository that can be used to
resolve tags for pull requests if the submodule is ahead of the latest
tag in the main origin
2024-05-01 17:58:21 -06:00
crystal
f532454612
change GITEA_ to FORGEJO_ in env vars 2024-04-29 01:52:58 -06:00
crystal
c7eb5ff175
fix forgejo-bin deps and conflicts 2024-04-29 00:07:28 -06:00
crystal
804f3bef24
[squash] POSIX logic for tag detection
This never actually got executed in tests but the old logic only works
in bash. Follow-up to #27
2024-04-28 23:32:13 -06:00
crystal
d0dfedd50f
cleanup #37 2024-04-28 13:03:48 -06:00
crystal
43eaa353a8
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
2024-04-28 12:33:23 -06:00
crystal
2907295f72
complex partial revert #33
reverts most of 5e142ef06c
0aedcd394d will need another complex revert
2024-04-28 11:58:09 -06:00
crystal
5e142ef06c
partial revert #32
partially revert 0aedcd394d
2024-04-28 10:57:52 -06:00
crystal
0aedcd394d
[temp] repo-deb lts transitional push 2024-04-28 10:12:48 -06:00
crystal
22a152e188
[squash] repo-deb lts channel 2024-04-28 10:11:58 -06:00
crystal
6b780077a1
allow for self-hosted tests 2024-04-28 08:18:23 -06:00
crystal
cee5e87ae3
Revert "[temp] publish repo deb"
This reverts commit 856693ebcf.
2024-04-28 08:11:19 -06:00
crystal
856693ebcf
[temp] publish repo deb 2024-04-28 07:27:34 -06:00
crystal
42f4030384
Add apt-listchanges dep 2024-04-28 07:13:58 -06:00
crystal
6adb447669
[squash] mirror to code.forgejo.org 2024-04-27 23:42:48 -06:00
crystal
1a8f2ec431
[squash] use actions for pr tests 2024-04-27 20:52:24 -06:00
crystal
08f545c366
[squash] Switch to Forgejo Actions 2024-04-27 18:55:53 -06:00
crystal
371709d631
upload to forgejo-lts dist 2024-04-27 09:50:24 -06:00
crystal
7da06d8be1
major upgrade 2024-04-27 09:42:15 -06:00
crystal
77f40ec819
Forgejo v7.0.1 2024-04-27 09:36:54 -06:00
crystal
49e6a28bbb
Forgejo v7.0.0 2024-04-23 11:21:26 -06:00
crystal
085ef9244d
Revert "add timetzdata to build tags"
This reverts commit 862c5f9e7e.
2024-04-19 10:40:44 -06:00
crystal
48226d1e61
Forgejo v1.21.11-1 2024-04-19 09:46:57 -06:00
crystal
862c5f9e7e
add timetzdata to build tags 2024-04-18 22:40:17 -06:00
crystal
744a931c2e
Forgejo v1.21.11-0 2024-04-18 17:37:09 -06:00
crystal
dc718d4f7a
upgrade go as user forgejo 2024-04-09 06:57:35 -06:00
crystal
391360b320
install go1.21.9 2024-04-09 05:49:38 -06:00
crystal
03fcb8fe81
Forgejo v1.21.10-0 2024-04-09 05:27:15 -06:00
crystal
de74368c1b
apt -y 2024-03-23 12:50:19 -06:00
crystal
8f030778e0
Forgejo v1.21.8-0 2024-03-23 12:15:03 -06:00
crystal
e4af7ff151
fix then 2024-03-23 11:27:13 -06:00
crystal
0ab3730c43
fix unshallow 2024-03-22 22:32:42 -06:00
crystal
4b9f5060fd
add git dep 2024-03-22 15:35:27 -06:00
crystal
3fbe6853d8
Forgejo v1.21.7-0 2024-03-06 16:13:43 -07:00
crystal
bcfb4b6f6c
manually mirror to Codeberg 2024-02-25 14:42:10 -07:00
crystal
e834e75dd8
Forgejo v1.21.6-0 2024-02-25 05:10:33 -07:00
crystal
4ec893fd1a
fix changelog link 2024-01-31 16:45:46 -07:00
crystal
5bc88b12a6
Forgejo v1.21.5-0 2024-01-31 15:28:59 -07:00
crystal
ef6bbde376
fix repokey deb description 2024-01-31 15:23:54 -07:00
crystal
f2fe1f65e0
Fix NEWS.Debian 2024-01-16 17:03:23 -07:00
crystal
8e9c937a63
replace kinetic with mantic 2024-01-16 16:41:27 -07:00
crystal
0c05604e0d
update changelog dates 2024-01-16 16:03:52 -07:00
crystal
04aaf9d50d
noninteractive 2024-01-16 15:43:36 -07:00
crystal
660d494741
install apt-utils and apt-listchanges 2024-01-16 15:24:20 -07:00
crystal
ecdcc2acf3
Added NEWS.Debian 2024-01-16 14:26:30 -07:00
crystal
fc4180cf6d
Forgejo v1.21.4-0 2024-01-16 14:12:16 -07:00
crystal
c3ee2cb55f
fix clone warning 2024-01-09 21:40:50 -07:00
crystal
7ae5482aba
remove goproxy_default secret 2024-01-09 20:20:14 -07:00
crystal
246cf1c36e
woodpecker 2.x 2024-01-09 20:10:26 -07:00
crystal
3e65e083a0
Use golang 1.21 for forgejo-test-deps 2024-01-09 18:27:35 -07:00
crystal
9d8dc1b1d8
Forgejo v1.21 prep 2024-01-09 18:00:21 -07:00
crystal
4cd33cdfa4
Revert "[temp] download hardcoded tag"
This reverts commit b2c5780397.
2024-01-09 17:16:45 -07:00
crystal
706a70b563
Update changelog 2024-01-09 17:02:32 -07:00
crystal
eb73ef0cbc
Revert "[temp] ignore ci failure"
This reverts commit 1f7484ab27.
2024-01-09 16:55:06 -07:00
crystal
b2c5780397
[temp] download hardcoded tag 2024-01-09 16:54:15 -07:00
crystal
687c078318
Forgejo v1.20.6-1~deb0
Use newer Forgejo sources to get CI to pass
2024-01-09 16:49:19 -07:00
crystal
3400b72d78
Forgejo v1.20.6-1 2024-01-08 21:06:33 -07:00
crystal
1f7484ab27
[temp] ignore ci failure 2024-01-08 21:03:13 -07:00
crystal
3c83d30574
Forgejo v1.20.6-0 2023-11-26 15:13:51 -07:00
crystal
0ce837938e
restore changelog 2023-11-26 15:07:39 -07:00
crystal
0f5de5d006
Merge 1.20 branch back into main
This reverts commit 2c33a053df.
2023-11-25 19:00:33 -07:00
crystal
ad237cc8c9
Release prep 2023-11-25 18:58:32 -07:00
crystal
c93919c98f
noninteractive 2023-11-25 18:56:25 -07:00
crystal
d86fd690e3
fix script typo 2023-11-25 18:36:45 -07:00
crystal
435f0d972f
ci order 2023-11-25 18:22:07 -07:00
crystal
41e31ba9ad
chown 2023-11-25 18:16:52 -07:00
crystal
186f2aaaa8
symlink go bin 2023-11-25 18:06:29 -07:00
crystal
a17e5f6ada
golang 1.20 2023-11-25 18:00:32 -07:00
crystal
4f91193878
install golang 2023-11-25 17:43:25 -07:00
crystal
19d5c959f4
remove forgejo test_env 2023-11-25 17:37:24 -07:00
crystal
7e75283801
Fix data directory chmod 2023-11-25 17:12:14 -07:00
crystal
e27c871038
Forgejo v1.20.5-1 2023-11-25 16:41:15 -07:00
crystal
65f9d490cd
Replace example app.ini with empty default 2023-11-25 16:33:49 -07:00
crystal
3a9c3e7056
Forgejo v1.20.5-0 2023-10-07 17:02:41 -06:00
crystal
2c33a053df
1.20 branch 2023-09-20 15:49:23 -06:00
crystal
666e850975
Forgejo v1.20.4-1 2023-09-20 14:03:16 -06:00
crystal
b566c0a546
add LICENSE 2023-09-10 13:44:26 -06:00
crystal
62fbe87a21
Revert "remove all groups"
This reverts commit 36ea51de5a.
2023-09-10 13:33:14 -06:00
crystal
c6ae8be83b
more ci optimizations 2023-09-09 13:55:59 -06:00
crystal
c9399d7358
should be faster 2023-09-09 13:27:52 -06:00
crystal
36ea51de5a
remove all groups 2023-09-09 06:02:26 -06:00
crystal
2faa3993e5
Forgejo v1.20.4-0 2023-09-09 05:00:54 -06:00
crystal
1783bd11ee
update changelog date 2023-08-22 09:27:52 -06:00
crystal
dfa1b2ca75
steps (woodpecker 1.0) 2023-08-22 08:52:55 -06:00
crystal
00b3f4c632
Forgejo v1.20.3-0 2023-08-21 09:53:59 -06:00
crystal
55377df38d
move repo to forgejo/forgejo 2023-07-30 11:21:38 -06:00
crystal
c6f6680bf4
Forgejo v1.20.2-0 2023-07-30 09:29:29 -06:00
crystal
c6ed112b2d
Update repo source in README
closes #4

Before this is merged, we must ensure that both the old and new
instructions will still ultimately end up with the same setup.
2023-07-25 11:19:32 -06:00
crystal
a5ed0cf9b7
upload releases to forgejo-contrib Debian package registry 2023-07-25 11:17:57 -06:00
crystal
50be46d1c0
Fix ci-status link 2023-07-25 06:42:29 -06:00
crystal
3fe394cfa3
remove experimental repo-deb 2023-07-25 06:14:59 -06:00
crystal
0181ae14aa
Remove repo-deb upload 2023-07-25 06:13:25 -06:00
crystal
a5c2811836
new repo-deb 2023-07-25 06:03:15 -06:00
crystal
4eb4803a2e
transitional repo-deb 2023-07-25 05:56:35 -06:00
crystal
08b75e3090
Move apt repo to forgejo-contrib 2023-07-25 05:44:52 -06:00
crystal
09f27751ff
Revert "oneshot repo transfer"
This reverts commit b47f2faf53.
2023-07-25 05:37:56 -06:00
crystal
b47f2faf53
oneshot repo transfer 2023-07-25 05:24:26 -06:00
crystal
8a9436adb1
Update releases tab link 2023-07-25 04:33:42 -06:00
crystal
bf8f979080
Revert "use forgejo-bin for repo test"
This reverts commit 13a2d485fa.
2023-07-25 02:43:08 -06:00
crystal
b5a068e8da
Add repo setup instructions 2023-07-25 02:40:12 -06:00
crystal
13a2d485fa
use forgejo-bin for repo test 2023-07-25 02:12:49 -06:00
crystal
70615cbe03
bump deb 2023-07-25 02:01:16 -06:00
crystal
965e056116
Forgejo v1.20.1-0 (source) 2023-07-25 01:55:20 -06:00
crystal
51139fac0f
Forgejo v1.20.1-0 2023-07-24 23:25:24 -06:00
crystal
44add0de26
Revert "release candidate tag"
This reverts commit b40c337a0d.
2023-07-24 23:24:53 -06:00
crystal
ca60d19f7e
fix CI badge 2023-07-17 18:08:11 -06:00
crystal
d8f1a5c746
Forgejo v1.20.0-4-rc2 2023-07-17 12:10:32 -06:00
crystal
b40c337a0d
release candidate tag 2023-07-17 12:02:42 -06:00
crystal
f8468757d0
Revert "1.19 build"
This reverts commit 6042596c79.
2023-07-17 12:02:11 -06:00
37 changed files with 792 additions and 3043 deletions

View file

@ -8,6 +8,10 @@ CI_VERIFY_RETRY_COUNT=30 # How many times to retry before giving up if the pipel
case "$1" in
"submodule-build")
cd "$2"
LDFLAGS="$LDFLAGS -X \"code.gitea.io/gitea/modules/setting.StaticRootPath=/usr/share/forgejo\""
LDFLAGS="$LDFLAGS -X \"code.gitea.io/gitea/modules/setting.AppWorkPath=/var/lib/forgejo\""
LDFLAGS="$LDFLAGS -X \"code.gitea.io/gitea/modules/setting.CustomConf=/etc/forgejo/app.ini\""
export LDFLAGS
make build
EXIT_STATUS=$?
mv gitea ../"$3"
@ -19,6 +23,40 @@ case "$1" in
make "$@"
exit $?
;;
"actions-prep")
case "$2" in
"build-forgejo-deb")
APREP_APT_EXTRAS="debhelper devscripts sudo"
;;
"installtest")
APREP_APT_EXTRAS="sudo"
;;
"")
APREP_APT_EXTRAS=
;;
*)
echo "Invalid argument: $2"
exit 98
;;
esac
EXIT_TOTAL=0
apt update
EXIT_TOTAL=$(($EXIT_TOTAL+$?))
apt upgrade -y
EXIT_TOTAL=$(($EXIT_TOTAL+$?))
if [ "$APREP_APT_EXTRAS" ] ; then
apt install $APREP_APT_EXTRAS -y
EXIT_TOTAL=$(($EXIT_TOTAL+$?))
fi
ACTIONS_FORGEJOSHA="$(git rev-parse --short=10 HEAD)"
if [ "$GITHUB_REF_TYPE" = "tag" ] ; then
echo "::set-output name=artifactlabel::$GITHUB_REF_NAME-$ACTIONS_FORGEJOSHA"
else
echo "::set-output name=artifactlabel::$ACTIONS_FORGEJOSHA"
fi
echo "::set-output name=forgejosha::$ACTIONS_FORGEJOSHA"
exit $EXIT_TOTAL
;;
"ci-verify")
RETRY_LOOPS=0
while [ $RETRY_LOOPS -le $CI_VERIFY_RETRY_COUNT ] ; do
@ -43,11 +81,56 @@ case "$1" in
exit 255
;;
"download-binary")
if [ "$GITHUB_BASE_REF" ] ; then
echo "forgejo actions pull request mode"
echo "making sure you didn't break binary builds..."
PR_MODE=true
fi
if [ "$GITHUB_REF_TYPE" = "tag" ] ; then
echo "INFO: Forgejo Actions mode!"
CI_COMMIT_TAG="$GITHUB_REF_NAME"
elif [ "$GITHUB_REF_TYPE" = "branch" ] || [ $PR_MODE ] ; then
echo "WARNING: Not building a tag! Simulating it..."
echo "(forgejo actions mode)"
echo "(this will test the binary packaging without cutting a tag in the package)"
echo "Resolving tag..."
cd forgejo
CI_COMMIT_TAG_RESOLVE=$(git tag --points-at HEAD)
if [ ! $CI_COMMIT_TAG_RESOLVE ] ; then
echo "Failed to resolve exact tag! Getting as close as we can..."
git describe --tags HEAD
FORGEJO_CLOSEST_TAG=$(git describe --tags HEAD --abbrev=0)
echo "Looking for experimental tag..."
EXPERIMENTAL_REPO="forgejo-experimental/forgejo"
git remote add experimental $CI_VERIFY_API/$EXPERIMENTAL_REPO
git fetch experimental --tags
CI_COMMIT_TAG_RESOLVE=$(git tag --points-at HEAD)
if [ $CI_COMMIT_TAG_RESOLVE ] ; then
CI_VERIFY_REPO=$EXPERIMENTAL_REPO
FORGEJO_CLOSEST_TAG=$CI_COMMIT_TAG_RESOLVE
echo "Found it! Using experimental tag and downloading binary from $CI_VERIFY_REPO"
fi
CI_COMMIT_TAG_RESOLVE=$FORGEJO_CLOSEST_TAG
echo "Closest existing tag: $CI_COMMIT_TAG_RESOLVE"
if [ "$CI_COMMIT_TAG_RESOLVE" != "${CI_COMMIT_TAG_RESOLVE%"-dev"}" ] || [ ! "$CI_COMMIT_TAG_RESOLVE" ] ; then
if [ $PR_MODE ] ; then
echo "I can't figure out which release version of Forgejo to build your PR against."
echo "Whatever you're trying to do is not yet implemented."
exit 97
fi
echo "err! unable to resolve tag or building dev version- skipping binary dl"
CI_COMMIT_TAG_RESOLVE=
fi
fi
cd ..
echo "Proceeding with resolved tag: $CI_COMMIT_TAG_RESOLVE"
CI_COMMIT_TAG="$CI_COMMIT_TAG_RESOLVE"
fi
if [ $CI_COMMIT_TAG ] ; then
CI_RELEASE_ASSETS=$(curl $CI_VERIFY_API/api/v1/repos/$CI_VERIFY_REPO/releases/tags/$CI_COMMIT_TAG | jq -c '.assets[]' | grep linux-amd64)
CI_RELEASE_BINARY_URL=$(echo "$CI_RELEASE_ASSETS" | grep linux-amd64\" | jq -r --jsonargs .browser_download_url)
CI_RELEASE_SHA256=$(curl $(echo "$CI_RELEASE_ASSETS" | grep linux-amd64.sha256\" | jq -r --jsonargs .browser_download_url) | cut -d ' ' -f1)
wget --content-disposition $CI_RELEASE_BINARY_URL
wget -nv --content-disposition $CI_RELEASE_BINARY_URL
DOWNLOAD_SHA256=$(sha256sum forgejo-*-linux-amd64 | cut -d ' ' -f1)
if [ $CI_RELEASE_SHA256 != $DOWNLOAD_SHA256 ] ; then
echo "ERROR: Downloaded file didn't match expected SHA256 sum"
@ -66,20 +149,31 @@ case "$1" in
mkdir deb/forgejo-sqlite-bin
mv forgejo-bin deb/forgejo-bin/forgejo
mv forgejo-sqlite-bin deb/forgejo-sqlite-bin/forgejo
cp -r forgejo/public deb/public
cp -r forgejo/templates deb/templates
cp -r forgejo/options deb/options
if [ -x forgejo-bin-dl ] ; then
mkdir deb/forgejo-bin-dl
mv forgejo-bin-dl deb/forgejo-bin-dl/forgejo
mv deb/.forgejo-bin.install deb/debian/forgejo-bin.install
ln -s forgejo.preinst deb/debian/forgejo-bin.preinst
ln -s forgejo-common.preinst deb/debian/forgejo-bin.preinst
ln -s forgejo.postinst deb/debian/forgejo-bin.postinst
ln -s forgejo.prerm deb/debian/forgejo-bin.prerm
echo >> deb/debian/control
cat deb/.forgejo-bin.control >> deb/debian/control
fi
;;
"package-build-deps")
cd deb
mk-build-deps --install --tool "apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends -y" --remove
exit $?
;;
"package-build")
cd deb
dpkg-buildpackage -b
if [ "$2" = "actions" ] ; then
PACKAGE_BUILD_EXTRA_ARGS="--no-sign"
fi
dpkg-buildpackage -b $PACKAGE_BUILD_EXTRA_ARGS
exit $?
;;
"package-clean")
@ -103,31 +197,82 @@ case "$1" in
cp ./etc/systemd/system/forgejo.service.d/override.conf /etc/systemd/system/forgejo.service.d/override.conf
;;
"install-run-test")
export DEBIAN_FRONTEND=noninteractive
apt update
apt install -y ./"$2"
if [ "$2" = "${2#"./forgejo-bin_"}" ] ; then
APT_FORGEJO_COMMON_RESOLVE="$(ls -1 ./forgejo-common_*_all.deb)"
if [ -f "$APT_FORGEJO_COMMON_RESOLVE" ] ; then
APT_FORGEJO_COMMON="./$APT_FORGEJO_COMMON_RESOLVE"
else
echo "ERR! Unable to find the necessary forgejo-common package!"
exit 96
fi
fi
apt install -y $APT_FORGEJO_COMMON ./"$2"
if [ -f "/etc/default/forgejo" ] || [ "$2" != "${2#"./forgejo-bin_"}" ] ; then
[ -f "/etc/default/forgejo" ] && . /etc/default/forgejo
[ -z "$FORGEJO_HOME" ] && FORGEJO_HOME=/var/lib/forgejo
[ -z "$FORGEJO_USER" ] && FORGEJO_USER=forgejo
sudo -u $FORGEJO_USER USER=$FORGEJO_USER \
HOME=$FORGEJO_HOME GITEA_WORK_DIR=$FORGEJO_HOME \
forgejo web --config /etc/forgejo/app.ini &
HOME=$FORGEJO_HOME FORGEJO_WORK_DIR=$FORGEJO_HOME \
forgejo web -q --config /etc/forgejo/app.ini &
else
echo "No env setup! Run testing defaults using hardcoded vars..."
sudo -u forgejo USER=forgejo forgejo web -q &
fi
sleep 10
curl http://localhost:3000/
curl http://localhost:3000/ | grep -A 4 "Powered by Forgejo"
exit $?
;;
"install-repo-test")
apt update
export DEBIAN_FRONTEND=noninteractive
apt update -qq
apt install -y apt-utils apt-listchanges
apt install -y ./"$2"
apt update
apt update -qq
apt upgrade -y
apt update
apt install "$3"
apt update -qq
apt install -y "$3"
sudo -u forgejo USER=forgejo \
HOME=/var/lib/forgejo GITEA_WORK_DIR=/var/lib/forgejo \
forgejo web --config /etc/fogejo/app.ini &
HOME=/var/lib/forgejo FORGEJO_WORK_DIR=/var/lib/forgejo \
forgejo web -q --config /etc/fogejo/app.ini &
sleep 10
curl http://localhost:3000/
curl http://localhost:3000/ | grep -A 4 "Powered by Forgejo"
exit $?
;;
"verify-data-dir-chmod")
DATA_DIR_CHMOD="$(stat -c %a /var/lib/forgejo)"
if [ "$DATA_DIR_CHMOD" = "750" ]; then
exit 0
else
exit 100
fi
;;
"force-clean-forgejo")
export DEBIAN_FRONTEND=noninteractive
apt install -y psmisc
killall forgejo
exit $?
;;
"forgejo-test-deps")
echo "deb http://deb.debian.org/debian/ bookworm-backports main contrib" > /etc/apt/sources.list.d/backports.list
export DEBIAN_FRONTEND=noninteractive
apt update -qq
apt install -qq --no-install-recommends -y git-lfs
apt install -qq -y -t bookworm-backports golang-$DEP_GOLANG_VER
ln -sf /usr/lib/go-$DEP_GOLANG_VER/bin/go /usr/local/bin/go
adduser --quiet --comment forgejo --disabled-password forgejo
chown -R forgejo:forgejo .
if [ "$DEP_GOLANG_NODEB_REV" ];then
su forgejo -c "./.ci-make.sh forgejo-test-deps_upgrade-go $DEP_GOLANG_VER $DEP_GOLANG_NODEB_REV"
fi
;;
"forgejo-test-deps_upgrade-go")
go install golang.org/dl/go$2.$3@latest
ln -s ~/go/bin/go$2.$3 ~/go/bin/go
export PATH="$HOME/go/bin:$PATH"
go download
go version
;;
esac

View file

@ -1,352 +0,0 @@
platform: linux/amd64
when:
event: [ push, tag ]
variables:
- &ci_verify_image 'sc.cryxtal.org/ci-img/git-curl-jq:latest'
- &golang_image 'golang:1.20-bullseye'
- &forgejo_test_image 'codeberg.org/forgejo/test_env:1.19'
- &nodejs_image 'node:lts'
- &bin_dl_image 'sc.cryxtal.org/ci-img/bin-dl:latest'
- &deb_build_image 'sc.cryxtal.org/ci-img/dh:bullseye'
- &deb_test_image_bullseye 'sc.cryxtal.org/ci-img/deb-test:bullseye'
- &deb_test_image_bookworm 'sc.cryxtal.org/ci-img/deb-test:bookworm'
- &deb_test_image_buster 'sc.cryxtal.org/ci-img/deb-test:buster'
- &deb_test_image_sid 'sc.cryxtal.org/ci-img/deb-test:sid'
- &deb_test_image_jammy 'sc.cryxtal.org/ci-img/deb-test-ubuntu:jammy'
- &deb_test_image_focal 'sc.cryxtal.org/ci-img/deb-test-ubuntu:focal'
- &deb_test_image_kinetic 'sc.cryxtal.org/ci-img/deb-test-ubuntu:kinetic'
- &deb_test_image_lunar 'sc.cryxtal.org/ci-img/deb-test-ubuntu:lunar'
- &build_submodule 'forgejo'
- &goproxy_override ''
- &goproxy_setup |-
if [ -n "$${GOPROXY_OVERRIDE:-}" ]; then
export GOPROXY="$${GOPROXY_OVERRIDE}";
echo "Using goproxy from goproxy_override \"$${GOPROXY}\"";
elif [ -n "$${GOPROXY_DEFAULT:-}" ]; then
export GOPROXY="$${GOPROXY_DEFAULT}";
echo "Using goproxy from goproxy_default (secret) not displaying";
else
export GOPROXY="https://proxy.golang.org,direct";
echo "No goproxy overrides or defaults given, using \"$${GOPROXY}\"";
fi
workspace:
base: /go
path: src/cryxtal/forgejo-deb
clone:
clone-recursive:
image: woodpeckerci/plugin-git
settings:
recursive: true
pipeline:
fetch-tags:
image: *ci_verify_image
pull: true
commands:
- git config --add safe.directory '*'
- git fetch --tags --force
- git submodule foreach 'git fetch --tags --force'
ci-verify:
image: *ci_verify_image
group: deps
environment:
BUILD_SUBMODULE: *build_submodule
commands:
- ./.ci-make.sh ci-verify "$BUILD_SUBMODULE"
deps-frontend:
image: *nodejs_image
group: deps
environment:
BUILD_SUBMODULE: *build_submodule
commands:
- ./.ci-make.sh submodule-make "$BUILD_SUBMODULE" deps-frontend
deps-backend:
image: *golang_image
group: deps
environment:
BUILD_SUBMODULE: *build_submodule
GOPROXY_OVERRIDE: *goproxy_override
secrets:
- goproxy_default
commands:
- *goproxy_setup
- ./.ci-make.sh submodule-make "$BUILD_SUBMODULE" deps-backend
tag-pre-condition:
image: *ci_verify_image
environment:
BUILD_SUBMODULE: *build_submodule
commands:
- cd "$BUILD_SUBMODULE"
- git update-ref refs/heads/tag_test $(git rev-parse --verify HEAD)
security-check:
image: *golang_image
group: checks
environment:
BUILD_SUBMODULE: *build_submodule
GOPROXY_OVERRIDE: *goproxy_override
secrets:
- goproxy_default
commands:
- *goproxy_setup
- ./.ci-make.sh submodule-make "$BUILD_SUBMODULE" security-check
build-frontend:
image: *nodejs_image
group: checks
environment:
BUILD_SUBMODULE: *build_submodule
commands:
- ./.ci-make.sh submodule-make "$BUILD_SUBMODULE" frontend
checks-backend:
image: *forgejo_test_image
group: checks
environment:
BUILD_SUBMODULE: *build_submodule
GOPROXY_OVERRIDE: *goproxy_override
secrets:
- goproxy_default
commands:
- *goproxy_setup
- ./.ci-make.sh submodule-make "$BUILD_SUBMODULE" checks-backend
download-bin-amd64:
image: *bin_dl_image
group: build-main
commands:
- ./.ci-make.sh download-binary forgejo-bin-dl
when:
event: [ tag ]
build-forgejo-amd64:
image: *golang_image
group: build-main
environment:
BUILD_SUBMODULE: *build_submodule
GOSUMDB: sum.golang.org
TAGS: bindata
GOPROXY_OVERRIDE: *goproxy_override
secrets:
- goproxy_default
commands:
- *goproxy_setup
- ./.ci-make.sh submodule-build "$BUILD_SUBMODULE" forgejo-bin
build-forgejo-sqlite-amd64:
image: *golang_image
environment:
BUILD_SUBMODULE: *build_submodule
GOSUMDB: sum.golang.org
TAGS: bindata sqlite sqlite_unlock_notify
GOPROXY_OVERRIDE: *goproxy_override
secrets:
- goproxy_default
commands:
- *goproxy_setup
- ./.ci-make.sh submodule-build "$BUILD_SUBMODULE" forgejo-sqlite-bin
package-bullseye:
image: *deb_build_image
group: package
commands:
- ./.ci-make.sh package-prep
- ./.ci-make.sh package-build
- ./.ci-make.sh package-clean
package-repo:
image: *deb_build_image
group: package
commands:
- cd repo-deb
- ./build.sh
gen-sha256:
image: *ci_verify_image
commands:
- ./.ci-make.sh pkg-gen-sha256
- ./.ci-make.sh preview-sha256
test-inst-bookworm:
image: *deb_test_image_bookworm
group: pkg-test-1
commands:
- ./.ci-make.sh install-run-test ./forgejo_*_amd64.deb
test-inst-bookworm-user:
image: *deb_test_image_bookworm
group: pkg-test-1
commands:
- ./.ci-make.sh test-userinst-prep
- ./.ci-make.sh install-run-test ./forgejo_*_amd64.deb
test-inst-bullseye-sqlite:
image: *deb_test_image_bullseye
group: pkg-test-1
commands:
- ./.ci-make.sh install-run-test ./forgejo-sqlite_*_amd64.deb
test-inst-bookworm-sqlite:
image: *deb_test_image_bookworm
group: pkg-test-1
commands:
- ./.ci-make.sh install-run-test ./forgejo-sqlite_*_amd64.deb
test-inst-buster-sqlite:
image: *deb_test_image_buster
group: pkg-test-2
commands:
- ./.ci-make.sh install-run-test ./forgejo-sqlite_*_amd64.deb
test-inst-sid-sqlite:
image: *deb_test_image_sid
group: pkg-test-2
commands:
- ./.ci-make.sh install-run-test ./forgejo-sqlite_*_amd64.deb
test-inst-jammy-sqlite:
image: *deb_test_image_jammy
group: pkg-test-2
commands:
- ./.ci-make.sh install-run-test ./forgejo-sqlite_*_amd64.deb
test-inst-focal-sqlite:
image: *deb_test_image_focal
group: pkg-test-2
commands:
- ./.ci-make.sh install-run-test ./forgejo-sqlite_*_amd64.deb
test-inst-kinetic-sqlite:
image: *deb_test_image_kinetic
group: pkg-test-3
commands:
- ./.ci-make.sh install-run-test ./forgejo-sqlite_*_amd64.deb
test-inst-lunar-sqlite:
image: *deb_test_image_lunar
group: pkg-test-3
commands:
- ./.ci-make.sh install-run-test ./forgejo-sqlite_*_amd64.deb
test-inst-bullseye-bin:
image: *deb_test_image_bullseye
group: pkg-test-3
commands:
- ./.ci-make.sh install-run-test ./forgejo-bin_*_amd64.deb
when:
event: [ tag ]
test-inst-bookworm-bin:
image: *deb_test_image_bookworm
group: pkg-test-3
commands:
- ./.ci-make.sh install-run-test ./forgejo-bin_*_amd64.deb
when:
event: [ tag ]
test-inst-buster-bin:
image: *deb_test_image_buster
group: pkg-test-4
commands:
- ./.ci-make.sh install-run-test ./forgejo-bin_*_amd64.deb
when:
event: [ tag ]
test-inst-sid-bin:
image: *deb_test_image_sid
group: pkg-test-4
commands:
- ./.ci-make.sh install-run-test ./forgejo-bin_*_amd64.deb
when:
event: [ tag ]
test-inst-jammy-bin:
image: *deb_test_image_jammy
group: pkg-test-4
commands:
- ./.ci-make.sh install-run-test ./forgejo-bin_*_amd64.deb
when:
event: [ tag ]
test-inst-focal-bin:
image: *deb_test_image_focal
group: pkg-test-4
commands:
- ./.ci-make.sh install-run-test ./forgejo-bin_*_amd64.deb
when:
event: [ tag ]
test-inst-kinetic-bin:
image: *deb_test_image_kinetic
group: pkg-test-5
commands:
- ./.ci-make.sh install-run-test ./forgejo-bin_*_amd64.deb
when:
event: [ tag ]
test-inst-lunar-bin:
image: *deb_test_image_lunar
group: pkg-test-5
commands:
- ./.ci-make.sh install-run-test ./forgejo-bin_*_amd64.deb
when:
event: [ tag ]
test-repo-bookworm-sqlite:
image: *deb_test_image_bookworm
group: pkg-test-5
commands:
- ./.ci-make.sh install-repo-test ./repo-deb/forgejo-deb-repo_0-0_all.deb forgejo-sqlite
upload-crystalcommit:
image: woodpeckerci/plugin-gitea-release
group: upload
settings:
base_url: https://sc.cryxtal.org
files:
- "*.deb"
- "*.deb.sha256"
api_key:
from_secret: sc_api_key
prerelease: false
skip_verify: true
when:
event: [ tag ]
upload-codeberg:
image: woodpeckerci/plugin-gitea-release
group: upload
settings:
base_url: https://codeberg.org
files:
- "*.deb"
- "*.deb.sha256"
api_key:
from_secret: cb_api_key
prerelease: false
skip_verify: true
when:
event: [ tag ]
publish-apt-repo:
image: *ci_verify_image
group: upload
environment:
FORGEJO_SITE: https://code.forgejo.org
FORGEJO_OWNER: crystal
DEBIAN_DIST: bullseye
DEBIAN_COMPONENT: forgejo
secrets: [ cfo_api_key ]
commands:
- export FORGEJO_KEY=$CFO_API_KEY
- ./.ci-forgejo-apt.sh *.deb
when:
event: [ tag ]

View file

@ -0,0 +1,223 @@
on: [push, pull_request]
jobs:
build-forgejo-deb:
runs-on: bullseye
steps:
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
fetch-tags: true
filter: tree:0
- uses: actions/setup-node@v3
with:
node-version: 20
- uses: actions/setup-go@v4
with:
go-version: "1.23"
check-latest: true
- name: "actions prep: build-forgejo-deb"
id: ciprep
run: ./.ci-make.sh actions-prep build-forgejo-deb
- uses: crystal/install-jq-action@v2.1.0
- run: ./.ci-make.sh ci-verify forgejo
- run: ./.ci-make.sh submodule-make forgejo deps-frontend
- run: ./.ci-make.sh submodule-make forgejo deps-backend
- name: tag pre-condition
run: |
cd forgejo
git update-ref refs/heads/tag_test $(git rev-parse --verify HEAD)
- run: ./.ci-make.sh submodule-make forgejo security-check
- run: ./.ci-make.sh submodule-make forgejo frontend
- run: ./.ci-make.sh submodule-make forgejo checks-backend
- name: Download Forgejo binary
run: ./.ci-make.sh download-binary forgejo-bin-dl
- name: Build Forgejo for amd64
run: ./.ci-make.sh submodule-build forgejo forgejo-bin
- name: Build Forgejo (with SQLite) for amd64
run: ./.ci-make.sh submodule-build forgejo forgejo-sqlite-bin
env:
TAGS: sqlite sqlite_unlock_notify
- run: ./.ci-make.sh package-prep
- run: ./.ci-make.sh package-build-deps
- run: ./.ci-make.sh package-build actions
- run: ./.ci-make.sh package-clean
- name: build repo package
run: |
cd repo-deb
./build.sh actions
- name: generate sha256
run: |
./.ci-make.sh pkg-gen-sha256
./.ci-make.sh preview-sha256
- run: ./.ci-make.sh install-run-test ./forgejo-sqlite_*_amd64.deb
- uses: actions/upload-artifact@v3
with:
name: forgejo-deb-${{ steps.ciprep.outputs.artifactlabel }}
path: |
*.deb
*.deb.sha256
repo-deb/*.deb
installtest-bookworm-sqlite:
runs-on: bookworm
needs:
- build-forgejo-deb
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_*_amd64.deb
installtest-bullseye-sqlite:
runs-on: bullseye
needs:
- build-forgejo-deb
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_*_amd64.deb
installtest-buster-sqlite:
runs-on: buster
needs:
- build-forgejo-deb
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_*_amd64.deb
installtest-bookworm-user:
runs-on: bookworm
needs:
- build-forgejo-deb
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 test-userinst-prep
- run: ./.ci-make.sh install-run-test ./forgejo_*_amd64.deb
testsuite-repo-upgrade-sqlite:
runs-on: bookworm
needs:
- build-forgejo-deb
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-repo-test ./repo-deb/forgejo-deb-repo_0-0_all.deb forgejo-sqlite
- run: ./.ci-make.sh force-clean-forgejo
- run: ./.ci-make.sh install-run-test ./forgejo-sqlite_*_amd64.deb
- run: ./.ci-make.sh verify-data-dir-chmod
installtest-buster-bin:
runs-on: buster
needs:
- build-forgejo-deb
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-bin_*_amd64.deb
publish-release-repo:
runs-on: bookworm
needs:
- build-forgejo-deb
steps:
- uses: actions/checkout@v4
- name: actions prep
id: ciprep
run: ./.ci-make.sh actions-prep
- uses: actions/download-artifact@v3
with:
name: forgejo-deb-${{ steps.ciprep.outputs.artifactlabel }}
- uses: crystal/install-jq-action@v2.1.0
- run: mkdir forgejo-release
- run: mv *.deb *.deb.sha256 forgejo-release/
# - uses: actions/forgejo-release@v1
# with:
# direction: upload
# url: https://forgejo.glicid.fr
# token: ${{ secrets.CFO_API_KEY }}
# release-dir: forgejo-release
- name: Debian package registry publish
env:
FORGEJO_SITE: https://forgejo.glicid.fr
FORGEJO_OWNER: GLiCID
DEBIAN_DIST: bookworm
DEBIAN_COMPONENT: forgejo
FORGEJO_KEY: ${{ secrets.CFO_API_KEY }}
run: |
cd forgejo-release
../.ci-forgejo-apt.sh *.deb
cd ..

2
.gitmodules vendored
View file

@ -1,3 +1,3 @@
[submodule "forgejo"]
path = forgejo
url = https://sc.cryxtal.org/mirror/forgejo
url = https://codeberg.org/forgejo/forgejo

21
LICENSE Normal file
View file

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2023 The Forgejo Community
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View file

@ -1,10 +1,8 @@
# Debian Packages for Forgejo
Hello! If you want to run Forgejo on Debian/Ubuntu and you're looking for packages to install it to your system, you've come to the right place!
### Build test: [![ci-status](https://ci.cryxtal.org/api/badges/crystal/forgejo-deb/status.svg)](https://ci.cryxtal.org/crystal/forgejo-deb)
## Download info
You can find the latest release downloads in [the releases tab](https://codeberg.org/crystal/forgejo-deb/releases). There are currently 3 packages built by this script.
You can find the latest release downloads in [the releases tab](https://codeberg.org/forgejo-contrib/forgejo-deb/releases). There are currently 3 packages built by this script.
- `forgejo`: A basic production-ready Forgejo build without SQLite support
- `forgejo-sqlite`: A Forgejo build with SQLite support, best way to get started fast
- `forgejo-bin`: A Debian package with the official Forgejo binary, in case you don't trust my builds
@ -14,6 +12,17 @@ These packages are easy to use! Just download your preferred package, install it
The default username for Forgejo's user is `forgejo`, but it can easily be changed prior to installation, for example if you would rather run Forgejo as user `git`. All you need to do is download the files from the `etc` folder in this repository, put them in the respective places on your system, and customize them to your liking. When you use apt to install the Forgejo package, it will create a new user with the specified settings.
## Updates through apt
You can install updates for this package along with all the other software on your system with `apt` thanks to the Debian package registry added in Forgejo v1.20. Run the following commands to set up the repository on your system:
```sh
sudo apt install wget apt-transport-https
wget --content-disposition https://code.forgejo.org/forgejo-contrib/-/packages/debian/forgejo-deb-repo/0-0/files/2890
sudo apt install ./forgejo-deb-repo_0-0_all.deb
sudo apt update
sudo apt upgrade
```
If you already installed Forgejo using a package from the releases tab, it will now be automatically updated along with the rest of your system packages. If you have not yet installed Forgejo, you can now install it with `apt install forgejo(-sqlite|-bin)`
## Removal
Removing Forgejo itself from your system is simple, just `sudo apt remove forgejo(-sqlite|-bin)`. If you use `sudo apt purge`, the related configuration files will also be removed from `/etc/forgejo`. To avoid accidentally destroying user data, other things including the Forgejo user will be left behind. The following commands will remove everything from your system.
```sh
@ -23,3 +32,5 @@ sudo rm -rf /etc/forgejo /etc/default/forgejo /etc/systemd/system/forgejo.servic
sudo deluser forgejo
```
If you customized the user or home directory before installing Forgejo, make sure to adjust the commands accordingly. If you get an error saying the files you are trying to delete do not exist, don't worry about it.
If you installed the `apt` repository and you would like to remove it, use `sudo apt purge forgejo-deb-repo forgejo-deb-repokey`

View file

@ -1,8 +1,8 @@
Package: forgejo-bin
Architecture: amd64
Priority: optional
Provides: forgejo,gitea
Depends: adduser (>= 3.11)
Conflicts: forgejo,forgejo-bin
Provides: forgejo, gitea
Depends: adduser (>= 3.11), git
Conflicts: forgejo, forgejo-sqlite, forgejo-common
Description: Forgejo: Beyond Coding. We Forge. (binary)
The official Forgejo release binary in a Debian package

File diff suppressed because it is too large Load diff

29
deb/debian/NEWS Normal file
View file

@ -0,0 +1,29 @@
forgejo (7.0.1-2) unstable; urgency=medium
WARNING: Forgejo will be upgraded to v7.0.1 LTS
Please read the Forgejo v7.0 release announcement and the release notes
for all v7.0.x versions and make any necessary adjustments to your
configuration before proceeding with the upgrade.
You may need to manually restart Forgejo after the upgrade is complete.
https://forgejo.org/2024-04-release-v7-0/
https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#7-0-1
-- crystal <crystal@noreply.codeberg.org> Sat, 27 Apr 2024 15:42:00 +0000
forgejo (1.21.4.0-2) unstable; urgency=medium
WARNING: Forgejo will be upgraded to v1.21.4-0
Please read the Forgejo v1.21 release announcement and the release notes
for all v1.21.x-x versions and make any necessary adjustments to your
configuration before proceeding with the upgrade.
You may need to manually restart Forgejo after the upgrade is complete.
https://forgejo.org/2023-11-release-v1211-0/
https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#1-21-4-0
-- crystal <crystal@noreply.codeberg.org> Wed, 17 Jan 2024 00:00:00 +0000

View file

@ -1,3 +1,229 @@
forgejo (10.0.3-1) unstable; urgency=medium
* Forgejo version 10.0.3
* See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#10.0.3
* Split `forgejo-common` package for extra data
-- crystal <crystal@noreply.codeberg.org> Sat, 29 Mar 2025 00:55:00 +0000
forgejo (10.0.2-1) unstable; urgency=medium
* Forgejo version 10.0.2
* See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#10.0.2
* Split `forgejo-common` package for extra data
-- crystal <crystal@noreply.codeberg.org> Sat, 29 Mar 2025 00:55:00 +0000
forgejo (10.0.1-1) unstable; urgency=medium
* Forgejo version 10.0.1
* See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#10.0.1
* Split `forgejo-common` package for extra data
-- crystal <crystal@noreply.codeberg.org> Mon, 17 Feb 2025 00:55:00 +0000
forgejo (10.0.0-1) unstable; urgency=medium
* Forgejo version 10.0.0
* See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#10.0.0
* Split `forgejo-common` package for extra data
-- crystal <crystal@noreply.codeberg.org> Sun, 19 Dec 2025 00:55:00 +0000
forgejo (9.0.3-1) unstable; urgency=medium
* Forgejo version 9.0.3
* See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#9.0.3
* Split `forgejo-common` package for extra data
-- crystal <crystal@noreply.codeberg.org> Sat, 14 Dec 2024 00:55:00 +0000
forgejo (9.0.2-1) unstable; urgency=medium
* Forgejo version 9.0.2
* See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#9.0.2
* Split `forgejo-common` package for extra data
-- crystal <crystal@noreply.codeberg.org> Sat, 14 Dec 2024 00:55:00 +0000
forgejo (9.0.1-1) unstable; urgency=medium
* Forgejo version 9.0.1
* See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#9.0.1
* Split `forgejo-common` package for extra data
-- crystal <crystal@noreply.codeberg.org> Mon, 28 Oct 2024 00:55:00 +0000
forgejo (8.0.3-1) unstable; urgency=medium
* Forgejo version 8.0.3
* See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#8.0.3
* Split `forgejo-common` package for extra data
-- crystal <crystal@noreply.codeberg.org> Sun, 15 Sep 2024 00:55:00 +0000
forgejo (8.0.2-1) unstable; urgency=medium
* Forgejo version 8.0.2
* See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#8.0.2
* Split `forgejo-common` package for extra data
-- crystal <crystal@noreply.codeberg.org> Sun, 01 Sep 2024 00:55:00 +0000
forgejo (8.0.1-1) unstable; urgency=medium
* Forgejo version 8.0.1
* See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#8.0.1
* Split `forgejo-common` package for extra data
-- crystal <crystal@noreply.codeberg.org> Tue, 27 Aug 2024 00:55:00 +0000
forgejo (7.0.7-1) unstable; urgency=medium
* Forgejo version 7.0.7
* See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#7-0-7
* Split `forgejo-common` package for extra data
-- crystal <crystal@noreply.codeberg.org> Mon, 26 Aug 2024 00:55:00 +0000
forgejo (7.0.5-1) unstable; urgency=medium
* Forgejo version 7.0.5
* See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#7-0-5
* Split `forgejo-common` package for extra data
-- crystal <crystal@noreply.codeberg.org> Sun, 07 July 2024 17:22:00 +0000
forgejo (7.0.1-1) unstable; urgency=medium
* Forgejo version 7.0.1
* See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#7-0-1
* Forgejo Actions based build process
-- crystal <crystal@noreply.codeberg.org> Sat, 27 Apr 2024 15:35:00 +0000
forgejo (1.21.11.1-1) unstable; urgency=medium
* Forgejo version 1.21.11-1
* See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#1-21-11-1
-- crystal <crystal@noreply.codeberg.org> Fri, 19 Apr 2024 15:46:00 +0000
forgejo (1.21.11.0-1) unstable; urgency=medium
* Forgejo version 1.21.11-0
* See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#1-21-11-0
-- crystal <crystal@noreply.codeberg.org> Thu, 18 Apr 2024 23:36:00 +0000
forgejo (1.21.10.0-1) unstable; urgency=medium
* Forgejo version 1.21.10-0
* See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#1-21-10-0
-- crystal <crystal@noreply.codeberg.org> Tue, 9 Apr 2024 11:27:00 +0000
forgejo (1.21.8.0-1) unstable; urgency=medium
* Forgejo version 1.21.8-0
* See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#1-21-8-0
-- crystal <crystal@noreply.codeberg.org> Sat, 23 Mar 2024 18:15:00 +0000
forgejo (1.21.7.0-2) unstable; urgency=medium
* Forgejo version 1.21.7-0
* Add git dependency
* See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#1-21-7-0
-- crystal <crystal@noreply.codeberg.org> Fri, 22 Mar 2024 21:35:00 +0000
forgejo (1.21.6.0-1) unstable; urgency=medium
* Forgejo version 1.21.6-0
* See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#1-21-6-0
-- crystal <crystal@noreply.codeberg.org> Sun, 25 Feb 2024 12:10:00 +0000
forgejo (1.21.5.0-1) unstable; urgency=medium
* Forgejo version 1.21.5-0
* See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#1-21-5-0
-- crystal <crystal@noreply.codeberg.org> Wed, 31 Jan 2024 22:22:00 +0000
forgejo (1.21.4.0-2) unstable; urgency=medium
* Fix NEWS.Debian changelog
-- crystal <crystal@noreply.codeberg.org> Wed, 17 Jan 2024 00:00:00 +0000
forgejo (1.21.4.0-1) unstable; urgency=medium
* Forgejo version 1.21.4-0
* See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#1-21-4-0
-- crystal <crystal@noreply.codeberg.org> Tue, 16 Jan 2024 23:03:00 +0000
forgejo (1.20.6.1-0) unstable; urgency=medium
* Forgejo version 1.20.6-1~deb0
* See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#1-20-6-1
* Additional commits: https://codeberg.org/forgejo/forgejo/compare/v1.20.6-1...496b0acd22
-- crystal <crystal@noreply.codeberg.org> Wed, 10 Jan 2024 00:02:00 +0000
forgejo (1.20.5.1-1) unstable; urgency=medium
* Forgejo version 1.20.5-1
* app.ini: Replaced example with blank default
* Change data directory mode to 750
* See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#1-20-5-1
-- crystal <crystal@noreply.codeberg.org> Sun, 26 Nov 2023 01:57:00 +0000
forgejo (1.20.5.0-1) unstable; urgency=medium
* Forgejo version 1.20.5-0
* See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#1-20-5-0
-- crystal <crystal@noreply.codeberg.org> Sat, 7 Oct 2023 23:03:00 +0000
forgejo (1.20.4.1-1) unstable; urgency=medium
* Forgejo version 1.20.4-1
* See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#1-20-4-1
-- crystal <crystal@noreply.codeberg.org> Wed, 20 Sep 2023 20:03:00 +0000
forgejo (1.20.4.0-1) unstable; urgency=medium
* Forgejo version 1.20.4-0
* See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#1-20-4-0
-- crystal <crystal@noreply.codeberg.org> Sat, 9 Sep 2023 11:00:00 +0000
forgejo (1.20.3.0-1) unstable; urgency=medium
* Forgejo version 1.20.3-0
* See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#1-20-3-0
-- crystal <crystal@noreply.codeberg.org> Tue, 21 Aug 2023 15:27:00 +0000
forgejo (1.20.2.0-2) unstable; urgency=medium
* Forgejo version 1.20.2-0
* See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#1-20-2-0
-- crystal <crystal@noreply.codeberg.org> Sun, 30 Jul 2023 15:30:00 +0000
forgejo (1.20.1.0-2) unstable; urgency=medium
* Forgejo version 1.20.1-0
* See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#1-20-1-0
-- crystal <crystal@noreply.codeberg.org> Tue, 25 Jul 2023 08:00:00 +0000
forgejo (1.19.4.0-1) unstable; urgency=medium
* Forgejo version 1.19.4-0

View file

@ -8,16 +8,24 @@ Package: forgejo
Architecture: amd64
Priority: optional
Provides: gitea
Depends: adduser (>= 3.11)
Conflicts: forgejo-sqlite,forgejo-bin
Depends: forgejo-common (= ${source:Version}), adduser (>= 3.11), git
Conflicts: forgejo-sqlite, forgejo-bin
Description: Forgejo: Beyond Coding. We Forge.
Forgejo with bindata ONLY - Use this package for MySQL or PostgreSQL setup
Package: forgejo-sqlite
Architecture: amd64
Priority: optional
Provides: forgejo,gitea
Depends: adduser (>= 3.11)
Conflicts: forgejo,forgejo-bin
Provides: forgejo, gitea
Depends: forgejo-common (= ${source:Version}), adduser (>= 3.11), git
Conflicts: forgejo, forgejo-bin
Description: Forgejo: Beyond Coding. We Forge. (SQLite)
Forgejo with bindata and SQLite support - Use this package to get started immediately
Package: forgejo-common
Architecture: all
Priority: optional
Depends: forgejo | forgejo-sqlite (= ${source:Version})
Conflicts: forgejo-bin
Description: Common files for Forgejo
Common data used for all Forgejo packages and architectures.

View file

@ -0,0 +1,5 @@
public/ /usr/share/forgejo
templates/ /usr/share/forgejo
options/ /usr/share/forgejo
forgejo.service /usr/lib/systemd/system
app.ini /etc/forgejo

View file

@ -29,6 +29,6 @@ case "$1" in
$FORGEJO_USER
if ! dpkg-statoverride --list $FORGEJO_HOME >/dev/null ; then
chown -R $FORGEJO_USER:$FORGEJO_GROUP $FORGEJO_HOME
chmod u=rwx,g=rwx,o= $FORGEJO_HOME
chmod u=rwx,g=rx,o= $FORGEJO_HOME
fi
esac

View file

@ -1,3 +1 @@
forgejo-sqlite-bin/forgejo /usr/bin
forgejo.service /usr/lib/systemd/system
app.ini /etc/forgejo

View file

@ -1 +0,0 @@
forgejo.preinst

View file

@ -1,3 +1 @@
forgejo-bin/forgejo /usr/bin
forgejo.service /usr/lib/systemd/system
app.ini /etc/forgejo

View file

@ -61,7 +61,7 @@ WorkingDirectory=~
#RuntimeDirectory=forgejo
ExecStart=/usr/bin/forgejo web --config /etc/forgejo/app.ini
Restart=always
Environment=USER=forgejo HOME=/var/lib/forgejo GITEA_WORK_DIR=/var/lib/forgejo
Environment=USER=forgejo HOME=/var/lib/forgejo FORGEJO_WORK_DIR=/var/lib/forgejo
# If you install Git to directory prefix other than default PATH (which happens
# for example if you install other versions of Git side-to-side with
# distribution version), uncomment below line and add that prefix to PATH

View file

@ -3,4 +3,4 @@
# LimitNOFILE=524288:524288
User=git
Group=git
Environment=USER=git HOME=/var/lib/forgejo GITEA_WORK_DIR=/var/lib/forgejo
Environment=USER=git HOME=/var/lib/forgejo FORGEJO_WORK_DIR=/var/lib/forgejo

@ -1 +1 @@
Subproject commit daf0fa06af10cdc91dc4ba93c0766a280c008c3c
Subproject commit dde3f51c72feffac4805fc3133b6a681d8c97c6f

View file

@ -1,16 +1,16 @@
#!/bin/bash
cp code-forgejo-org-crystal.asc stub/
cp code-forgejo-org-crystal.asc main/
cp code-forgejo-org-forgejo-contrib.asc stub/
cp code-forgejo-org-forgejo-contrib.asc main/
cp forgejo-deb.list stub/
cp forgejo-deb.list main/
if [ "$1" = "actions" ] ; then
PACKAGE_BUILD_EXTRA_ARGS="--no-sign"
fi
cd stub
dpkg-buildpackage -b
dpkg-buildpackage -b $PACKAGE_BUILD_EXTRA_ARGS
cd ..
cd main
dpkg-buildpackage -b
cd ..
cd experimental
dpkg-buildpackage -b
dpkg-buildpackage -b $PACKAGE_BUILD_EXTRA_ARGS
cd ..
exit 0

View file

@ -1,29 +0,0 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
xsBNBGSVbecBCADSrwa9TMkPb5LMC7Ts/6wDRUDkmO63uJLJ8eSTz2iurmN/gUuE
GG65Pgkv+zqNENFga+nAJz4sTeAEMbUxxgPFKKdM5pdkYoSZ2iqsnH8/3nGeeNne
7sE5i2ZbUKJwRFwBW8Oi8aecBcR7bxYPi2sdMcz93zYebrc23xhUEUA1tNdXU0SR
+H7Wepq6MafWKYWpAWeAbRSGzB/jkc7rEur9CwvgEfuvKIpn6dvjbPVZdC8gUzJb
+nBAqCWvzU28+ByWioRpmMmPwCVjxDlwhZNZfNkme3i9PuIHDqWCID+kfPMqDxLe
BX4lJhrIBkzNXEyrCBxI6f00fstMblx05QqhABEBAAHNM0Zvcmdlam86IEJleW9u
ZCBjb2RpbmcuIFdlIGZvcmdlLiAoRGViaWFuIFJlZ2lzdHJ5KcLAYgQTAQgAFgUC
ZJVt5wkQFppua1ziWCACGwMCGQEAAC3YCAAIfjy3U2+OX1QWB2hYnuF1eRtrJhwu
oioH0gVoyOfwqMG3bJhN0iKZ2kDAUwMWe9QdneRIvZPYtVQqn52QB0tIljeZDwHA
c+62pNu4227pR51gF34CDguMMZuzLFMFmaASfP/7Ygb+Q1upSCKq++K9ZKgitlcz
zGp4Sp6RBG8ELh3wNrSNYs1ZYWw6NdA+ayy+P7P5Hy9JSVjL1ql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 +0,0 @@
forgejo-deb-experimental (0-0) unstable; urgency=medium
* Initial version
-- crystal <crystal@noreply.codeberg.org> Mon, 3 Jul 2023 06:30:00 +0000

View file

@ -1 +0,0 @@
10

View file

@ -1,18 +0,0 @@
Source: forgejo-deb-experimental
Section: admin
Priority: optional
Maintainer: crystal <crystal@noreply.codeberg.org>
Build-Depends: debhelper (>= 10)
Package: forgejo-deb-experimental
Architecture: all
Priority: optional
Depends: crystal-experimental-repokey, apt-transport-https
Description: APT Repository for experimental forgejo-deb builds
Add the "crystal-experimental" repository to your system for release candidates and test builds
Package: crystal-experimental-repokey
Architecture: all
Priority: optional
Description: APT Repository signing key for crystal-experimental
Debian Package Registry key for https://code.forgejo.org/crystal-experimental

View file

@ -1 +0,0 @@
code-forgejo-org-crystal-experimental.asc /etc/apt/trusted.gpg.d

View file

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

View file

@ -1,4 +0,0 @@
#!/usr/bin/make -f
%:
dh $@ --with=systemd

View file

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

View file

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

26
repo-deb/main/debian/NEWS Normal file
View file

@ -0,0 +1,26 @@
forgejo-deb-repo (2-4) unstable; urgency=medium
WARNING: You are switching to the Forgejo LTS release channel!
After this upgrade is complete, you must run `apt upgrade` again to upgrade
to Forgejo 7.0.x LTS. You will no longer recieve new major Forgejo versions
until the next LTS version is available.
If you wish to switch to the standard release channel, use the following
commands to install the setup package. This package will be removed when the
release channel is successfully switched during the upgrade.
sudo apt install forgejo-deb-repo-stable
sudo apt update
sudo apt full-upgrade
More info: https://codeberg.org/forgejo-contrib/forgejo-deb/issues/35
Please read the Forgejo v7.0 release announcement and the release notes
for all v7.0.x versions and make any necessary adjustments to your
configuration before proceeding with the following upgrade.
https://forgejo.org/2024-04-release-v7-0/
https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#7-0-1
-- crystal <crystal@noreply.codeberg.org> Sun, 28 Apr 2024 17:48:00 +0000

View file

@ -1,3 +1,21 @@
forgejo-deb-repo (2-4) unstable; urgency=medium
* Switch to forgejo-lts component (LTS release channel)
-- crystal <crystal@noreply.codeberg.org> Sun, 28 Apr 2024 17:48:00 +0000
forgejo-deb-repo (2-2) unstable; urgency=medium
* Add apt-listchanges dep for important upgrade notices
-- crystal <crystal@noreply.codeberg.org> Sun, 28 Apr 2024 13:13:00 +0000
forgejo-deb-repo (2-1) unstable; urgency=medium
* Move to https://code.forgejo.org/forgejo-contrib/-/packages
-- crystal <crystal@noreply.codeberg.org> Tue, 25 Jul 2023 12:00:00 +0000
forgejo-deb-repo (1-1) unstable; urgency=medium
* Split key and repo package

View file

@ -7,7 +7,8 @@ Build-Depends: debhelper (>= 10)
Package: forgejo-deb-repo
Architecture: all
Priority: optional
Depends: forgejo-deb-repokey, apt-transport-https
Depends: forgejo-deb-repokey, apt-transport-https, apt-listchanges
Conflicts: forgejo-deb-repo-lts
Description: APT Repository for forgejo-deb builds
Forgejo will be updated via apt along with other software on your system
@ -16,4 +17,4 @@ Architecture: all
Priority: optional
Replaces: forgejo-deb-repo
Description: APT Repository signing key for forgejo-deb
Debian Package Registry key for https://code.forgejo.org/crystal
Debian Package Registry key for https://code.forgejo.org/forgejo-contrib

View file

@ -1 +1 @@
code-forgejo-org-crystal.asc /etc/apt/trusted.gpg.d
code-forgejo-org-forgejo-contrib.asc /etc/apt/trusted.gpg.d

View file

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

View file

@ -1,2 +1,2 @@
code-forgejo-org-crystal.asc /etc/apt/trusted.gpg.d
code-forgejo-org-forgejo-contrib.asc /etc/apt/trusted.gpg.d
forgejo-deb.list /etc/apt/sources.list.d