From 29ede91560584a2ce8f841d860a87950ff2655ed Mon Sep 17 00:00:00 2001 From: crystal Date: Fri, 24 Mar 2023 15:09:12 -0600 Subject: [PATCH 001/172] Add bookworm tests --- .crystalintegration.yml | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/.crystalintegration.yml b/.crystalintegration.yml index 95c62a3..735eb20 100644 --- a/.crystalintegration.yml +++ b/.crystalintegration.yml @@ -11,6 +11,7 @@ variables: - &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' @@ -184,9 +185,15 @@ pipeline: 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-1 + group: pkg-test-2 commands: - ./.ci-make.sh install-run-test ./forgejo-sqlite_*_amd64.deb @@ -210,7 +217,7 @@ pipeline: test-inst-kinetic-sqlite: image: *deb_test_image_kinetic - group: pkg-test-2 + group: pkg-test-3 commands: - ./.ci-make.sh install-run-test ./forgejo-sqlite_*_amd64.deb @@ -222,6 +229,14 @@ pipeline: 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-3 @@ -232,7 +247,7 @@ pipeline: test-inst-sid-bin: image: *deb_test_image_sid - group: pkg-test-3 + group: pkg-test-4 commands: - ./.ci-make.sh install-run-test ./forgejo-bin_*_amd64.deb when: From 289b60946d97f34f090e8664b6c02aef00751b5c Mon Sep 17 00:00:00 2001 From: crystal Date: Fri, 24 Mar 2023 15:46:50 -0600 Subject: [PATCH 002/172] use apt -y --- .ci-make.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ci-make.sh b/.ci-make.sh index f402daa..bc08780 100755 --- a/.ci-make.sh +++ b/.ci-make.sh @@ -103,7 +103,7 @@ case "$1" in cp ./etc/systemd/system/forgejo.service.d/override.conf /etc/systemd/system/forgejo.service.d/override.conf ;; "install-run-test") - apt install ./"$2" + apt install -y ./"$2" [ -f "/etc/default/forgejo" ] && . /etc/default/forgejo [ -z "$FORGEJO_HOME" ] && FORGEJO_HOME=/var/lib/forgejo [ -z "$FORGEJO_USER" ] && FORGEJO_USER=forgejo From 4812f95fc8cdfcbb67b663a6778178fca705fdc9 Mon Sep 17 00:00:00 2001 From: crystal Date: Wed, 5 Apr 2023 15:35:13 -0600 Subject: [PATCH 003/172] Forgejo release v1.19.0-3 --- deb/debian/changelog | 7 +++++++ forgejo | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/deb/debian/changelog b/deb/debian/changelog index 8a3a924..48e1d5c 100644 --- a/deb/debian/changelog +++ b/deb/debian/changelog @@ -1,3 +1,10 @@ +forgejo (1.19.0.3-1) unstable; urgency=medium + + * Forgejo version 1.19.0-3 + * See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#1-19-0-3 + + -- crystal Tue, 21 Mar 2023 17:40:00 +0000 + forgejo (1.19.0.2-1) unstable; urgency=medium * Forgejo version 1.19.0-2 diff --git a/forgejo b/forgejo index f5dbac2..b171e9f 160000 --- a/forgejo +++ b/forgejo @@ -1 +1 @@ -Subproject commit f5dbac2d6ad8cbbba0fdb2642281dcfd0573bcf8 +Subproject commit b171e9fa574baa684ed2df62ebefe8c85e99f5c7 From a612a76e5ae6d72ba12b3141e4ecc0330ff2d1c4 Mon Sep 17 00:00:00 2001 From: crystal Date: Wed, 5 Apr 2023 16:17:59 -0600 Subject: [PATCH 004/172] Correct changelog dates --- deb/debian/changelog | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deb/debian/changelog b/deb/debian/changelog index 48e1d5c..574983f 100644 --- a/deb/debian/changelog +++ b/deb/debian/changelog @@ -3,7 +3,7 @@ forgejo (1.19.0.3-1) unstable; urgency=medium * Forgejo version 1.19.0-3 * See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#1-19-0-3 - -- crystal Tue, 21 Mar 2023 17:40:00 +0000 + -- crystal Wed, 5 Apr 2023 22:12:00 +0000 forgejo (1.19.0.2-1) unstable; urgency=medium @@ -24,14 +24,14 @@ forgejo (1.18.3.2-1) unstable; urgency=medium * Forgejo version 1.18.3-2 * See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#1-18-3-2 - -- crystal Fri, 18 Feb 2023 23:35:00 +0000 + -- crystal Sat, 18 Feb 2023 23:35:00 +0000 forgejo (1.18.3.1-1) unstable; urgency=medium * Forgejo version 1.18.3-1 * See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#1-18-3-1 - -- crystal Fri, 9 Feb 2023 00:36:00 +0000 + -- crystal Fri, 10 Feb 2023 00:36:00 +0000 forgejo (1.18.3.0-1) unstable; urgency=medium From 677100913dd78bce4a38c0950310c80d27254414 Mon Sep 17 00:00:00 2001 From: crystal Date: Sat, 29 Apr 2023 10:11:58 -0600 Subject: [PATCH 005/172] Forgejo v1.19.2-0 --- deb/debian/changelog | 7 +++++++ forgejo | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/deb/debian/changelog b/deb/debian/changelog index 574983f..a1597c2 100644 --- a/deb/debian/changelog +++ b/deb/debian/changelog @@ -1,3 +1,10 @@ +forgejo (1.19.2.0-1) unstable; urgency=medium + + * Forgejo version 1.19.2-0 + * See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#1-19-2-0 + + -- crystal Sat, 29 Apr 2023 16:11:00 +0000 + forgejo (1.19.0.3-1) unstable; urgency=medium * Forgejo version 1.19.0-3 diff --git a/forgejo b/forgejo index b171e9f..078a131 160000 --- a/forgejo +++ b/forgejo @@ -1 +1 @@ -Subproject commit b171e9fa574baa684ed2df62ebefe8c85e99f5c7 +Subproject commit 078a1316e3c7cd6ee199138ede046eb896318529 From ed41a91516090f394615dcf8edf52d47eb8d2fbb Mon Sep 17 00:00:00 2001 From: crystal Date: Sat, 29 Apr 2023 20:37:19 -0600 Subject: [PATCH 006/172] apt update --- .ci-make.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/.ci-make.sh b/.ci-make.sh index bc08780..e49599b 100755 --- a/.ci-make.sh +++ b/.ci-make.sh @@ -103,6 +103,7 @@ case "$1" in cp ./etc/systemd/system/forgejo.service.d/override.conf /etc/systemd/system/forgejo.service.d/override.conf ;; "install-run-test") + apt update apt install -y ./"$2" [ -f "/etc/default/forgejo" ] && . /etc/default/forgejo [ -z "$FORGEJO_HOME" ] && FORGEJO_HOME=/var/lib/forgejo From 532eb7542b1ec978a3aa35a9c5227ae257aba672 Mon Sep 17 00:00:00 2001 From: crystal Date: Wed, 3 May 2023 15:55:03 -0600 Subject: [PATCH 007/172] Forgejo 1.19.3-0 --- deb/debian/changelog | 7 +++++++ forgejo | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/deb/debian/changelog b/deb/debian/changelog index a1597c2..bdaf076 100644 --- a/deb/debian/changelog +++ b/deb/debian/changelog @@ -1,3 +1,10 @@ +forgejo (1.19.3.0-1) unstable; urgency=medium + + * Forgejo version 1.19.3-0 + * See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md$1-19-3-0 + + -- crystal Wed, 3 May 2023 21:54:00 +0000 + forgejo (1.19.2.0-1) unstable; urgency=medium * Forgejo version 1.19.2-0 diff --git a/forgejo b/forgejo index 078a131..7b305fb 160000 --- a/forgejo +++ b/forgejo @@ -1 +1 @@ -Subproject commit 078a1316e3c7cd6ee199138ede046eb896318529 +Subproject commit 7b305fb785671ac0ccb5c1fa5c892e9f70e7b606 From a37e7517ced338e96e943399382dd318677cf995 Mon Sep 17 00:00:00 2001 From: crystal Date: Fri, 23 Jun 2023 02:18:40 -0600 Subject: [PATCH 008/172] use golang bullseye image for oldstable compatibility --- .crystalintegration.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.crystalintegration.yml b/.crystalintegration.yml index 735eb20..19d15e5 100644 --- a/.crystalintegration.yml +++ b/.crystalintegration.yml @@ -5,7 +5,7 @@ when: variables: - &ci_verify_image 'sc.cryxtal.org/ci-img/git-curl-jq:latest' - - &golang_image 'golang:1.20' + - &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' From 492b03753ade6e69960afff596b6e91c1b29d6e5 Mon Sep 17 00:00:00 2001 From: crystal Date: Fri, 23 Jun 2023 03:13:00 -0600 Subject: [PATCH 009/172] apt repo test --- .ci-forgejo-apt.sh | 5 +++++ .crystalintegration.yml | 13 +++++++++++++ 2 files changed, 18 insertions(+) create mode 100755 .ci-forgejo-apt.sh diff --git a/.ci-forgejo-apt.sh b/.ci-forgejo-apt.sh new file mode 100755 index 0000000..d474e28 --- /dev/null +++ b/.ci-forgejo-apt.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +for deb in "$@" ; do + curl -H "Authorization: token $FORGEJO_KEY" --upload-file $deb $FORGEJO_SITE/api/packages/$FORGEJO_OWNER/debian/pool/$DEBIAN_DIST/$DEBIAN_COMPONENT/upload +done diff --git a/.crystalintegration.yml b/.crystalintegration.yml index 19d15e5..e34bc8a 100644 --- a/.crystalintegration.yml +++ b/.crystalintegration.yml @@ -306,3 +306,16 @@ pipeline: 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: any + DEBIAN_COMPONENT: forgejo + secrets: [ cfo_api_key ] + commands: + - export FORGEJO_KEY=$CFO_API_KEY + - ./.ci-forgejo-apt.sh "*.deb" From b27f378b5ebaae416bd17982e5aefa76bfacbf83 Mon Sep 17 00:00:00 2001 From: crystal Date: Fri, 23 Jun 2023 03:04:22 -0600 Subject: [PATCH 010/172] add ubuntu 23.04 lunar test --- .crystalintegration.yml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/.crystalintegration.yml b/.crystalintegration.yml index e34bc8a..b7bef8e 100644 --- a/.crystalintegration.yml +++ b/.crystalintegration.yml @@ -17,6 +17,7 @@ variables: - &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 |- @@ -221,6 +222,12 @@ pipeline: 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 @@ -239,7 +246,7 @@ pipeline: test-inst-buster-bin: image: *deb_test_image_buster - group: pkg-test-3 + group: pkg-test-4 commands: - ./.ci-make.sh install-run-test ./forgejo-bin_*_amd64.deb when: @@ -271,7 +278,15 @@ pipeline: test-inst-kinetic-bin: image: *deb_test_image_kinetic - group: pkg-test-4 + 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: From 443f51525bb7c242cbe4ca6940d08d1d9f8a1ae5 Mon Sep 17 00:00:00 2001 From: crystal Date: Fri, 23 Jun 2023 03:49:19 -0600 Subject: [PATCH 011/172] fix apt upload script --- .ci-forgejo-apt.sh | 3 ++- .crystalintegration.yml | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.ci-forgejo-apt.sh b/.ci-forgejo-apt.sh index d474e28..27983c7 100755 --- a/.ci-forgejo-apt.sh +++ b/.ci-forgejo-apt.sh @@ -1,5 +1,6 @@ #!/bin/sh for deb in "$@" ; do - curl -H "Authorization: token $FORGEJO_KEY" --upload-file $deb $FORGEJO_SITE/api/packages/$FORGEJO_OWNER/debian/pool/$DEBIAN_DIST/$DEBIAN_COMPONENT/upload + curl -X PUT -H "Authorization: token $FORGEJO_KEY" -T "$deb" $FORGEJO_SITE/api/packages/$FORGEJO_OWNER/debian/pool/$DEBIAN_DIST/$DEBIAN_COMPONENT/upload + exit $? done diff --git a/.crystalintegration.yml b/.crystalintegration.yml index b7bef8e..c54e4e2 100644 --- a/.crystalintegration.yml +++ b/.crystalintegration.yml @@ -6,7 +6,7 @@ when: 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' + - &forgejo_test_image 'codeberg.org/forgejo/test_env:1.20' - &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' @@ -333,4 +333,4 @@ pipeline: secrets: [ cfo_api_key ] commands: - export FORGEJO_KEY=$CFO_API_KEY - - ./.ci-forgejo-apt.sh "*.deb" + - ./.ci-forgejo-apt.sh *.deb From a7f8f74bea844d3f4765bcf94950091fdc151e17 Mon Sep 17 00:00:00 2001 From: crystal Date: Sun, 2 Jul 2023 10:05:42 -0600 Subject: [PATCH 012/172] further apt repo upload fixes --- .ci-forgejo-apt.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.ci-forgejo-apt.sh b/.ci-forgejo-apt.sh index 27983c7..8a20937 100755 --- a/.ci-forgejo-apt.sh +++ b/.ci-forgejo-apt.sh @@ -1,6 +1,8 @@ #!/bin/sh +EXIT_TOTAL=0 for deb in "$@" ; do curl -X PUT -H "Authorization: token $FORGEJO_KEY" -T "$deb" $FORGEJO_SITE/api/packages/$FORGEJO_OWNER/debian/pool/$DEBIAN_DIST/$DEBIAN_COMPONENT/upload - exit $? + EXIT_TOTAL=$EXIT_TOTAL+$? done +exit $EXIT_TOTAL From 8d0e380c27f580e6b9ba7e15a153ddecff33d21f Mon Sep 17 00:00:00 2001 From: crystal Date: Sun, 2 Jul 2023 10:48:17 -0600 Subject: [PATCH 013/172] Forgejo v1.20.0-3-rc1 --- deb/debian/changelog | 7 +++++++ forgejo | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/deb/debian/changelog b/deb/debian/changelog index bdaf076..c94b886 100644 --- a/deb/debian/changelog +++ b/deb/debian/changelog @@ -1,3 +1,10 @@ +forgejo (1.20.0.3-0) unstable; urgency=medium + + * Forgejo version 1.20.0-3-rc1 + * This is a pre-release version, install for testing only + + -- crystal Wed, 2 Jul 2023 16:45:00 +0000 + forgejo (1.19.3.0-1) unstable; urgency=medium * Forgejo version 1.19.3-0 diff --git a/forgejo b/forgejo index 7b305fb..b1257f3 160000 --- a/forgejo +++ b/forgejo @@ -1 +1 @@ -Subproject commit 7b305fb785671ac0ccb5c1fa5c892e9f70e7b606 +Subproject commit b1257f32cc31ced3402cdfeac427f9fccba5445a From 2bd276bd0da35ffed77a21f38cb95c848573c7b9 Mon Sep 17 00:00:00 2001 From: crystal Date: Sun, 2 Jul 2023 11:01:49 -0600 Subject: [PATCH 014/172] use let for math --- .ci-forgejo-apt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ci-forgejo-apt.sh b/.ci-forgejo-apt.sh index 8a20937..7876e28 100755 --- a/.ci-forgejo-apt.sh +++ b/.ci-forgejo-apt.sh @@ -3,6 +3,6 @@ EXIT_TOTAL=0 for deb in "$@" ; do curl -X PUT -H "Authorization: token $FORGEJO_KEY" -T "$deb" $FORGEJO_SITE/api/packages/$FORGEJO_OWNER/debian/pool/$DEBIAN_DIST/$DEBIAN_COMPONENT/upload - EXIT_TOTAL=$EXIT_TOTAL+$? + let EXIT_TOTAL=$EXIT_TOTAL+$? done exit $EXIT_TOTAL From ce9f5ba856c63b52b894e6c496a920c54c79b82b Mon Sep 17 00:00:00 2001 From: crystal Date: Sun, 2 Jul 2023 11:12:54 -0600 Subject: [PATCH 015/172] prerelease tag --- .crystalintegration.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.crystalintegration.yml b/.crystalintegration.yml index c54e4e2..59275f8 100644 --- a/.crystalintegration.yml +++ b/.crystalintegration.yml @@ -302,7 +302,7 @@ pipeline: - "*.deb.sha256" api_key: from_secret: sc_api_key - prerelease: false + prerelease: true skip_verify: true when: event: [ tag ] @@ -317,7 +317,7 @@ pipeline: - "*.deb.sha256" api_key: from_secret: cb_api_key - prerelease: false + prerelease: true skip_verify: true when: event: [ tag ] From 4cb4499a8b4e19843c00f95d5cecf85b28aff671 Mon Sep 17 00:00:00 2001 From: crystal Date: Sun, 2 Jul 2023 11:15:34 -0600 Subject: [PATCH 016/172] experimental bin-dl --- .ci-make.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.ci-make.sh b/.ci-make.sh index e49599b..6b3268a 100755 --- a/.ci-make.sh +++ b/.ci-make.sh @@ -4,6 +4,7 @@ CI_VERIFY_API="https://codeberg.org" # Query the Forgejo API at this URL to chec CI_VERIFY_REPO="forgejo/forgejo" # Check this repo at the Forgejo API for upstream CI status CI_VERIFY_RETRY_TIME=120 # How long to wait in seconds before retrying if the pipeline is pending CI_VERIFY_RETRY_COUNT=30 # How many times to retry before giving up if the pipeline is pending +BIN_DL_REPO="forgejo-experimental/forgejo" # Use experimental repo for RC binary download case "$1" in "submodule-build") @@ -44,7 +45,7 @@ case "$1" in ;; "download-binary") 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_ASSETS=$(curl $CI_VERIFY_API/api/v1/repos/$BIN_DL_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 From 76ebdef59c92bd2081525f786968dfea59373206 Mon Sep 17 00:00:00 2001 From: crystal Date: Sun, 2 Jul 2023 11:19:16 -0600 Subject: [PATCH 017/172] push to apt repo on tag --- .crystalintegration.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.crystalintegration.yml b/.crystalintegration.yml index 59275f8..e680994 100644 --- a/.crystalintegration.yml +++ b/.crystalintegration.yml @@ -334,3 +334,5 @@ pipeline: commands: - export FORGEJO_KEY=$CFO_API_KEY - ./.ci-forgejo-apt.sh *.deb + when: + event: [ tag ] From d8be48f7827e992f3426f1a2d1ac33c58289196b Mon Sep 17 00:00:00 2001 From: crystal Date: Sun, 2 Jul 2023 11:21:05 -0600 Subject: [PATCH 018/172] fix command formatting --- .crystalintegration.yml | 90 ++++++++++++++++++++--------------------- 1 file changed, 45 insertions(+), 45 deletions(-) diff --git a/.crystalintegration.yml b/.crystalintegration.yml index e680994..843aa7f 100644 --- a/.crystalintegration.yml +++ b/.crystalintegration.yml @@ -47,9 +47,9 @@ pipeline: image: *ci_verify_image pull: true commands: - - git config --add safe.directory '*' - - git fetch --tags --force - - git submodule foreach 'git fetch --tags --force' + - git config --add safe.directory '*' + - git fetch --tags --force + - git submodule foreach 'git fetch --tags --force' ci-verify: image: *ci_verify_image @@ -57,7 +57,7 @@ pipeline: environment: BUILD_SUBMODULE: *build_submodule commands: - - ./.ci-make.sh ci-verify "$BUILD_SUBMODULE" + - ./.ci-make.sh ci-verify "$BUILD_SUBMODULE" deps-frontend: image: *nodejs_image @@ -65,7 +65,7 @@ pipeline: environment: BUILD_SUBMODULE: *build_submodule commands: - - ./.ci-make.sh submodule-make "$BUILD_SUBMODULE" deps-frontend + - ./.ci-make.sh submodule-make "$BUILD_SUBMODULE" deps-frontend deps-backend: image: *golang_image @@ -76,16 +76,16 @@ pipeline: secrets: - goproxy_default commands: - - *goproxy_setup - - ./.ci-make.sh submodule-make "$BUILD_SUBMODULE" deps-backend + - *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) + - cd "$BUILD_SUBMODULE" + - git update-ref refs/heads/tag_test $(git rev-parse --verify HEAD) security-check: image: *golang_image @@ -96,8 +96,8 @@ pipeline: secrets: - goproxy_default commands: - - *goproxy_setup - - ./.ci-make.sh submodule-make "$BUILD_SUBMODULE" security-check + - *goproxy_setup + - ./.ci-make.sh submodule-make "$BUILD_SUBMODULE" security-check build-frontend: image: *nodejs_image @@ -105,7 +105,7 @@ pipeline: environment: BUILD_SUBMODULE: *build_submodule commands: - - ./.ci-make.sh submodule-make "$BUILD_SUBMODULE" frontend + - ./.ci-make.sh submodule-make "$BUILD_SUBMODULE" frontend checks-backend: image: *forgejo_test_image @@ -116,14 +116,14 @@ pipeline: secrets: - goproxy_default commands: - - *goproxy_setup - - ./.ci-make.sh submodule-make "$BUILD_SUBMODULE" checks-backend + - *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 + - ./.ci-make.sh download-binary forgejo-bin-dl when: event: [ tag ] @@ -138,8 +138,8 @@ pipeline: secrets: - goproxy_default commands: - - *goproxy_setup - - ./.ci-make.sh submodule-build "$BUILD_SUBMODULE" forgejo-bin + - *goproxy_setup + - ./.ci-make.sh submodule-build "$BUILD_SUBMODULE" forgejo-bin build-forgejo-sqlite-amd64: image: *golang_image @@ -151,88 +151,88 @@ pipeline: secrets: - goproxy_default commands: - - *goproxy_setup - - ./.ci-make.sh submodule-build "$BUILD_SUBMODULE" forgejo-sqlite-bin + - *goproxy_setup + - ./.ci-make.sh submodule-build "$BUILD_SUBMODULE" forgejo-sqlite-bin package-bullseye: image: *deb_build_image commands: - - ./.ci-make.sh package-prep - - ./.ci-make.sh package-build - - ./.ci-make.sh package-clean + - ./.ci-make.sh package-prep + - ./.ci-make.sh package-build + - ./.ci-make.sh package-clean gen-sha256: image: *ci_verify_image commands: - - ./.ci-make.sh pkg-gen-sha256 - - ./.ci-make.sh preview-sha256 + - ./.ci-make.sh pkg-gen-sha256 + - ./.ci-make.sh preview-sha256 test-inst-bullseye: image: *deb_test_image_bullseye group: pkg-test-1 commands: - - ./.ci-make.sh install-run-test ./forgejo_*_amd64.deb + - ./.ci-make.sh install-run-test ./forgejo_*_amd64.deb test-inst-bullseye-user: image: *deb_test_image_bullseye group: pkg-test-1 commands: - - ./.ci-make.sh test-userinst-prep - - ./.ci-make.sh install-run-test ./forgejo_*_amd64.deb + - ./.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 + - ./.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 + - ./.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 + - ./.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 + - ./.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 + - ./.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 + - ./.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 + - ./.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 + - ./.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 + - ./.ci-make.sh install-run-test ./forgejo-bin_*_amd64.deb when: event: [ tag ] @@ -240,7 +240,7 @@ pipeline: image: *deb_test_image_bookworm group: pkg-test-3 commands: - - ./.ci-make.sh install-run-test ./forgejo-bin_*_amd64.deb + - ./.ci-make.sh install-run-test ./forgejo-bin_*_amd64.deb when: event: [ tag ] @@ -248,7 +248,7 @@ pipeline: image: *deb_test_image_buster group: pkg-test-4 commands: - - ./.ci-make.sh install-run-test ./forgejo-bin_*_amd64.deb + - ./.ci-make.sh install-run-test ./forgejo-bin_*_amd64.deb when: event: [ tag ] @@ -256,7 +256,7 @@ pipeline: image: *deb_test_image_sid group: pkg-test-4 commands: - - ./.ci-make.sh install-run-test ./forgejo-bin_*_amd64.deb + - ./.ci-make.sh install-run-test ./forgejo-bin_*_amd64.deb when: event: [ tag ] @@ -264,7 +264,7 @@ pipeline: image: *deb_test_image_jammy group: pkg-test-4 commands: - - ./.ci-make.sh install-run-test ./forgejo-bin_*_amd64.deb + - ./.ci-make.sh install-run-test ./forgejo-bin_*_amd64.deb when: event: [ tag ] @@ -272,7 +272,7 @@ pipeline: image: *deb_test_image_focal group: pkg-test-4 commands: - - ./.ci-make.sh install-run-test ./forgejo-bin_*_amd64.deb + - ./.ci-make.sh install-run-test ./forgejo-bin_*_amd64.deb when: event: [ tag ] @@ -280,7 +280,7 @@ pipeline: image: *deb_test_image_kinetic group: pkg-test-5 commands: - - ./.ci-make.sh install-run-test ./forgejo-bin_*_amd64.deb + - ./.ci-make.sh install-run-test ./forgejo-bin_*_amd64.deb when: event: [ tag ] @@ -288,7 +288,7 @@ pipeline: image: *deb_test_image_lunar group: pkg-test-5 commands: - - ./.ci-make.sh install-run-test ./forgejo-bin_*_amd64.deb + - ./.ci-make.sh install-run-test ./forgejo-bin_*_amd64.deb when: event: [ tag ] @@ -332,7 +332,7 @@ pipeline: DEBIAN_COMPONENT: forgejo secrets: [ cfo_api_key ] commands: - - export FORGEJO_KEY=$CFO_API_KEY - - ./.ci-forgejo-apt.sh *.deb + - export FORGEJO_KEY=$CFO_API_KEY + - ./.ci-forgejo-apt.sh *.deb when: event: [ tag ] From a1451000e87e6043f2e46a6faa05f666094ce225 Mon Sep 17 00:00:00 2001 From: crystal Date: Sun, 2 Jul 2023 11:23:39 -0600 Subject: [PATCH 019/172] test against bookworm --- .crystalintegration.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.crystalintegration.yml b/.crystalintegration.yml index 843aa7f..7d13979 100644 --- a/.crystalintegration.yml +++ b/.crystalintegration.yml @@ -167,14 +167,14 @@ pipeline: - ./.ci-make.sh pkg-gen-sha256 - ./.ci-make.sh preview-sha256 - test-inst-bullseye: - image: *deb_test_image_bullseye + test-inst-bookworm: + image: *deb_test_image_bookworm group: pkg-test-1 commands: - ./.ci-make.sh install-run-test ./forgejo_*_amd64.deb - test-inst-bullseye-user: - image: *deb_test_image_bullseye + test-inst-bookworm-user: + image: *deb_test_image_bookworm group: pkg-test-1 commands: - ./.ci-make.sh test-userinst-prep From 8a18a327c0aa7a4da7df18077fc0acc78c8719b3 Mon Sep 17 00:00:00 2001 From: crystal Date: Sun, 2 Jul 2023 11:24:16 -0600 Subject: [PATCH 020/172] repo dist bullseye since we build against bullseye --- .crystalintegration.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.crystalintegration.yml b/.crystalintegration.yml index 7d13979..6799110 100644 --- a/.crystalintegration.yml +++ b/.crystalintegration.yml @@ -328,7 +328,7 @@ pipeline: environment: FORGEJO_SITE: https://code.forgejo.org FORGEJO_OWNER: crystal - DEBIAN_DIST: any + DEBIAN_DIST: bullseye DEBIAN_COMPONENT: forgejo secrets: [ cfo_api_key ] commands: From 9cf42bdea87ee1bf4f31920b93bd913e6109d28c Mon Sep 17 00:00:00 2001 From: crystal Date: Sun, 2 Jul 2023 11:32:19 -0600 Subject: [PATCH 021/172] use experimental repo component --- .crystalintegration.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.crystalintegration.yml b/.crystalintegration.yml index 6799110..f36680e 100644 --- a/.crystalintegration.yml +++ b/.crystalintegration.yml @@ -329,7 +329,7 @@ pipeline: FORGEJO_SITE: https://code.forgejo.org FORGEJO_OWNER: crystal DEBIAN_DIST: bullseye - DEBIAN_COMPONENT: forgejo + DEBIAN_COMPONENT: forgejo-experimental secrets: [ cfo_api_key ] commands: - export FORGEJO_KEY=$CFO_API_KEY From 7645a4737f9719521030c0db810cfb894d901225 Mon Sep 17 00:00:00 2001 From: crystal Date: Sun, 2 Jul 2023 11:42:14 -0600 Subject: [PATCH 022/172] POSIX math --- .ci-forgejo-apt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ci-forgejo-apt.sh b/.ci-forgejo-apt.sh index 7876e28..117e412 100755 --- a/.ci-forgejo-apt.sh +++ b/.ci-forgejo-apt.sh @@ -3,6 +3,6 @@ EXIT_TOTAL=0 for deb in "$@" ; do curl -X PUT -H "Authorization: token $FORGEJO_KEY" -T "$deb" $FORGEJO_SITE/api/packages/$FORGEJO_OWNER/debian/pool/$DEBIAN_DIST/$DEBIAN_COMPONENT/upload - let EXIT_TOTAL=$EXIT_TOTAL+$? + EXIT_TOTAL=$(($EXIT_TOTAL+$?)) done exit $EXIT_TOTAL From 73da6b9d0d32fb7312037e2c209c45b91661c15b Mon Sep 17 00:00:00 2001 From: crystal Date: Sun, 2 Jul 2023 15:15:20 -0600 Subject: [PATCH 023/172] repo deb The repository can be added to the system by installing a package. The location of the repository can be changed in the future by pushing an update to the repo deb. --- .crystalintegration.yml | 6 ++++ repo-deb/build.sh | 13 +++++++++ repo-deb/code-forgejo-org-crystal.asc | 29 +++++++++++++++++++ repo-deb/forgejo-deb.list | 1 + repo-deb/main/debian/changelog | 5 ++++ repo-deb/main/debian/compat | 1 + repo-deb/main/debian/control | 19 ++++++++++++ repo-deb/main/debian/forgejo-deb-repo.install | 1 + .../main/debian/forgejo-deb-repokey.install | 1 + repo-deb/main/debian/rules | 4 +++ repo-deb/stub/debian/changelog | 5 ++++ repo-deb/stub/debian/compat | 1 + repo-deb/stub/debian/control | 12 ++++++++ repo-deb/stub/debian/forgejo-deb-repo.install | 2 ++ repo-deb/stub/debian/rules | 4 +++ 15 files changed, 104 insertions(+) create mode 100755 repo-deb/build.sh create mode 100644 repo-deb/code-forgejo-org-crystal.asc create mode 100644 repo-deb/forgejo-deb.list create mode 100644 repo-deb/main/debian/changelog create mode 100644 repo-deb/main/debian/compat create mode 100644 repo-deb/main/debian/control create mode 100644 repo-deb/main/debian/forgejo-deb-repo.install create mode 100644 repo-deb/main/debian/forgejo-deb-repokey.install create mode 100755 repo-deb/main/debian/rules create mode 100644 repo-deb/stub/debian/changelog create mode 100644 repo-deb/stub/debian/compat create mode 100644 repo-deb/stub/debian/control create mode 100644 repo-deb/stub/debian/forgejo-deb-repo.install create mode 100755 repo-deb/stub/debian/rules diff --git a/.crystalintegration.yml b/.crystalintegration.yml index f36680e..274b3d6 100644 --- a/.crystalintegration.yml +++ b/.crystalintegration.yml @@ -160,6 +160,12 @@ pipeline: - ./.ci-make.sh package-prep - ./.ci-make.sh package-build - ./.ci-make.sh package-clean + + package-repo: + image: *deb_build_image + commands: + - cd repo-deb + - ./build.sh gen-sha256: image: *ci_verify_image diff --git a/repo-deb/build.sh b/repo-deb/build.sh new file mode 100755 index 0000000..5870d0e --- /dev/null +++ b/repo-deb/build.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +cp code-forgejo-org-crystal.asc stub/ +cp code-forgejo-org-crystal.asc main/ +cp forgejo-deb.list stub/ +cp forgejo-deb.list main/ +cd stub +dpkg-buildpackage -b +cd .. +cd main +dpkg-buildpackage -b +cd .. +exit 0 diff --git a/repo-deb/code-forgejo-org-crystal.asc b/repo-deb/code-forgejo-org-crystal.asc new file mode 100644 index 0000000..e8ee1c5 --- /dev/null +++ b/repo-deb/code-forgejo-org-crystal.asc @@ -0,0 +1,29 @@ +-----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+P7P5Hy9JSVjL1qlttE8Zn1WQFm5L +LuGnhu0fTrtSKZa7+yIv6q4eNyKauJlcllANr51lgujcLjob8T7TLPrIpjLODGB3 +dRqF6Mdn3UXNXv2twVqLVKuzaRSwT9H/J4oaFpuvOv2EJpECawNOe8PIzsBNBGSV +becBCACpoCecK1oT++JiFuRloEgpGQW2QiD6IWk0kpqCSt5qzPAGu1CCyRoQUTfX +jS/ClwIM0YRdowgeuLcNRk+0jFjFGKPa5zRXXxuq1ZBMUKLQ7I0VUGKN4UqLQ6OU +kIrSknL75IiwnOsMoKXU9QPr/fzQlh0lLNfjL3FOmh16/QoWcTnSWZjhGvwkFFx4 +4T3mpeD2Y+Lsx8Psi4ZORv+ODxsb0piRUEIe2nq2Uav9Qj9YLd+rzenG0qcTN46A +oqwumuUBRxGn2WWkTf1ZnTWS36WDw1bWEzgwvvlz7NRwEXg16SBwbR/9bnWx359h +AaWBy3A1c3hBaQLPXzCpQnasbMAdABEBAAHCwF8EGAEIABMFAmSVbecJEBaabmtc +4lggAhsMAACWcwgALSpBKXv4SX2VAVCo1GKUO8FT/dpgAP6u788fdorQBlS7TUTz +wqEB/wVuSjOER04DdOOXH5up9ikZhaTa03uL4UXeHsPL9qaUQ+Y1Avn8FHpR3647 +O+f0+iEiROtNfLuNWNYISHwJB644m2xsMG9bohLU2h78yS0ToZlt5hvoTpTNKO1g +9lUM7u2i5DBDBQnUBfp6nKou9gMH2CHgB4W4Gc36b7sgU7AQt095yfbfdIjaHl7a +wikaAx/cMShI0lJudDs60qUfxfKfEQBcexJMiEiZbF6dPzQ6OQm9lcmkuhNAX6MP +zuNnZsilht/BDYeKWqmwdfXFxcdZ/BX/oitwkA== +=hNbH +-----END PGP PUBLIC KEY BLOCK----- diff --git a/repo-deb/forgejo-deb.list b/repo-deb/forgejo-deb.list new file mode 100644 index 0000000..7d9891d --- /dev/null +++ b/repo-deb/forgejo-deb.list @@ -0,0 +1 @@ +deb https://code.forgejo.org/api/packages/crystal/debian bullseye forgejo diff --git a/repo-deb/main/debian/changelog b/repo-deb/main/debian/changelog new file mode 100644 index 0000000..fbc2deb --- /dev/null +++ b/repo-deb/main/debian/changelog @@ -0,0 +1,5 @@ +forgejo-deb-repo (1-0) unstable; urgency=medium + + * This is a pre-release version, install for testing only + + -- crystal Wed, 2 Jul 2023 19:59:00 +0000 diff --git a/repo-deb/main/debian/compat b/repo-deb/main/debian/compat new file mode 100644 index 0000000..f599e28 --- /dev/null +++ b/repo-deb/main/debian/compat @@ -0,0 +1 @@ +10 diff --git a/repo-deb/main/debian/control b/repo-deb/main/debian/control new file mode 100644 index 0000000..bc65394 --- /dev/null +++ b/repo-deb/main/debian/control @@ -0,0 +1,19 @@ +Source: forgejo-deb-repo +Section: admin +Priority: optional +Maintainer: crystal +Build-Depends: debhelper (>= 10) + +Package: forgejo-deb-repo +Architecture: all +Priority: optional +Depends: forgejo-deb-repokey, apt-transport-https +Description: APT Repository for forgejo-deb builds + Forgejo will be updated via apt along with other software on your system + +Package: forgejo-deb-repokey +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 diff --git a/repo-deb/main/debian/forgejo-deb-repo.install b/repo-deb/main/debian/forgejo-deb-repo.install new file mode 100644 index 0000000..020f975 --- /dev/null +++ b/repo-deb/main/debian/forgejo-deb-repo.install @@ -0,0 +1 @@ +forgejo-deb.list /etc/apt/sources.list.d diff --git a/repo-deb/main/debian/forgejo-deb-repokey.install b/repo-deb/main/debian/forgejo-deb-repokey.install new file mode 100644 index 0000000..59d9c5c --- /dev/null +++ b/repo-deb/main/debian/forgejo-deb-repokey.install @@ -0,0 +1 @@ +code-forgejo-org-crystal.asc /etc/apt/trusted.gpg.d diff --git a/repo-deb/main/debian/rules b/repo-deb/main/debian/rules new file mode 100755 index 0000000..d1decc8 --- /dev/null +++ b/repo-deb/main/debian/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + dh $@ --with=systemd diff --git a/repo-deb/stub/debian/changelog b/repo-deb/stub/debian/changelog new file mode 100644 index 0000000..3bd974a --- /dev/null +++ b/repo-deb/stub/debian/changelog @@ -0,0 +1,5 @@ +forgejo-deb-repo (0-0) unstable; urgency=medium + + * forgejo-deb APT repository stub + + -- crystal Wed, 2 Jul 2023 20:30:00 +0000 diff --git a/repo-deb/stub/debian/compat b/repo-deb/stub/debian/compat new file mode 100644 index 0000000..f599e28 --- /dev/null +++ b/repo-deb/stub/debian/compat @@ -0,0 +1 @@ +10 diff --git a/repo-deb/stub/debian/control b/repo-deb/stub/debian/control new file mode 100644 index 0000000..be4c77e --- /dev/null +++ b/repo-deb/stub/debian/control @@ -0,0 +1,12 @@ +Source: forgejo-deb-repo +Section: admin +Priority: optional +Maintainer: crystal +Build-Depends: debhelper (>= 10) + +Package: forgejo-deb-repo +Architecture: all +Priority: optional +Depends: apt-transport-https +Description: APT Repository for forgejo-deb builds + Forgejo will be updated via apt along with other software on your system diff --git a/repo-deb/stub/debian/forgejo-deb-repo.install b/repo-deb/stub/debian/forgejo-deb-repo.install new file mode 100644 index 0000000..f81b739 --- /dev/null +++ b/repo-deb/stub/debian/forgejo-deb-repo.install @@ -0,0 +1,2 @@ +code-forgejo-org-crystal.asc /etc/apt/trusted.gpg.d +forgejo-deb.list /etc/apt/sources.list.d diff --git a/repo-deb/stub/debian/rules b/repo-deb/stub/debian/rules new file mode 100755 index 0000000..d1decc8 --- /dev/null +++ b/repo-deb/stub/debian/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + dh $@ --with=systemd From 8376162acf353712d00d2764a272e9272299ee14 Mon Sep 17 00:00:00 2001 From: crystal Date: Sun, 2 Jul 2023 15:46:48 -0600 Subject: [PATCH 024/172] add ci test for repo --- .ci-make.sh | 14 ++++++++++++++ .crystalintegration.yml | 6 ++++++ 2 files changed, 20 insertions(+) diff --git a/.ci-make.sh b/.ci-make.sh index 6b3268a..83b1de3 100755 --- a/.ci-make.sh +++ b/.ci-make.sh @@ -116,5 +116,19 @@ case "$1" in curl http://localhost:3000/ exit $? ;; + "install-repo-test") + apt update + apt install -y ./"$2" + apt update + apt upgrade -y + apt update + apt install "$3" + sudo -u forgejo USER=forgejo \ + HOME=/var/lib/forgejo GITEA_WORK_DIR=/var/lib/forgejo \ + forgejo --web --config /etc/fogejo/app.ini & + sleep 10 + curl http://localhost:3000/ + exit $? + ;; esac diff --git a/.crystalintegration.yml b/.crystalintegration.yml index 274b3d6..fcc249a 100644 --- a/.crystalintegration.yml +++ b/.crystalintegration.yml @@ -297,6 +297,12 @@ pipeline: - ./.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 From d7fb796bd8acd963e68822fddb9705f96fb02e12 Mon Sep 17 00:00:00 2001 From: crystal Date: Sun, 2 Jul 2023 15:57:53 -0600 Subject: [PATCH 025/172] fix changelog errors --- deb/debian/changelog | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deb/debian/changelog b/deb/debian/changelog index c94b886..200d0f8 100644 --- a/deb/debian/changelog +++ b/deb/debian/changelog @@ -3,12 +3,12 @@ forgejo (1.20.0.3-0) unstable; urgency=medium * Forgejo version 1.20.0-3-rc1 * This is a pre-release version, install for testing only - -- crystal Wed, 2 Jul 2023 16:45:00 +0000 + -- crystal Sun, 2 Jul 2023 16:45:00 +0000 forgejo (1.19.3.0-1) unstable; urgency=medium * Forgejo version 1.19.3-0 - * See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md$1-19-3-0 + * See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#1-19-3-0 -- crystal Wed, 3 May 2023 21:54:00 +0000 From d839ec3bd4674f944a2709a064ced8502071f1ac Mon Sep 17 00:00:00 2001 From: crystal Date: Sun, 2 Jul 2023 15:59:00 -0600 Subject: [PATCH 026/172] fix changelogs --- repo-deb/main/debian/changelog | 2 +- repo-deb/stub/debian/changelog | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/repo-deb/main/debian/changelog b/repo-deb/main/debian/changelog index fbc2deb..58d4a00 100644 --- a/repo-deb/main/debian/changelog +++ b/repo-deb/main/debian/changelog @@ -2,4 +2,4 @@ forgejo-deb-repo (1-0) unstable; urgency=medium * This is a pre-release version, install for testing only - -- crystal Wed, 2 Jul 2023 19:59:00 +0000 + -- crystal Sun, 2 Jul 2023 19:59:00 +0000 diff --git a/repo-deb/stub/debian/changelog b/repo-deb/stub/debian/changelog index 3bd974a..1a98b87 100644 --- a/repo-deb/stub/debian/changelog +++ b/repo-deb/stub/debian/changelog @@ -2,4 +2,4 @@ forgejo-deb-repo (0-0) unstable; urgency=medium * forgejo-deb APT repository stub - -- crystal Wed, 2 Jul 2023 20:30:00 +0000 + -- crystal Sun, 2 Jul 2023 20:30:00 +0000 From 94704f031594681ee7f0c87cade4d15360055e9d Mon Sep 17 00:00:00 2001 From: crystal Date: Sun, 2 Jul 2023 23:27:42 -0600 Subject: [PATCH 027/172] fix repo test --- .ci-make.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ci-make.sh b/.ci-make.sh index 83b1de3..e20e74f 100755 --- a/.ci-make.sh +++ b/.ci-make.sh @@ -125,7 +125,7 @@ case "$1" in apt install "$3" sudo -u forgejo USER=forgejo \ HOME=/var/lib/forgejo GITEA_WORK_DIR=/var/lib/forgejo \ - forgejo --web --config /etc/fogejo/app.ini & + forgejo web --config /etc/fogejo/app.ini & sleep 10 curl http://localhost:3000/ exit $? From b0d67926a15e17965850625cd72bf7d25ce9c860 Mon Sep 17 00:00:00 2001 From: crystal Date: Sun, 2 Jul 2023 23:31:37 -0600 Subject: [PATCH 028/172] fix changelog --- deb/debian/changelog | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deb/debian/changelog b/deb/debian/changelog index 200d0f8..4a695e3 100644 --- a/deb/debian/changelog +++ b/deb/debian/changelog @@ -3,21 +3,21 @@ forgejo (1.20.0.3-0) unstable; urgency=medium * Forgejo version 1.20.0-3-rc1 * This is a pre-release version, install for testing only - -- crystal Sun, 2 Jul 2023 16:45:00 +0000 + -- crystal Sun, 2 Jul 2023 16:45:00 +0000 forgejo (1.19.3.0-1) unstable; urgency=medium * Forgejo version 1.19.3-0 * See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#1-19-3-0 - -- crystal Wed, 3 May 2023 21:54:00 +0000 + -- crystal Wed, 3 May 2023 21:54:00 +0000 forgejo (1.19.2.0-1) unstable; urgency=medium * Forgejo version 1.19.2-0 * See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#1-19-2-0 - -- crystal Sat, 29 Apr 2023 16:11:00 +0000 + -- crystal Sat, 29 Apr 2023 16:11:00 +0000 forgejo (1.19.0.3-1) unstable; urgency=medium From 864172217ff40e2c88fcbff87d83dac38aefc3e9 Mon Sep 17 00:00:00 2001 From: crystal Date: Sun, 2 Jul 2023 23:32:26 -0600 Subject: [PATCH 029/172] fix repo changelog --- repo-deb/main/debian/changelog | 2 +- repo-deb/stub/debian/changelog | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/repo-deb/main/debian/changelog b/repo-deb/main/debian/changelog index 58d4a00..28331f0 100644 --- a/repo-deb/main/debian/changelog +++ b/repo-deb/main/debian/changelog @@ -2,4 +2,4 @@ forgejo-deb-repo (1-0) unstable; urgency=medium * This is a pre-release version, install for testing only - -- crystal Sun, 2 Jul 2023 19:59:00 +0000 + -- crystal Sun, 2 Jul 2023 19:59:00 +0000 diff --git a/repo-deb/stub/debian/changelog b/repo-deb/stub/debian/changelog index 1a98b87..593d48f 100644 --- a/repo-deb/stub/debian/changelog +++ b/repo-deb/stub/debian/changelog @@ -2,4 +2,4 @@ forgejo-deb-repo (0-0) unstable; urgency=medium * forgejo-deb APT repository stub - -- crystal Sun, 2 Jul 2023 20:30:00 +0000 + -- crystal Sun, 2 Jul 2023 20:30:00 +0000 From 785a55c5644141622ede22021a42a5ac542eaa5c Mon Sep 17 00:00:00 2001 From: crystal Date: Sun, 2 Jul 2023 23:36:05 -0600 Subject: [PATCH 030/172] Revert "use experimental repo component" This reverts commit 9cf42bdea87ee1bf4f31920b93bd913e6109d28c. --- .crystalintegration.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.crystalintegration.yml b/.crystalintegration.yml index fcc249a..0bb7107 100644 --- a/.crystalintegration.yml +++ b/.crystalintegration.yml @@ -341,7 +341,7 @@ pipeline: FORGEJO_SITE: https://code.forgejo.org FORGEJO_OWNER: crystal DEBIAN_DIST: bullseye - DEBIAN_COMPONENT: forgejo-experimental + DEBIAN_COMPONENT: forgejo secrets: [ cfo_api_key ] commands: - export FORGEJO_KEY=$CFO_API_KEY From 665cf43e60414b9d74af7cbe9d085cf27f0028ca Mon Sep 17 00:00:00 2001 From: crystal Date: Sun, 2 Jul 2023 23:37:15 -0600 Subject: [PATCH 031/172] Revert "prerelease tag" This reverts commit ce9f5ba856c63b52b894e6c496a920c54c79b82b. --- .crystalintegration.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.crystalintegration.yml b/.crystalintegration.yml index 0bb7107..10cfa12 100644 --- a/.crystalintegration.yml +++ b/.crystalintegration.yml @@ -314,7 +314,7 @@ pipeline: - "*.deb.sha256" api_key: from_secret: sc_api_key - prerelease: true + prerelease: false skip_verify: true when: event: [ tag ] @@ -329,7 +329,7 @@ pipeline: - "*.deb.sha256" api_key: from_secret: cb_api_key - prerelease: true + prerelease: false skip_verify: true when: event: [ tag ] From ebdaf0279f5f7520e60f551b5d47c5183695b85d Mon Sep 17 00:00:00 2001 From: crystal Date: Sun, 2 Jul 2023 23:37:17 -0600 Subject: [PATCH 032/172] Revert "experimental bin-dl" This reverts commit 4cb4499a8b4e19843c00f95d5cecf85b28aff671. --- .ci-make.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.ci-make.sh b/.ci-make.sh index e20e74f..5f8bd50 100755 --- a/.ci-make.sh +++ b/.ci-make.sh @@ -4,7 +4,6 @@ CI_VERIFY_API="https://codeberg.org" # Query the Forgejo API at this URL to chec CI_VERIFY_REPO="forgejo/forgejo" # Check this repo at the Forgejo API for upstream CI status CI_VERIFY_RETRY_TIME=120 # How long to wait in seconds before retrying if the pipeline is pending CI_VERIFY_RETRY_COUNT=30 # How many times to retry before giving up if the pipeline is pending -BIN_DL_REPO="forgejo-experimental/forgejo" # Use experimental repo for RC binary download case "$1" in "submodule-build") @@ -45,7 +44,7 @@ case "$1" in ;; "download-binary") if [ $CI_COMMIT_TAG ] ; then - CI_RELEASE_ASSETS=$(curl $CI_VERIFY_API/api/v1/repos/$BIN_DL_REPO/releases/tags/$CI_COMMIT_TAG | jq -c '.assets[]' | grep linux-amd64) + 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 From 3ceea43baf52112c0c39bb4bf0e8d5a225e4e4cf Mon Sep 17 00:00:00 2001 From: crystal Date: Sun, 2 Jul 2023 23:44:21 -0600 Subject: [PATCH 033/172] release candidate tag --- .ci-make.sh | 3 ++- .crystalintegration.yml | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.ci-make.sh b/.ci-make.sh index 5f8bd50..e20e74f 100755 --- a/.ci-make.sh +++ b/.ci-make.sh @@ -4,6 +4,7 @@ CI_VERIFY_API="https://codeberg.org" # Query the Forgejo API at this URL to chec CI_VERIFY_REPO="forgejo/forgejo" # Check this repo at the Forgejo API for upstream CI status CI_VERIFY_RETRY_TIME=120 # How long to wait in seconds before retrying if the pipeline is pending CI_VERIFY_RETRY_COUNT=30 # How many times to retry before giving up if the pipeline is pending +BIN_DL_REPO="forgejo-experimental/forgejo" # Use experimental repo for RC binary download case "$1" in "submodule-build") @@ -44,7 +45,7 @@ case "$1" in ;; "download-binary") 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_ASSETS=$(curl $CI_VERIFY_API/api/v1/repos/$BIN_DL_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 diff --git a/.crystalintegration.yml b/.crystalintegration.yml index 10cfa12..eb79ae0 100644 --- a/.crystalintegration.yml +++ b/.crystalintegration.yml @@ -314,7 +314,7 @@ pipeline: - "*.deb.sha256" api_key: from_secret: sc_api_key - prerelease: false + prerelease: true skip_verify: true when: event: [ tag ] @@ -329,7 +329,7 @@ pipeline: - "*.deb.sha256" api_key: from_secret: cb_api_key - prerelease: false + prerelease: true skip_verify: true when: event: [ tag ] @@ -339,7 +339,7 @@ pipeline: group: upload environment: FORGEJO_SITE: https://code.forgejo.org - FORGEJO_OWNER: crystal + FORGEJO_OWNER: crystal-experimental DEBIAN_DIST: bullseye DEBIAN_COMPONENT: forgejo secrets: [ cfo_api_key ] From 975c095dbe24371c1d0bcb56468809a9cda201ac Mon Sep 17 00:00:00 2001 From: crystal Date: Sun, 2 Jul 2023 23:58:53 -0600 Subject: [PATCH 034/172] package together --- .crystalintegration.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.crystalintegration.yml b/.crystalintegration.yml index eb79ae0..f7fe17c 100644 --- a/.crystalintegration.yml +++ b/.crystalintegration.yml @@ -156,6 +156,7 @@ pipeline: package-bullseye: image: *deb_build_image + group: package commands: - ./.ci-make.sh package-prep - ./.ci-make.sh package-build @@ -163,6 +164,7 @@ pipeline: package-repo: image: *deb_build_image + group: package commands: - cd repo-deb - ./build.sh From 075d45c27261e316821455ceffbe39dd84b292ea Mon Sep 17 00:00:00 2001 From: crystal Date: Mon, 3 Jul 2023 00:49:05 -0600 Subject: [PATCH 035/172] Bump version --- repo-deb/main/debian/changelog | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/repo-deb/main/debian/changelog b/repo-deb/main/debian/changelog index 28331f0..bb64aa6 100644 --- a/repo-deb/main/debian/changelog +++ b/repo-deb/main/debian/changelog @@ -1,5 +1,5 @@ -forgejo-deb-repo (1-0) unstable; urgency=medium +forgejo-deb-repo (1-1) unstable; urgency=medium - * This is a pre-release version, install for testing only + * Split key and repo package - -- crystal Sun, 2 Jul 2023 19:59:00 +0000 + -- crystal Mon, 3 Jul 2023 06:32:00 +0000 From 06a3317949e4e8b556ad035d7dedf1f992e695cc Mon Sep 17 00:00:00 2001 From: crystal Date: Mon, 3 Jul 2023 01:07:21 -0600 Subject: [PATCH 036/172] add experimental repo package --- repo-deb/build.sh | 3 ++ .../code-forgejo-org-crystal-experimental.asc | 29 +++++++++++++++++++ repo-deb/experimental/debian/changelog | 5 ++++ repo-deb/experimental/debian/compat | 1 + repo-deb/experimental/debian/control | 18 ++++++++++++ .../crystal-experimental-repokey.install | 1 + .../debian/forgejo-deb-experimental.install | 1 + repo-deb/experimental/debian/rules | 4 +++ .../forgejo-deb-experimental.list | 1 + 9 files changed, 63 insertions(+) create mode 100644 repo-deb/experimental/code-forgejo-org-crystal-experimental.asc create mode 100644 repo-deb/experimental/debian/changelog create mode 100644 repo-deb/experimental/debian/compat create mode 100644 repo-deb/experimental/debian/control create mode 100644 repo-deb/experimental/debian/crystal-experimental-repokey.install create mode 100644 repo-deb/experimental/debian/forgejo-deb-experimental.install create mode 100755 repo-deb/experimental/debian/rules create mode 100644 repo-deb/experimental/forgejo-deb-experimental.list diff --git a/repo-deb/build.sh b/repo-deb/build.sh index 5870d0e..e617404 100755 --- a/repo-deb/build.sh +++ b/repo-deb/build.sh @@ -10,4 +10,7 @@ cd .. cd main dpkg-buildpackage -b cd .. +cd experimental +dpkg-buildpackage -b +cd .. exit 0 diff --git a/repo-deb/experimental/code-forgejo-org-crystal-experimental.asc b/repo-deb/experimental/code-forgejo-org-crystal-experimental.asc new file mode 100644 index 0000000..51f1c78 --- /dev/null +++ b/repo-deb/experimental/code-forgejo-org-crystal-experimental.asc @@ -0,0 +1,29 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- + +xsBNBGSibUwBCADQRY7uvgMrUHYCHhtj9bPfe8aHFtfJlSH7dKyndJ1vBEVMwLmr +MFicY+42waSR8wQezfrX6f4u7YIDtmNf87VXXL2SW2B5vlDsBgjBBNaYBZ5I21gL +HOR53XPc9rjUMTbGuec7FOZ25FOYEuaG9BmaUtkCPHyrijLyy6eXweH3OWardwQs +lkT4gfPD/uGzg8BhQWlKdgrhkGETtq9sRqYiJ+r61UwL/ei+R7kTrOo3Ru2JOr0y +HD9zzJlNk9cGUOfHWy+5DoaByoBN4biLRtPJk/NnNxJ0NDQprKMHJh0NYmfn6Gwr +naaAoxNYp+WYsrT0QXVNtrgXdfiYe4LH2tE7ABEBAAHNM0Zvcmdlam86IEJleW9u +ZCBjb2RpbmcuIFdlIGZvcmdlLiAoRGViaWFuIFJlZ2lzdHJ5KcLAYgQTAQgAFgUC +ZKJtTAkQcY4SiaXuU7ACGwMCGQEAANj1CAAhKjY+RMYXzqoaBZ5OOehGXHcar2Lf +8PWIzX7TEXPPeCH2C6QOIeeHDQQ6BDhqIukUqzadgz0CdeaO2newf2HvEBF3beLD +B20hpqX9rPc+rSR/XqRJ/uFMZwK0fBRVqnzM9Oj5FhQfAbVEFYjHhwiPYrS21X2l +aDVw+PwSC6GTqgDKotQzwo66Iy5zxbu4dzibur8VOrVOQzKO0G5X4ihDjHi54ajJ +G7mXKuwjP/VaWYY3UalxRDqTZiZNPaVw4uPjOvcJbHA/Ox+pXIjYHlREzOBqnN71 +91hPt4MXGxWUMy4QBVLx3XWxWAJzMPJBP+mTM5FZI4woOn+IH/0gk7LqzsBNBGSi +bUwBCADdSRfcBpSPqtzHIUkpbPoldvMWvaXJPWDRw6cgzMUuUq9a/bs5ZCkxs1WA +YjWj51klUCzKyttdg9EKOnHGM0tJ/96OTOMQ1LByftq57QWlKnShWRHXqnx4WMJd +Ad383e4kcY8WzmCT7ggZ5AeXYR0MtE0nxMlMGVELR6CLEKrkq749Gwcu29hfO9JG +sAelD0QV3Bto7dQuGo+ywNqH+0CZYBL6qh3gETm1p3BAGVfABTuScw30VvjreHGK +2dIHjWKUUXTtmzkC2pdjMhNOphAYSmF/PxzMVgpM0EpKOR48qtc3LKvHMWjJbd3k +OkRMtptX7CJasT7g6r8y4wg40ijZABEBAAHCwF8EGAEIABMFAmSibUwJEHGOEoml +7lOwAhsMAAB3hAgArpnm2fgZOaA15yp1Mh5GiAjrzXGScmgJuAKRXq9N4pDVRRJx +ABlytuxlCLmeOKb+q9Lpj4G4y+rpK/EozGdTi04Vfg2ij8kMEJsqGKE0YrYYfsX7 +sAfpr9Cz3Hn7Q/7Z7QnhkVBhJvw+2XCWCXA63THC1oSEzBYuveWUX/BOlykXYXQT +A0pTJDe/iSaBrY15klehr7TFTtU3GNuP71a8gsvEXH0I9lbvuteQszI5S2eUlKIz +y+qMwiEeNdX6MTKQa6QFPxs20iz32vYzxvnahOhFKYdpgGsEhGH0df/ZdKNYNuv9 +ZdoaZeBwshMaOQlGR/POYyEr99Q9eJZY5QH8kg== +=ixNu +-----END PGP PUBLIC KEY BLOCK----- diff --git a/repo-deb/experimental/debian/changelog b/repo-deb/experimental/debian/changelog new file mode 100644 index 0000000..fc2457e --- /dev/null +++ b/repo-deb/experimental/debian/changelog @@ -0,0 +1,5 @@ +forgejo-deb-experimental (0-0) unstable; urgency=medium + + * Initial version + + -- crystal Mon, 3 Jul 2023 06:30:00 +0000 diff --git a/repo-deb/experimental/debian/compat b/repo-deb/experimental/debian/compat new file mode 100644 index 0000000..f599e28 --- /dev/null +++ b/repo-deb/experimental/debian/compat @@ -0,0 +1 @@ +10 diff --git a/repo-deb/experimental/debian/control b/repo-deb/experimental/debian/control new file mode 100644 index 0000000..094a72c --- /dev/null +++ b/repo-deb/experimental/debian/control @@ -0,0 +1,18 @@ +Source: forgejo-deb-experimental +Section: admin +Priority: optional +Maintainer: crystal +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 diff --git a/repo-deb/experimental/debian/crystal-experimental-repokey.install b/repo-deb/experimental/debian/crystal-experimental-repokey.install new file mode 100644 index 0000000..abce0e9 --- /dev/null +++ b/repo-deb/experimental/debian/crystal-experimental-repokey.install @@ -0,0 +1 @@ +code-forgejo-org-crystal-experimental.asc /etc/apt/trusted.gpg.d diff --git a/repo-deb/experimental/debian/forgejo-deb-experimental.install b/repo-deb/experimental/debian/forgejo-deb-experimental.install new file mode 100644 index 0000000..1fa1c1a --- /dev/null +++ b/repo-deb/experimental/debian/forgejo-deb-experimental.install @@ -0,0 +1 @@ +forgejo-deb-experimental.list /etc/apt/sources.list.d diff --git a/repo-deb/experimental/debian/rules b/repo-deb/experimental/debian/rules new file mode 100755 index 0000000..d1decc8 --- /dev/null +++ b/repo-deb/experimental/debian/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + dh $@ --with=systemd diff --git a/repo-deb/experimental/forgejo-deb-experimental.list b/repo-deb/experimental/forgejo-deb-experimental.list new file mode 100644 index 0000000..6895080 --- /dev/null +++ b/repo-deb/experimental/forgejo-deb-experimental.list @@ -0,0 +1 @@ +deb https://code.forgejo.org/api/packages/crystal-experimental/debian bullseye forgejo From 643fc5a0aa0271cda36b6fd739a0d48fe830bb2d Mon Sep 17 00:00:00 2001 From: crystal Date: Mon, 3 Jul 2023 01:36:22 -0600 Subject: [PATCH 037/172] publish-repo-deb --- .crystalintegration.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.crystalintegration.yml b/.crystalintegration.yml index f7fe17c..2ffb916 100644 --- a/.crystalintegration.yml +++ b/.crystalintegration.yml @@ -350,3 +350,16 @@ pipeline: - ./.ci-forgejo-apt.sh *.deb when: event: [ tag ] + + publish-repo-deb: + 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 repo-deb/*.deb From 9d01510e3a43c9be7a60ef036ad3c26f0574bc10 Mon Sep 17 00:00:00 2001 From: crystal Date: Mon, 3 Jul 2023 01:49:50 -0600 Subject: [PATCH 038/172] Revert "publish-repo-deb" This reverts commit 643fc5a0aa0271cda36b6fd739a0d48fe830bb2d. --- .crystalintegration.yml | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/.crystalintegration.yml b/.crystalintegration.yml index 2ffb916..f7fe17c 100644 --- a/.crystalintegration.yml +++ b/.crystalintegration.yml @@ -350,16 +350,3 @@ pipeline: - ./.ci-forgejo-apt.sh *.deb when: event: [ tag ] - - publish-repo-deb: - 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 repo-deb/*.deb From c9968739bbbb9dd4e2027845fd6aca302bdceac0 Mon Sep 17 00:00:00 2001 From: crystal Date: Wed, 5 Jul 2023 00:22:09 -0600 Subject: [PATCH 039/172] Revert "release candidate tag" This reverts commit 3ceea43baf52112c0c39bb4bf0e8d5a225e4e4cf. --- .ci-make.sh | 3 +-- .crystalintegration.yml | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.ci-make.sh b/.ci-make.sh index e20e74f..5f8bd50 100755 --- a/.ci-make.sh +++ b/.ci-make.sh @@ -4,7 +4,6 @@ CI_VERIFY_API="https://codeberg.org" # Query the Forgejo API at this URL to chec CI_VERIFY_REPO="forgejo/forgejo" # Check this repo at the Forgejo API for upstream CI status CI_VERIFY_RETRY_TIME=120 # How long to wait in seconds before retrying if the pipeline is pending CI_VERIFY_RETRY_COUNT=30 # How many times to retry before giving up if the pipeline is pending -BIN_DL_REPO="forgejo-experimental/forgejo" # Use experimental repo for RC binary download case "$1" in "submodule-build") @@ -45,7 +44,7 @@ case "$1" in ;; "download-binary") if [ $CI_COMMIT_TAG ] ; then - CI_RELEASE_ASSETS=$(curl $CI_VERIFY_API/api/v1/repos/$BIN_DL_REPO/releases/tags/$CI_COMMIT_TAG | jq -c '.assets[]' | grep linux-amd64) + 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 diff --git a/.crystalintegration.yml b/.crystalintegration.yml index f7fe17c..3203fd5 100644 --- a/.crystalintegration.yml +++ b/.crystalintegration.yml @@ -316,7 +316,7 @@ pipeline: - "*.deb.sha256" api_key: from_secret: sc_api_key - prerelease: true + prerelease: false skip_verify: true when: event: [ tag ] @@ -331,7 +331,7 @@ pipeline: - "*.deb.sha256" api_key: from_secret: cb_api_key - prerelease: true + prerelease: false skip_verify: true when: event: [ tag ] @@ -341,7 +341,7 @@ pipeline: group: upload environment: FORGEJO_SITE: https://code.forgejo.org - FORGEJO_OWNER: crystal-experimental + FORGEJO_OWNER: crystal DEBIAN_DIST: bullseye DEBIAN_COMPONENT: forgejo secrets: [ cfo_api_key ] From 6042596c79bdce7feac4b435ec4ffc75863b1ae7 Mon Sep 17 00:00:00 2001 From: crystal Date: Wed, 5 Jul 2023 00:37:26 -0600 Subject: [PATCH 040/172] 1.19 build --- .crystalintegration.yml | 2 +- forgejo | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.crystalintegration.yml b/.crystalintegration.yml index 3203fd5..ec72b33 100644 --- a/.crystalintegration.yml +++ b/.crystalintegration.yml @@ -6,7 +6,7 @@ when: 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.20' + - &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' diff --git a/forgejo b/forgejo index b1257f3..daf0fa0 160000 --- a/forgejo +++ b/forgejo @@ -1 +1 @@ -Subproject commit b1257f32cc31ced3402cdfeac427f9fccba5445a +Subproject commit daf0fa06af10cdc91dc4ba93c0766a280c008c3c From e3794062457eaa57de3db6e57588b24bdba6f112 Mon Sep 17 00:00:00 2001 From: crystal Date: Wed, 5 Jul 2023 00:42:02 -0600 Subject: [PATCH 041/172] fix ci-verify retry --- .ci-make.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.ci-make.sh b/.ci-make.sh index 5f8bd50..a35bf15 100755 --- a/.ci-make.sh +++ b/.ci-make.sh @@ -31,8 +31,8 @@ case "$1" in exit 0 ;; '"pending"') - echo "CI pipeline still pending, checking again in $CI_VERIFY_RETRY seconds..." - sleep $CI_VERIFY_RETRY + echo "CI pipeline still pending, checking again in $CI_VERIFY_RETRY_TIME seconds..." + sleep $CI_VERIFY_RETRY_TIME ;; *) echo "ERROR: Bad pipeline status $CI_VERIFY" From 783fe3496f1b036d07310f310cf1d24ef029c5c3 Mon Sep 17 00:00:00 2001 From: crystal Date: Wed, 5 Jul 2023 11:01:23 -0600 Subject: [PATCH 042/172] Forgejo v1.19.4-0 --- deb/debian/changelog | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/deb/debian/changelog b/deb/debian/changelog index 4a695e3..b2583d4 100644 --- a/deb/debian/changelog +++ b/deb/debian/changelog @@ -1,9 +1,9 @@ -forgejo (1.20.0.3-0) unstable; urgency=medium +forgejo (1.19.4.0-1) unstable; urgency=medium - * Forgejo version 1.20.0-3-rc1 - * This is a pre-release version, install for testing only + * Forgejo version 1.19.4-0 + * See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#1-19-4-0 - -- crystal Sun, 2 Jul 2023 16:45:00 +0000 + -- crystal Wed, 5 Jul 2023 16:57:00 +0000 forgejo (1.19.3.0-1) unstable; urgency=medium From f8468757d03f5a2f1098cd43d547ccb3d62d6125 Mon Sep 17 00:00:00 2001 From: crystal Date: Mon, 17 Jul 2023 12:02:11 -0600 Subject: [PATCH 043/172] Revert "1.19 build" This reverts commit 6042596c79bdce7feac4b435ec4ffc75863b1ae7. --- .crystalintegration.yml | 2 +- forgejo | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.crystalintegration.yml b/.crystalintegration.yml index ec72b33..3203fd5 100644 --- a/.crystalintegration.yml +++ b/.crystalintegration.yml @@ -6,7 +6,7 @@ when: 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' + - &forgejo_test_image 'codeberg.org/forgejo/test_env:1.20' - &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' diff --git a/forgejo b/forgejo index daf0fa0..b1257f3 160000 --- a/forgejo +++ b/forgejo @@ -1 +1 @@ -Subproject commit daf0fa06af10cdc91dc4ba93c0766a280c008c3c +Subproject commit b1257f32cc31ced3402cdfeac427f9fccba5445a From b40c337a0d9afe1fedf48f10e07ee24b108d9757 Mon Sep 17 00:00:00 2001 From: crystal Date: Sun, 2 Jul 2023 23:44:21 -0600 Subject: [PATCH 044/172] release candidate tag --- .ci-make.sh | 3 ++- .crystalintegration.yml | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.ci-make.sh b/.ci-make.sh index a35bf15..8641122 100755 --- a/.ci-make.sh +++ b/.ci-make.sh @@ -4,6 +4,7 @@ CI_VERIFY_API="https://codeberg.org" # Query the Forgejo API at this URL to chec CI_VERIFY_REPO="forgejo/forgejo" # Check this repo at the Forgejo API for upstream CI status CI_VERIFY_RETRY_TIME=120 # How long to wait in seconds before retrying if the pipeline is pending CI_VERIFY_RETRY_COUNT=30 # How many times to retry before giving up if the pipeline is pending +BIN_DL_REPO="forgejo-experimental/forgejo" # Use experimental repo for RC binary download case "$1" in "submodule-build") @@ -44,7 +45,7 @@ case "$1" in ;; "download-binary") 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_ASSETS=$(curl $CI_VERIFY_API/api/v1/repos/$BIN_DL_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 diff --git a/.crystalintegration.yml b/.crystalintegration.yml index 3203fd5..f7fe17c 100644 --- a/.crystalintegration.yml +++ b/.crystalintegration.yml @@ -316,7 +316,7 @@ pipeline: - "*.deb.sha256" api_key: from_secret: sc_api_key - prerelease: false + prerelease: true skip_verify: true when: event: [ tag ] @@ -331,7 +331,7 @@ pipeline: - "*.deb.sha256" api_key: from_secret: cb_api_key - prerelease: false + prerelease: true skip_verify: true when: event: [ tag ] @@ -341,7 +341,7 @@ pipeline: group: upload environment: FORGEJO_SITE: https://code.forgejo.org - FORGEJO_OWNER: crystal + FORGEJO_OWNER: crystal-experimental DEBIAN_DIST: bullseye DEBIAN_COMPONENT: forgejo secrets: [ cfo_api_key ] From d8f1a5c746829ad122d7fe0d11bb1086e4f9402c Mon Sep 17 00:00:00 2001 From: crystal Date: Mon, 17 Jul 2023 12:10:32 -0600 Subject: [PATCH 045/172] Forgejo v1.20.0-4-rc2 --- deb/debian/changelog | 7 +++++++ forgejo | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/deb/debian/changelog b/deb/debian/changelog index b2583d4..3424698 100644 --- a/deb/debian/changelog +++ b/deb/debian/changelog @@ -1,3 +1,10 @@ +forgejo (1.20.0.4-0) unstable; urgency=medium + + * Forgejo version 1.20.0-4-rc2 + * This is a pre-release version, install for testing only + + -- crystal Mon, 17 Jul 2023 18:08:00 +0000 + forgejo (1.19.4.0-1) unstable; urgency=medium * Forgejo version 1.19.4-0 diff --git a/forgejo b/forgejo index b1257f3..b65d458 160000 --- a/forgejo +++ b/forgejo @@ -1 +1 @@ -Subproject commit b1257f32cc31ced3402cdfeac427f9fccba5445a +Subproject commit b65d458c3a72c189deb0c2490a757216635b0af8 From ca60d19f7eda8e01707646ad54a4e2810bd520ee Mon Sep 17 00:00:00 2001 From: crystal Date: Mon, 17 Jul 2023 18:08:11 -0600 Subject: [PATCH 046/172] fix CI badge --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ba7b14c..49a47d5 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # 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) +### Build test: [![ci-status](https://ci.cryxtal.org/api/badges/forgejo-contrib/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. From 44add0de26a6ef7c185d8dd7d72a9670e0bf0f49 Mon Sep 17 00:00:00 2001 From: crystal Date: Mon, 24 Jul 2023 23:24:53 -0600 Subject: [PATCH 047/172] Revert "release candidate tag" This reverts commit b40c337a0d9afe1fedf48f10e07ee24b108d9757. --- .ci-make.sh | 3 +-- .crystalintegration.yml | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.ci-make.sh b/.ci-make.sh index 8641122..a35bf15 100755 --- a/.ci-make.sh +++ b/.ci-make.sh @@ -4,7 +4,6 @@ CI_VERIFY_API="https://codeberg.org" # Query the Forgejo API at this URL to chec CI_VERIFY_REPO="forgejo/forgejo" # Check this repo at the Forgejo API for upstream CI status CI_VERIFY_RETRY_TIME=120 # How long to wait in seconds before retrying if the pipeline is pending CI_VERIFY_RETRY_COUNT=30 # How many times to retry before giving up if the pipeline is pending -BIN_DL_REPO="forgejo-experimental/forgejo" # Use experimental repo for RC binary download case "$1" in "submodule-build") @@ -45,7 +44,7 @@ case "$1" in ;; "download-binary") if [ $CI_COMMIT_TAG ] ; then - CI_RELEASE_ASSETS=$(curl $CI_VERIFY_API/api/v1/repos/$BIN_DL_REPO/releases/tags/$CI_COMMIT_TAG | jq -c '.assets[]' | grep linux-amd64) + 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 diff --git a/.crystalintegration.yml b/.crystalintegration.yml index f7fe17c..3203fd5 100644 --- a/.crystalintegration.yml +++ b/.crystalintegration.yml @@ -316,7 +316,7 @@ pipeline: - "*.deb.sha256" api_key: from_secret: sc_api_key - prerelease: true + prerelease: false skip_verify: true when: event: [ tag ] @@ -331,7 +331,7 @@ pipeline: - "*.deb.sha256" api_key: from_secret: cb_api_key - prerelease: true + prerelease: false skip_verify: true when: event: [ tag ] @@ -341,7 +341,7 @@ pipeline: group: upload environment: FORGEJO_SITE: https://code.forgejo.org - FORGEJO_OWNER: crystal-experimental + FORGEJO_OWNER: crystal DEBIAN_DIST: bullseye DEBIAN_COMPONENT: forgejo secrets: [ cfo_api_key ] From 51139fac0f4b2a38704c515ae2f29ae03a44250c Mon Sep 17 00:00:00 2001 From: crystal Date: Mon, 24 Jul 2023 23:25:24 -0600 Subject: [PATCH 048/172] Forgejo v1.20.1-0 --- deb/debian/changelog | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/deb/debian/changelog b/deb/debian/changelog index 3424698..0bfa49b 100644 --- a/deb/debian/changelog +++ b/deb/debian/changelog @@ -1,9 +1,9 @@ -forgejo (1.20.0.4-0) unstable; urgency=medium +forgejo (1.20.1.0-1) unstable; urgency=medium - * Forgejo version 1.20.0-4-rc2 - * This is a pre-release version, install for testing only + * Forgejo version 1.20.1-0 + * See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#1-20-1-0 - -- crystal Mon, 17 Jul 2023 18:08:00 +0000 + -- crystal Tue, 25 Jul 2023 05:25:00 +0000 forgejo (1.19.4.0-1) unstable; urgency=medium From 965e056116b84b7824fea5dbb7d65001295244ce Mon Sep 17 00:00:00 2001 From: crystal Date: Tue, 25 Jul 2023 01:55:20 -0600 Subject: [PATCH 049/172] Forgejo v1.20.1-0 (source) --- forgejo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forgejo b/forgejo index b65d458..dcab256 160000 --- a/forgejo +++ b/forgejo @@ -1 +1 @@ -Subproject commit b65d458c3a72c189deb0c2490a757216635b0af8 +Subproject commit dcab256781bcad7462ad9edfdd7c268118de47e9 From 70615cbe039b6436b7680911b0e4a42db57496ff Mon Sep 17 00:00:00 2001 From: crystal Date: Tue, 25 Jul 2023 02:01:16 -0600 Subject: [PATCH 050/172] bump deb --- deb/debian/changelog | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deb/debian/changelog b/deb/debian/changelog index 0bfa49b..823bc76 100644 --- a/deb/debian/changelog +++ b/deb/debian/changelog @@ -1,9 +1,9 @@ -forgejo (1.20.1.0-1) unstable; urgency=medium +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 Tue, 25 Jul 2023 05:25:00 +0000 + -- crystal Tue, 25 Jul 2023 08:00:00 +0000 forgejo (1.19.4.0-1) unstable; urgency=medium From 13a2d485fa1f181f48d76b9104577c3be4e6ed94 Mon Sep 17 00:00:00 2001 From: crystal Date: Tue, 25 Jul 2023 02:12:49 -0600 Subject: [PATCH 051/172] use forgejo-bin for repo test --- .crystalintegration.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.crystalintegration.yml b/.crystalintegration.yml index 3203fd5..c8eacc9 100644 --- a/.crystalintegration.yml +++ b/.crystalintegration.yml @@ -300,11 +300,11 @@ pipeline: when: event: [ tag ] - test-repo-bookworm-sqlite: + test-repo-bookworm-bin: 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 + - ./.ci-make.sh install-repo-test ./repo-deb/forgejo-deb-repo_0-0_all.deb forgejo-bin upload-crystalcommit: image: woodpeckerci/plugin-gitea-release From b5a068e8da865d8cc2392bd2ccf876396e07bd1b Mon Sep 17 00:00:00 2001 From: crystal Date: Tue, 25 Jul 2023 02:40:12 -0600 Subject: [PATCH 052/172] Add repo setup instructions --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 49a47d5..9aea761 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,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/crystal/-/packages/debian/forgejo-deb-repo/0-0/files/2637 +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 +34,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` From bf8f9790800b11f2c8672766f867391332e434b3 Mon Sep 17 00:00:00 2001 From: crystal Date: Tue, 25 Jul 2023 02:43:08 -0600 Subject: [PATCH 053/172] Revert "use forgejo-bin for repo test" This reverts commit 13a2d485fa1f181f48d76b9104577c3be4e6ed94. --- .crystalintegration.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.crystalintegration.yml b/.crystalintegration.yml index c8eacc9..3203fd5 100644 --- a/.crystalintegration.yml +++ b/.crystalintegration.yml @@ -300,11 +300,11 @@ pipeline: when: event: [ tag ] - test-repo-bookworm-bin: + 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-bin + - ./.ci-make.sh install-repo-test ./repo-deb/forgejo-deb-repo_0-0_all.deb forgejo-sqlite upload-crystalcommit: image: woodpeckerci/plugin-gitea-release From 8a9436adb1e3e75b3956b4304f88f18d6fa5a279 Mon Sep 17 00:00:00 2001 From: crystal Date: Tue, 25 Jul 2023 04:33:42 -0600 Subject: [PATCH 054/172] Update releases tab link --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9aea761..0fcdc02 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Hello! If you want to run Forgejo on Debian/Ubuntu and you're looking for packag ### Build test: [![ci-status](https://ci.cryxtal.org/api/badges/forgejo-contrib/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 From b47f2faf53cb9e6315eb12ced5a59c454fe372ff Mon Sep 17 00:00:00 2001 From: crystal Date: Tue, 25 Jul 2023 05:24:26 -0600 Subject: [PATCH 055/172] oneshot repo transfer --- .crystalintegration.yml | 17 +++++++++++++++++ oneshot/dl.sh | 12 ++++++++++++ 2 files changed, 29 insertions(+) create mode 100755 oneshot/dl.sh diff --git a/.crystalintegration.yml b/.crystalintegration.yml index 3203fd5..f06b289 100644 --- a/.crystalintegration.yml +++ b/.crystalintegration.yml @@ -350,3 +350,20 @@ pipeline: - ./.ci-forgejo-apt.sh *.deb when: event: [ tag ] + + oneshot-dl-script: + image: *bin_dl_image + commands: + - oneshot/dl.sh + + oneshot-apt-repo: + image: *ci_verify_image + environment: + FORGEJO_SITE: https://code.forgejo.org + FORGEJO_OWNER: forgejo-contrib + DEBIAN_DIST: bullseye + DEBIAN_COMPONENT: forgejo + secrets: [ cfo_api_key ] + commands: + - export FORGEJO_KEY=$CFO_API_KEY + - ./.ci-forgejo-apt.sh oneshot/*.deb diff --git a/oneshot/dl.sh b/oneshot/dl.sh new file mode 100755 index 0000000..4145556 --- /dev/null +++ b/oneshot/dl.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +cd oneshot + +CI_RELEASE_ASSETS=$(curl https://codeberg.org/api/v1/repos/forgejo-contrib/forgejo-deb/releases/tags/v1.20.1-0 | jq -c '.assets[]' | grep .deb) +CI_RELEASE_DEB_URL0=$(echo "$CI_RELEASE_ASSETS" | grep .deb\" | grep forgejo_ | jq -r --jsonargs .browser_download_url) +CI_RELEASE_DEB_URL1=$(echo "$CI_RELEASE_ASSETS" | grep .deb\" | grep forgejo-sqlite_ | jq -r --jsonargs .browser_download_url) +CI_RELEASE_DEB_URL2=$(echo "$CI_RELEASE_ASSETS" | grep .deb\" | grep forgejo-bin_ | jq -r --jsonargs .browser_download_url) + +wget --content-disposition $CI_RELEASE_DEB_URL0 +wget --content-disposition $CI_RELEASE_DEB_URL1 +wget --content-disposition $CI_RELEASE_DEB_URL2 From 09f27751ffda2cc176425bc7c3fc357c57ed9049 Mon Sep 17 00:00:00 2001 From: crystal Date: Tue, 25 Jul 2023 05:37:56 -0600 Subject: [PATCH 056/172] Revert "oneshot repo transfer" This reverts commit b47f2faf53cb9e6315eb12ced5a59c454fe372ff. --- .crystalintegration.yml | 17 ----------------- oneshot/dl.sh | 12 ------------ 2 files changed, 29 deletions(-) delete mode 100755 oneshot/dl.sh diff --git a/.crystalintegration.yml b/.crystalintegration.yml index f06b289..3203fd5 100644 --- a/.crystalintegration.yml +++ b/.crystalintegration.yml @@ -350,20 +350,3 @@ pipeline: - ./.ci-forgejo-apt.sh *.deb when: event: [ tag ] - - oneshot-dl-script: - image: *bin_dl_image - commands: - - oneshot/dl.sh - - oneshot-apt-repo: - image: *ci_verify_image - environment: - FORGEJO_SITE: https://code.forgejo.org - FORGEJO_OWNER: forgejo-contrib - DEBIAN_DIST: bullseye - DEBIAN_COMPONENT: forgejo - secrets: [ cfo_api_key ] - commands: - - export FORGEJO_KEY=$CFO_API_KEY - - ./.ci-forgejo-apt.sh oneshot/*.deb diff --git a/oneshot/dl.sh b/oneshot/dl.sh deleted file mode 100755 index 4145556..0000000 --- a/oneshot/dl.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh - -cd oneshot - -CI_RELEASE_ASSETS=$(curl https://codeberg.org/api/v1/repos/forgejo-contrib/forgejo-deb/releases/tags/v1.20.1-0 | jq -c '.assets[]' | grep .deb) -CI_RELEASE_DEB_URL0=$(echo "$CI_RELEASE_ASSETS" | grep .deb\" | grep forgejo_ | jq -r --jsonargs .browser_download_url) -CI_RELEASE_DEB_URL1=$(echo "$CI_RELEASE_ASSETS" | grep .deb\" | grep forgejo-sqlite_ | jq -r --jsonargs .browser_download_url) -CI_RELEASE_DEB_URL2=$(echo "$CI_RELEASE_ASSETS" | grep .deb\" | grep forgejo-bin_ | jq -r --jsonargs .browser_download_url) - -wget --content-disposition $CI_RELEASE_DEB_URL0 -wget --content-disposition $CI_RELEASE_DEB_URL1 -wget --content-disposition $CI_RELEASE_DEB_URL2 From 08b75e3090e229f8d5b6275388bdb3ac64338632 Mon Sep 17 00:00:00 2001 From: crystal Date: Tue, 25 Jul 2023 05:44:52 -0600 Subject: [PATCH 057/172] Move apt repo to forgejo-contrib --- repo-deb/build.sh | 4 +-- repo-deb/code-forgejo-org-crystal.asc | 29 ------------------- repo-deb/code-forgejo-org-forgejo-contrib.asc | 29 +++++++++++++++++++ repo-deb/forgejo-deb.list | 2 +- repo-deb/main/debian/changelog | 7 +++++ .../main/debian/forgejo-deb-repokey.install | 2 +- repo-deb/stub/debian/changelog | 2 +- repo-deb/stub/debian/forgejo-deb-repo.install | 2 +- 8 files changed, 42 insertions(+), 35 deletions(-) delete mode 100644 repo-deb/code-forgejo-org-crystal.asc create mode 100644 repo-deb/code-forgejo-org-forgejo-contrib.asc diff --git a/repo-deb/build.sh b/repo-deb/build.sh index e617404..4209a22 100755 --- a/repo-deb/build.sh +++ b/repo-deb/build.sh @@ -1,7 +1,7 @@ #!/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/ cd stub diff --git a/repo-deb/code-forgejo-org-crystal.asc b/repo-deb/code-forgejo-org-crystal.asc deleted file mode 100644 index e8ee1c5..0000000 --- a/repo-deb/code-forgejo-org-crystal.asc +++ /dev/null @@ -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+P7P5Hy9JSVjL1qlttE8Zn1WQFm5L -LuGnhu0fTrtSKZa7+yIv6q4eNyKauJlcllANr51lgujcLjob8T7TLPrIpjLODGB3 -dRqF6Mdn3UXNXv2twVqLVKuzaRSwT9H/J4oaFpuvOv2EJpECawNOe8PIzsBNBGSV -becBCACpoCecK1oT++JiFuRloEgpGQW2QiD6IWk0kpqCSt5qzPAGu1CCyRoQUTfX -jS/ClwIM0YRdowgeuLcNRk+0jFjFGKPa5zRXXxuq1ZBMUKLQ7I0VUGKN4UqLQ6OU -kIrSknL75IiwnOsMoKXU9QPr/fzQlh0lLNfjL3FOmh16/QoWcTnSWZjhGvwkFFx4 -4T3mpeD2Y+Lsx8Psi4ZORv+ODxsb0piRUEIe2nq2Uav9Qj9YLd+rzenG0qcTN46A -oqwumuUBRxGn2WWkTf1ZnTWS36WDw1bWEzgwvvlz7NRwEXg16SBwbR/9bnWx359h -AaWBy3A1c3hBaQLPXzCpQnasbMAdABEBAAHCwF8EGAEIABMFAmSVbecJEBaabmtc -4lggAhsMAACWcwgALSpBKXv4SX2VAVCo1GKUO8FT/dpgAP6u788fdorQBlS7TUTz -wqEB/wVuSjOER04DdOOXH5up9ikZhaTa03uL4UXeHsPL9qaUQ+Y1Avn8FHpR3647 -O+f0+iEiROtNfLuNWNYISHwJB644m2xsMG9bohLU2h78yS0ToZlt5hvoTpTNKO1g -9lUM7u2i5DBDBQnUBfp6nKou9gMH2CHgB4W4Gc36b7sgU7AQt095yfbfdIjaHl7a -wikaAx/cMShI0lJudDs60qUfxfKfEQBcexJMiEiZbF6dPzQ6OQm9lcmkuhNAX6MP -zuNnZsilht/BDYeKWqmwdfXFxcdZ/BX/oitwkA== -=hNbH ------END PGP PUBLIC KEY BLOCK----- diff --git a/repo-deb/code-forgejo-org-forgejo-contrib.asc b/repo-deb/code-forgejo-org-forgejo-contrib.asc new file mode 100644 index 0000000..fe21f5b --- /dev/null +++ b/repo-deb/code-forgejo-org-forgejo-contrib.asc @@ -0,0 +1,29 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- + +xsBNBGS/s68BCACv7kWy8EHmOHzQ0hjZ9far6U16/9egyJ1amCXHJj755glbuFD0 +aXeCjnp8p6Dghjz2a4fNkmeJhpgQGW7aN7SUFXa7TDW6/aoeNuvHl9ll7ZjUrovV +jihPkPFrSAfbDIsXnM75psaxWnRgVhNtQ/qdFoTtYgsKmExKmBN0wgs6MV3355i5 +/WwgADDJHFFaCcx+0+kG8ilXr3DiVeKmdXG8bp89MZ1s2CR1uiHbR7AQkJ+DFiRV +xW4IOAsSy06xTHAYHf0G3N+BkBJEJfo76cS3auaz5PiggRKcXdPo77MietCJjtLW +Y9Tln5ZJrHydXRAePjD89vpukhG/LHCc2cl7ABEBAAHNM0Zvcmdlam86IEJleW9u +ZCBjb2RpbmcuIFdlIGZvcmdlLiAoRGViaWFuIFJlZ2lzdHJ5KcLAYgQTAQgAFgUC +ZL+zrwkQfJzSyuVhN4wCGwMCGQEAAEcLCAABj/QKDy/RbyUpkjbIxFXOfmIVf/vF +RalgSONoT7e6MH48WwvJP7ggThMZwUjYYKSwFHJ86bcrxOX9fX81ZzZDzKzoplFy +HvnNgqBuZt30P4C60Q+VzeiRagMMJSqzZR3ZBPa7KxMr0QJBM9aA6fUKxYiPxwfr +D/R4alUb1J4Wyt3i/ioXurLP4L3cM5yb5PIXkQOd6NA9rH2WdkC971pen8c3tQF9 +da1W/XVOQ7OvBs556cm/1o0xurMcKiDnfUBiVWQLEZWTSsBclaFBEACaHEnj/vVs +uhRKoxqmKTuq6yXvpNeOrUkpPb3rVCqNZ4UutT5nHdi1zc9gTJ3F7dSTzsBNBGS/ +s68BCADmfx9KS69mCFtX7wPD4NLYebjwz/fWfc+X1l7k/VsfMGNGQGM2qkQ44pKa +EG0oG8mXtjUhFYEdQfXeSFZFg1ROIruBGNYAcAj3LUqXpQy3Ojjiq2L+OYH92uCF +hiGI1TNA5LY9zITfmmNWVDsi8u/Ip4+OBn8MBZ+iYE373PEr0jkddH6ShORWehyO +77/4ogpkei6b6kU3AEV+PTZgz1xrbiqDz5FSgY+niJMb+7MoYIC8doew1Ak5UdMv +1b7vVmfre/frSCb8EO68eli0tosuaXV/7jwsLyXItxuqxjm8l3F3exOa8GiueruR +l/12DYXs7vN2KYw6L0N/dexorYWRABEBAAHCwF8EGAEIABMFAmS/s68JEHyc0srl +YTeMAhsMAABkNwgABNfuGkB/mqcMgLL/FLe+7PlBdngRUdCYD+ZbkgCk7npWP7sI +t7bxQhYJtQwpbRW6pdhqM6M19sUT53SaZH1VbY4dOxV4ju5PGPdmJxxWNP6ZyvQF +locHN8m9ROHdYixBTbhuNAUseUfz3EoQrvXpi6WUAqUfDgpRbV5AGqi0AfQaRkX3 +wyQowc3SYk8U1NtnEKLOFu7o+eR4Qh317BrBc9Ve0+GWTMbm9XaqCiVcz9iGtXQe +cQsoKZHldRieBdNo0yg0hBu/PUl9rRNdG9LDFQ/uRksJ0rzJDG65U6LF1QfueuQo +p2Ly49Vic8/G6sacJE02M1oEB1YvrqRKbe3Y5Q== +=rsSQ +-----END PGP PUBLIC KEY BLOCK----- diff --git a/repo-deb/forgejo-deb.list b/repo-deb/forgejo-deb.list index 7d9891d..946a727 100644 --- a/repo-deb/forgejo-deb.list +++ b/repo-deb/forgejo-deb.list @@ -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 diff --git a/repo-deb/main/debian/changelog b/repo-deb/main/debian/changelog index bb64aa6..d5a5e1c 100644 --- a/repo-deb/main/debian/changelog +++ b/repo-deb/main/debian/changelog @@ -1,3 +1,10 @@ +forgejo-deb-repo (2-0) unstable; urgency=medium + + * Transitional package + * Move to https://code.forgejo.org/forgejo-contrib/-/packages + + -- crystal Tue, 25 Jul 2023 10:52:00 +0000 + forgejo-deb-repo (1-1) unstable; urgency=medium * Split key and repo package diff --git a/repo-deb/main/debian/forgejo-deb-repokey.install b/repo-deb/main/debian/forgejo-deb-repokey.install index 59d9c5c..5f22ee4 100644 --- a/repo-deb/main/debian/forgejo-deb-repokey.install +++ b/repo-deb/main/debian/forgejo-deb-repokey.install @@ -1 +1 @@ -code-forgejo-org-crystal.asc /etc/apt/trusted.gpg.d +code-forgejo-org-forgejo-contrib.asc /etc/apt/trusted.gpg.d diff --git a/repo-deb/stub/debian/changelog b/repo-deb/stub/debian/changelog index 593d48f..84cc044 100644 --- a/repo-deb/stub/debian/changelog +++ b/repo-deb/stub/debian/changelog @@ -2,4 +2,4 @@ forgejo-deb-repo (0-0) unstable; urgency=medium * forgejo-deb APT repository stub - -- crystal Sun, 2 Jul 2023 20:30:00 +0000 + -- crystal Tue, 25 Jul 2023 10:50:00 +0000 diff --git a/repo-deb/stub/debian/forgejo-deb-repo.install b/repo-deb/stub/debian/forgejo-deb-repo.install index f81b739..e5a7382 100644 --- a/repo-deb/stub/debian/forgejo-deb-repo.install +++ b/repo-deb/stub/debian/forgejo-deb-repo.install @@ -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 From 4eb4803a2e5db22996169f9f5163c8c5d82eb01b Mon Sep 17 00:00:00 2001 From: crystal Date: Tue, 25 Jul 2023 05:56:35 -0600 Subject: [PATCH 058/172] transitional repo-deb --- .crystalintegration.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.crystalintegration.yml b/.crystalintegration.yml index 3203fd5..1e815ea 100644 --- a/.crystalintegration.yml +++ b/.crystalintegration.yml @@ -350,3 +350,30 @@ pipeline: - ./.ci-forgejo-apt.sh *.deb when: event: [ tag ] + + publish-repo-deb: + image: *ci_verify_image + group: upload + environment: + FORGEJO_SITE: https://code.forgejo.org + FORGEJO_OWNER: forgejo-contrib + DEBIAN_DIST: bullseye + DEBIAN_COMPONENT: forgejo + secrets: [ cfo_api_key ] + commands: + - export FORGEJO_KEY=$CFO_API_KEY + - ./.ci-forgejo-apt.sh repo-deb/*.deb + + oldrepo-repo-deb: + 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 repo-deb/forgejo-deb-repo_2-0_all.deb + - ./.ci-forgejo-apt.sh repo-deb/forgejo-deb-repokey_2-0_all.deb From a5c28118360682cb7883d48b1e9fe8e239a822ba Mon Sep 17 00:00:00 2001 From: crystal Date: Tue, 25 Jul 2023 06:03:15 -0600 Subject: [PATCH 059/172] new repo-deb --- .crystalintegration.yml | 17 ++--------------- repo-deb/main/debian/changelog | 5 ++--- 2 files changed, 4 insertions(+), 18 deletions(-) diff --git a/.crystalintegration.yml b/.crystalintegration.yml index 1e815ea..85bb22c 100644 --- a/.crystalintegration.yml +++ b/.crystalintegration.yml @@ -362,18 +362,5 @@ pipeline: secrets: [ cfo_api_key ] commands: - export FORGEJO_KEY=$CFO_API_KEY - - ./.ci-forgejo-apt.sh repo-deb/*.deb - - oldrepo-repo-deb: - 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 repo-deb/forgejo-deb-repo_2-0_all.deb - - ./.ci-forgejo-apt.sh repo-deb/forgejo-deb-repokey_2-0_all.deb + - ./.ci-forgejo-apt.sh repo-deb/forgejo-deb-repo_2-1_all.deb + - ./.ci-forgejo-apt.sh repo-deb/forgejo-deb-repokey_2-1_all.deb diff --git a/repo-deb/main/debian/changelog b/repo-deb/main/debian/changelog index d5a5e1c..088aae2 100644 --- a/repo-deb/main/debian/changelog +++ b/repo-deb/main/debian/changelog @@ -1,9 +1,8 @@ -forgejo-deb-repo (2-0) unstable; urgency=medium +forgejo-deb-repo (2-1) unstable; urgency=medium - * Transitional package * Move to https://code.forgejo.org/forgejo-contrib/-/packages - -- crystal Tue, 25 Jul 2023 10:52:00 +0000 + -- crystal Tue, 25 Jul 2023 12:00:00 +0000 forgejo-deb-repo (1-1) unstable; urgency=medium From 0181ae14aaa131206e6e19f7bf52dee5ad14e4e2 Mon Sep 17 00:00:00 2001 From: crystal Date: Tue, 25 Jul 2023 06:13:25 -0600 Subject: [PATCH 060/172] Remove repo-deb upload --- .crystalintegration.yml | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/.crystalintegration.yml b/.crystalintegration.yml index 85bb22c..3203fd5 100644 --- a/.crystalintegration.yml +++ b/.crystalintegration.yml @@ -350,17 +350,3 @@ pipeline: - ./.ci-forgejo-apt.sh *.deb when: event: [ tag ] - - publish-repo-deb: - image: *ci_verify_image - group: upload - environment: - FORGEJO_SITE: https://code.forgejo.org - FORGEJO_OWNER: forgejo-contrib - DEBIAN_DIST: bullseye - DEBIAN_COMPONENT: forgejo - secrets: [ cfo_api_key ] - commands: - - export FORGEJO_KEY=$CFO_API_KEY - - ./.ci-forgejo-apt.sh repo-deb/forgejo-deb-repo_2-1_all.deb - - ./.ci-forgejo-apt.sh repo-deb/forgejo-deb-repokey_2-1_all.deb From 3fe394cfa3a34664e4f1ff73bb3d27d4b5b13e7a Mon Sep 17 00:00:00 2001 From: crystal Date: Tue, 25 Jul 2023 06:14:59 -0600 Subject: [PATCH 061/172] remove experimental repo-deb --- repo-deb/build.sh | 3 -- .../code-forgejo-org-crystal-experimental.asc | 29 ------------------- repo-deb/experimental/debian/changelog | 5 ---- repo-deb/experimental/debian/compat | 1 - repo-deb/experimental/debian/control | 18 ------------ .../crystal-experimental-repokey.install | 1 - .../debian/forgejo-deb-experimental.install | 1 - repo-deb/experimental/debian/rules | 4 --- .../forgejo-deb-experimental.list | 1 - 9 files changed, 63 deletions(-) delete mode 100644 repo-deb/experimental/code-forgejo-org-crystal-experimental.asc delete mode 100644 repo-deb/experimental/debian/changelog delete mode 100644 repo-deb/experimental/debian/compat delete mode 100644 repo-deb/experimental/debian/control delete mode 100644 repo-deb/experimental/debian/crystal-experimental-repokey.install delete mode 100644 repo-deb/experimental/debian/forgejo-deb-experimental.install delete mode 100755 repo-deb/experimental/debian/rules delete mode 100644 repo-deb/experimental/forgejo-deb-experimental.list diff --git a/repo-deb/build.sh b/repo-deb/build.sh index 4209a22..d9eed8c 100755 --- a/repo-deb/build.sh +++ b/repo-deb/build.sh @@ -10,7 +10,4 @@ cd .. cd main dpkg-buildpackage -b cd .. -cd experimental -dpkg-buildpackage -b -cd .. exit 0 diff --git a/repo-deb/experimental/code-forgejo-org-crystal-experimental.asc b/repo-deb/experimental/code-forgejo-org-crystal-experimental.asc deleted file mode 100644 index 51f1c78..0000000 --- a/repo-deb/experimental/code-forgejo-org-crystal-experimental.asc +++ /dev/null @@ -1,29 +0,0 @@ ------BEGIN PGP PUBLIC KEY BLOCK----- - -xsBNBGSibUwBCADQRY7uvgMrUHYCHhtj9bPfe8aHFtfJlSH7dKyndJ1vBEVMwLmr -MFicY+42waSR8wQezfrX6f4u7YIDtmNf87VXXL2SW2B5vlDsBgjBBNaYBZ5I21gL -HOR53XPc9rjUMTbGuec7FOZ25FOYEuaG9BmaUtkCPHyrijLyy6eXweH3OWardwQs -lkT4gfPD/uGzg8BhQWlKdgrhkGETtq9sRqYiJ+r61UwL/ei+R7kTrOo3Ru2JOr0y -HD9zzJlNk9cGUOfHWy+5DoaByoBN4biLRtPJk/NnNxJ0NDQprKMHJh0NYmfn6Gwr -naaAoxNYp+WYsrT0QXVNtrgXdfiYe4LH2tE7ABEBAAHNM0Zvcmdlam86IEJleW9u -ZCBjb2RpbmcuIFdlIGZvcmdlLiAoRGViaWFuIFJlZ2lzdHJ5KcLAYgQTAQgAFgUC -ZKJtTAkQcY4SiaXuU7ACGwMCGQEAANj1CAAhKjY+RMYXzqoaBZ5OOehGXHcar2Lf -8PWIzX7TEXPPeCH2C6QOIeeHDQQ6BDhqIukUqzadgz0CdeaO2newf2HvEBF3beLD -B20hpqX9rPc+rSR/XqRJ/uFMZwK0fBRVqnzM9Oj5FhQfAbVEFYjHhwiPYrS21X2l -aDVw+PwSC6GTqgDKotQzwo66Iy5zxbu4dzibur8VOrVOQzKO0G5X4ihDjHi54ajJ -G7mXKuwjP/VaWYY3UalxRDqTZiZNPaVw4uPjOvcJbHA/Ox+pXIjYHlREzOBqnN71 -91hPt4MXGxWUMy4QBVLx3XWxWAJzMPJBP+mTM5FZI4woOn+IH/0gk7LqzsBNBGSi -bUwBCADdSRfcBpSPqtzHIUkpbPoldvMWvaXJPWDRw6cgzMUuUq9a/bs5ZCkxs1WA -YjWj51klUCzKyttdg9EKOnHGM0tJ/96OTOMQ1LByftq57QWlKnShWRHXqnx4WMJd -Ad383e4kcY8WzmCT7ggZ5AeXYR0MtE0nxMlMGVELR6CLEKrkq749Gwcu29hfO9JG -sAelD0QV3Bto7dQuGo+ywNqH+0CZYBL6qh3gETm1p3BAGVfABTuScw30VvjreHGK -2dIHjWKUUXTtmzkC2pdjMhNOphAYSmF/PxzMVgpM0EpKOR48qtc3LKvHMWjJbd3k -OkRMtptX7CJasT7g6r8y4wg40ijZABEBAAHCwF8EGAEIABMFAmSibUwJEHGOEoml -7lOwAhsMAAB3hAgArpnm2fgZOaA15yp1Mh5GiAjrzXGScmgJuAKRXq9N4pDVRRJx -ABlytuxlCLmeOKb+q9Lpj4G4y+rpK/EozGdTi04Vfg2ij8kMEJsqGKE0YrYYfsX7 -sAfpr9Cz3Hn7Q/7Z7QnhkVBhJvw+2XCWCXA63THC1oSEzBYuveWUX/BOlykXYXQT -A0pTJDe/iSaBrY15klehr7TFTtU3GNuP71a8gsvEXH0I9lbvuteQszI5S2eUlKIz -y+qMwiEeNdX6MTKQa6QFPxs20iz32vYzxvnahOhFKYdpgGsEhGH0df/ZdKNYNuv9 -ZdoaZeBwshMaOQlGR/POYyEr99Q9eJZY5QH8kg== -=ixNu ------END PGP PUBLIC KEY BLOCK----- diff --git a/repo-deb/experimental/debian/changelog b/repo-deb/experimental/debian/changelog deleted file mode 100644 index fc2457e..0000000 --- a/repo-deb/experimental/debian/changelog +++ /dev/null @@ -1,5 +0,0 @@ -forgejo-deb-experimental (0-0) unstable; urgency=medium - - * Initial version - - -- crystal Mon, 3 Jul 2023 06:30:00 +0000 diff --git a/repo-deb/experimental/debian/compat b/repo-deb/experimental/debian/compat deleted file mode 100644 index f599e28..0000000 --- a/repo-deb/experimental/debian/compat +++ /dev/null @@ -1 +0,0 @@ -10 diff --git a/repo-deb/experimental/debian/control b/repo-deb/experimental/debian/control deleted file mode 100644 index 094a72c..0000000 --- a/repo-deb/experimental/debian/control +++ /dev/null @@ -1,18 +0,0 @@ -Source: forgejo-deb-experimental -Section: admin -Priority: optional -Maintainer: crystal -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 diff --git a/repo-deb/experimental/debian/crystal-experimental-repokey.install b/repo-deb/experimental/debian/crystal-experimental-repokey.install deleted file mode 100644 index abce0e9..0000000 --- a/repo-deb/experimental/debian/crystal-experimental-repokey.install +++ /dev/null @@ -1 +0,0 @@ -code-forgejo-org-crystal-experimental.asc /etc/apt/trusted.gpg.d diff --git a/repo-deb/experimental/debian/forgejo-deb-experimental.install b/repo-deb/experimental/debian/forgejo-deb-experimental.install deleted file mode 100644 index 1fa1c1a..0000000 --- a/repo-deb/experimental/debian/forgejo-deb-experimental.install +++ /dev/null @@ -1 +0,0 @@ -forgejo-deb-experimental.list /etc/apt/sources.list.d diff --git a/repo-deb/experimental/debian/rules b/repo-deb/experimental/debian/rules deleted file mode 100755 index d1decc8..0000000 --- a/repo-deb/experimental/debian/rules +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/make -f - -%: - dh $@ --with=systemd diff --git a/repo-deb/experimental/forgejo-deb-experimental.list b/repo-deb/experimental/forgejo-deb-experimental.list deleted file mode 100644 index 6895080..0000000 --- a/repo-deb/experimental/forgejo-deb-experimental.list +++ /dev/null @@ -1 +0,0 @@ -deb https://code.forgejo.org/api/packages/crystal-experimental/debian bullseye forgejo From 50be46d1c0bb2f3a7de2fa681c5d8a262d9e6d89 Mon Sep 17 00:00:00 2001 From: crystal Date: Tue, 25 Jul 2023 06:42:29 -0600 Subject: [PATCH 062/172] Fix ci-status link --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0fcdc02..0c882be 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # 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/forgejo-contrib/forgejo-deb/status.svg)](https://ci.cryxtal.org/crystal/forgejo-deb) +### Build test: [![ci-status](https://ci.cryxtal.org/api/badges/forgejo-contrib/forgejo-deb/status.svg)](https://ci.cryxtal.org/forgejo-contrib/forgejo-deb) ## Download info 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. From a5ed0cf9b7f63207cbe6f4ce312246a268442141 Mon Sep 17 00:00:00 2001 From: crystal Date: Tue, 25 Jul 2023 11:17:57 -0600 Subject: [PATCH 063/172] upload releases to forgejo-contrib Debian package registry --- .crystalintegration.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.crystalintegration.yml b/.crystalintegration.yml index 3203fd5..c5bfd7e 100644 --- a/.crystalintegration.yml +++ b/.crystalintegration.yml @@ -341,7 +341,7 @@ pipeline: group: upload environment: FORGEJO_SITE: https://code.forgejo.org - FORGEJO_OWNER: crystal + FORGEJO_OWNER: forgejo-contrib DEBIAN_DIST: bullseye DEBIAN_COMPONENT: forgejo secrets: [ cfo_api_key ] From c6ed112b2daf11ebd46e8ed8f02b208aea05b284 Mon Sep 17 00:00:00 2001 From: crystal Date: Tue, 25 Jul 2023 06:44:50 -0600 Subject: [PATCH 064/172] 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. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0c882be..1079963 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ The default username for Forgejo's user is `forgejo`, but it can easily be chang 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/crystal/-/packages/debian/forgejo-deb-repo/0-0/files/2637 +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 From c6f6680bf4a338f37703f2152be8c9eda9fa40dc Mon Sep 17 00:00:00 2001 From: crystal Date: Sun, 30 Jul 2023 09:29:29 -0600 Subject: [PATCH 065/172] Forgejo v1.20.2-0 --- deb/debian/changelog | 7 +++++++ forgejo | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/deb/debian/changelog b/deb/debian/changelog index 823bc76..6fadf4c 100644 --- a/deb/debian/changelog +++ b/deb/debian/changelog @@ -1,3 +1,10 @@ +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 Sun, 30 Jul 2023 15:30:00 +0000 + forgejo (1.20.1.0-2) unstable; urgency=medium * Forgejo version 1.20.1-0 diff --git a/forgejo b/forgejo index dcab256..a198650 160000 --- a/forgejo +++ b/forgejo @@ -1 +1 @@ -Subproject commit dcab256781bcad7462ad9edfdd7c268118de47e9 +Subproject commit a1986507b7f962d0bb4f02c53b8e5f56ce7d66bc From 55377df38d4925c0ccbcdfc7e82345ce28e8ef2b Mon Sep 17 00:00:00 2001 From: crystal Date: Sun, 30 Jul 2023 11:21:38 -0600 Subject: [PATCH 066/172] move repo to forgejo/forgejo --- .gitmodules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitmodules b/.gitmodules index 72c0a9a..67768c7 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ [submodule "forgejo"] path = forgejo - url = https://sc.cryxtal.org/mirror/forgejo + url = https://sc.cryxtal.org/forgejo/forgejo From 00b3f4c6326e3a64d243189dad554102a7279b50 Mon Sep 17 00:00:00 2001 From: crystal Date: Mon, 21 Aug 2023 09:53:59 -0600 Subject: [PATCH 067/172] Forgejo v1.20.3-0 --- deb/debian/changelog | 7 +++++++ forgejo | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/deb/debian/changelog b/deb/debian/changelog index 6fadf4c..5f5f27f 100644 --- a/deb/debian/changelog +++ b/deb/debian/changelog @@ -1,3 +1,10 @@ +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 Mon, 21 Aug 2023 15:42:00 +0000 + forgejo (1.20.2.0-2) unstable; urgency=medium * Forgejo version 1.20.2-0 diff --git a/forgejo b/forgejo index a198650..07531cf 160000 --- a/forgejo +++ b/forgejo @@ -1 +1 @@ -Subproject commit a1986507b7f962d0bb4f02c53b8e5f56ce7d66bc +Subproject commit 07531cf9537d169bf8775d4099f853595219678a From dfa1b2ca753dd32bc54f049ffc8ceab16a9f573a Mon Sep 17 00:00:00 2001 From: crystal Date: Tue, 22 Aug 2023 08:52:55 -0600 Subject: [PATCH 068/172] steps (woodpecker 1.0) --- .crystalintegration.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.crystalintegration.yml b/.crystalintegration.yml index c5bfd7e..150e48c 100644 --- a/.crystalintegration.yml +++ b/.crystalintegration.yml @@ -42,7 +42,7 @@ clone: settings: recursive: true -pipeline: +steps: fetch-tags: image: *ci_verify_image pull: true From 1783bd11ee8b3a615ec4a9b45d88e70002af3c4f Mon Sep 17 00:00:00 2001 From: crystal Date: Tue, 22 Aug 2023 09:27:52 -0600 Subject: [PATCH 069/172] update changelog date --- deb/debian/changelog | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deb/debian/changelog b/deb/debian/changelog index 5f5f27f..4941b16 100644 --- a/deb/debian/changelog +++ b/deb/debian/changelog @@ -3,7 +3,7 @@ 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 Mon, 21 Aug 2023 15:42:00 +0000 + -- crystal Tue, 21 Aug 2023 15:27:00 +0000 forgejo (1.20.2.0-2) unstable; urgency=medium From 2faa3993e52ef626193dacb3a024af7fa9f8ab72 Mon Sep 17 00:00:00 2001 From: crystal Date: Sat, 9 Sep 2023 05:00:54 -0600 Subject: [PATCH 070/172] Forgejo v1.20.4-0 --- deb/debian/changelog | 7 +++++++ forgejo | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/deb/debian/changelog b/deb/debian/changelog index 4941b16..442b2ab 100644 --- a/deb/debian/changelog +++ b/deb/debian/changelog @@ -1,3 +1,10 @@ +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 Sat, 9 Sep 2023 11:00:00 +0000 + forgejo (1.20.3.0-1) unstable; urgency=medium * Forgejo version 1.20.3-0 diff --git a/forgejo b/forgejo index 07531cf..b63df8b 160000 --- a/forgejo +++ b/forgejo @@ -1 +1 @@ -Subproject commit 07531cf9537d169bf8775d4099f853595219678a +Subproject commit b63df8b5c491729f557fd8076b44f9df1d00eec1 From 36ea51de5a62f92104423adb9abdca8165adc899 Mon Sep 17 00:00:00 2001 From: crystal Date: Sat, 9 Sep 2023 06:02:26 -0600 Subject: [PATCH 071/172] remove all groups --- .crystalintegration.yml | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/.crystalintegration.yml b/.crystalintegration.yml index 150e48c..ccf55aa 100644 --- a/.crystalintegration.yml +++ b/.crystalintegration.yml @@ -53,7 +53,6 @@ steps: ci-verify: image: *ci_verify_image - group: deps environment: BUILD_SUBMODULE: *build_submodule commands: @@ -61,7 +60,6 @@ steps: deps-frontend: image: *nodejs_image - group: deps environment: BUILD_SUBMODULE: *build_submodule commands: @@ -69,7 +67,6 @@ steps: deps-backend: image: *golang_image - group: deps environment: BUILD_SUBMODULE: *build_submodule GOPROXY_OVERRIDE: *goproxy_override @@ -89,7 +86,6 @@ steps: security-check: image: *golang_image - group: checks environment: BUILD_SUBMODULE: *build_submodule GOPROXY_OVERRIDE: *goproxy_override @@ -101,7 +97,6 @@ steps: build-frontend: image: *nodejs_image - group: checks environment: BUILD_SUBMODULE: *build_submodule commands: @@ -109,7 +104,6 @@ steps: checks-backend: image: *forgejo_test_image - group: checks environment: BUILD_SUBMODULE: *build_submodule GOPROXY_OVERRIDE: *goproxy_override @@ -121,7 +115,6 @@ steps: download-bin-amd64: image: *bin_dl_image - group: build-main commands: - ./.ci-make.sh download-binary forgejo-bin-dl when: @@ -129,7 +122,6 @@ steps: build-forgejo-amd64: image: *golang_image - group: build-main environment: BUILD_SUBMODULE: *build_submodule GOSUMDB: sum.golang.org @@ -156,7 +148,6 @@ steps: package-bullseye: image: *deb_build_image - group: package commands: - ./.ci-make.sh package-prep - ./.ci-make.sh package-build @@ -164,7 +155,6 @@ steps: package-repo: image: *deb_build_image - group: package commands: - cd repo-deb - ./build.sh @@ -177,68 +167,57 @@ steps: 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: @@ -246,7 +225,6 @@ steps: 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: @@ -254,7 +232,6 @@ steps: 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: @@ -262,7 +239,6 @@ steps: 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: @@ -270,7 +246,6 @@ steps: 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: @@ -278,7 +253,6 @@ steps: 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: @@ -286,7 +260,6 @@ steps: 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: @@ -294,7 +267,6 @@ steps: 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: @@ -302,13 +274,11 @@ steps: 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: @@ -323,7 +293,6 @@ steps: upload-codeberg: image: woodpeckerci/plugin-gitea-release - group: upload settings: base_url: https://codeberg.org files: @@ -338,7 +307,6 @@ steps: publish-apt-repo: image: *ci_verify_image - group: upload environment: FORGEJO_SITE: https://code.forgejo.org FORGEJO_OWNER: forgejo-contrib From c9399d735871f4d25d0234aa8013c4d6c6ad3228 Mon Sep 17 00:00:00 2001 From: crystal Date: Sat, 9 Sep 2023 13:27:52 -0600 Subject: [PATCH 072/172] should be faster --- .ci-make.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.ci-make.sh b/.ci-make.sh index a35bf15..d8a0bd8 100755 --- a/.ci-make.sh +++ b/.ci-make.sh @@ -47,7 +47,7 @@ case "$1" in 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" @@ -112,7 +112,7 @@ case "$1" in HOME=$FORGEJO_HOME GITEA_WORK_DIR=$FORGEJO_HOME \ forgejo web --config /etc/forgejo/app.ini & sleep 10 - curl http://localhost:3000/ + curl http://localhost:3000/ | grep -A 4 "Powered by Forgejo" exit $? ;; "install-repo-test") From c6ae8be83b28f7c109ad650a595211a5a8fdc342 Mon Sep 17 00:00:00 2001 From: crystal Date: Sat, 9 Sep 2023 13:55:59 -0600 Subject: [PATCH 073/172] more ci optimizations --- .ci-make.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.ci-make.sh b/.ci-make.sh index d8a0bd8..672c2a7 100755 --- a/.ci-make.sh +++ b/.ci-make.sh @@ -110,7 +110,7 @@ case "$1" in [ -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 & + forgejo web -q --config /etc/forgejo/app.ini & sleep 10 curl http://localhost:3000/ | grep -A 4 "Powered by Forgejo" exit $? @@ -124,9 +124,9 @@ case "$1" in apt install "$3" sudo -u forgejo USER=forgejo \ HOME=/var/lib/forgejo GITEA_WORK_DIR=/var/lib/forgejo \ - forgejo web --config /etc/fogejo/app.ini & + 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 $? ;; esac From 62fbe87a216fa8d63596f60d94eb67ab4c941668 Mon Sep 17 00:00:00 2001 From: crystal Date: Sun, 10 Sep 2023 13:33:14 -0600 Subject: [PATCH 074/172] Revert "remove all groups" This reverts commit 36ea51de5a62f92104423adb9abdca8165adc899. --- .crystalintegration.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/.crystalintegration.yml b/.crystalintegration.yml index ccf55aa..150e48c 100644 --- a/.crystalintegration.yml +++ b/.crystalintegration.yml @@ -53,6 +53,7 @@ steps: ci-verify: image: *ci_verify_image + group: deps environment: BUILD_SUBMODULE: *build_submodule commands: @@ -60,6 +61,7 @@ steps: deps-frontend: image: *nodejs_image + group: deps environment: BUILD_SUBMODULE: *build_submodule commands: @@ -67,6 +69,7 @@ steps: deps-backend: image: *golang_image + group: deps environment: BUILD_SUBMODULE: *build_submodule GOPROXY_OVERRIDE: *goproxy_override @@ -86,6 +89,7 @@ steps: security-check: image: *golang_image + group: checks environment: BUILD_SUBMODULE: *build_submodule GOPROXY_OVERRIDE: *goproxy_override @@ -97,6 +101,7 @@ steps: build-frontend: image: *nodejs_image + group: checks environment: BUILD_SUBMODULE: *build_submodule commands: @@ -104,6 +109,7 @@ steps: checks-backend: image: *forgejo_test_image + group: checks environment: BUILD_SUBMODULE: *build_submodule GOPROXY_OVERRIDE: *goproxy_override @@ -115,6 +121,7 @@ steps: download-bin-amd64: image: *bin_dl_image + group: build-main commands: - ./.ci-make.sh download-binary forgejo-bin-dl when: @@ -122,6 +129,7 @@ steps: build-forgejo-amd64: image: *golang_image + group: build-main environment: BUILD_SUBMODULE: *build_submodule GOSUMDB: sum.golang.org @@ -148,6 +156,7 @@ steps: package-bullseye: image: *deb_build_image + group: package commands: - ./.ci-make.sh package-prep - ./.ci-make.sh package-build @@ -155,6 +164,7 @@ steps: package-repo: image: *deb_build_image + group: package commands: - cd repo-deb - ./build.sh @@ -167,57 +177,68 @@ steps: 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: @@ -225,6 +246,7 @@ steps: 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: @@ -232,6 +254,7 @@ steps: 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: @@ -239,6 +262,7 @@ steps: 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: @@ -246,6 +270,7 @@ steps: 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: @@ -253,6 +278,7 @@ steps: 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: @@ -260,6 +286,7 @@ steps: 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: @@ -267,6 +294,7 @@ steps: 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: @@ -274,11 +302,13 @@ steps: 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: @@ -293,6 +323,7 @@ steps: upload-codeberg: image: woodpeckerci/plugin-gitea-release + group: upload settings: base_url: https://codeberg.org files: @@ -307,6 +338,7 @@ steps: publish-apt-repo: image: *ci_verify_image + group: upload environment: FORGEJO_SITE: https://code.forgejo.org FORGEJO_OWNER: forgejo-contrib From b566c0a546a72c15079356971f01f86a5bd98e4c Mon Sep 17 00:00:00 2001 From: crystal Date: Sun, 10 Sep 2023 13:44:26 -0600 Subject: [PATCH 075/172] add LICENSE --- LICENSE | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..1fa3923 --- /dev/null +++ b/LICENSE @@ -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. From 666e850975b2d6619d9859b9f9e7a3ad6b11b32f Mon Sep 17 00:00:00 2001 From: crystal Date: Wed, 20 Sep 2023 14:03:16 -0600 Subject: [PATCH 076/172] Forgejo v1.20.4-1 --- deb/debian/changelog | 7 +++++++ forgejo | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/deb/debian/changelog b/deb/debian/changelog index 442b2ab..3b3c649 100644 --- a/deb/debian/changelog +++ b/deb/debian/changelog @@ -1,3 +1,10 @@ +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 Wed, 20 Sep 2023 20:03:00 +0000 + forgejo (1.20.4.0-1) unstable; urgency=medium * Forgejo version 1.20.4-0 diff --git a/forgejo b/forgejo index b63df8b..99a9302 160000 --- a/forgejo +++ b/forgejo @@ -1 +1 @@ -Subproject commit b63df8b5c491729f557fd8076b44f9df1d00eec1 +Subproject commit 99a93025d27480aa5a6f7e923558a292dcbde28c From 2c33a053df1434bda54c81593580693ba30d2c88 Mon Sep 17 00:00:00 2001 From: crystal Date: Wed, 20 Sep 2023 15:49:23 -0600 Subject: [PATCH 077/172] 1.20 branch --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1079963..e8226d7 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # 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/forgejo-contrib/forgejo-deb/status.svg)](https://ci.cryxtal.org/forgejo-contrib/forgejo-deb) +### Build test: [![ci-status](https://ci.cryxtal.org/api/badges/forgejo-contrib/forgejo-deb/status.svg?branch=1.20)](https://ci.cryxtal.org/forgejo-contrib/forgejo-deb) ## Download info 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. From 3a9c3e705688b5dacf2ab1c9c67c752cab4b2ad8 Mon Sep 17 00:00:00 2001 From: crystal Date: Sat, 7 Oct 2023 17:02:41 -0600 Subject: [PATCH 078/172] Forgejo v1.20.5-0 --- deb/debian/changelog | 7 +++++++ forgejo | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/deb/debian/changelog b/deb/debian/changelog index 3b3c649..acff6c8 100644 --- a/deb/debian/changelog +++ b/deb/debian/changelog @@ -1,3 +1,10 @@ +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 Sat, 7 Oct 2023 23:03:00 +0000 + forgejo (1.20.4.1-1) unstable; urgency=medium * Forgejo version 1.20.4-1 diff --git a/forgejo b/forgejo index 99a9302..e58e7bf 160000 --- a/forgejo +++ b/forgejo @@ -1 +1 @@ -Subproject commit 99a93025d27480aa5a6f7e923558a292dcbde28c +Subproject commit e58e7bf0883c6b878f34ff2677b48efba4d3cbbb From 65f9d490cde526957f966aad1e17ba20f15dae56 Mon Sep 17 00:00:00 2001 From: crystal Date: Sat, 25 Nov 2023 16:33:49 -0700 Subject: [PATCH 079/172] Replace example app.ini with empty default --- deb/app.ini | 2553 +-------------------------------------------------- 1 file changed, 3 insertions(+), 2550 deletions(-) diff --git a/deb/app.ini b/deb/app.ini index fac728e..e89597c 100644 --- a/deb/app.ini +++ b/deb/app.ini @@ -1,2552 +1,5 @@ -; This file lists the default values used by Gitea -;; Copy required sections to your own app.ini (default is custom/conf/app.ini) -;; and modify as needed. -;; Do not copy the whole file as-is, as it contains some invalid sections for illustrative purposes. -;; If you don't know what a setting is you should not set it. -;; -;; see https://docs.gitea.io/en-us/config-cheat-sheet/ for additional documentation. +# Empty default config file for forgejo-deb +# Forgejo's installer will populate this file with appropriate defaults. +# See also: https://forgejo.org/docs/latest/admin/config-cheat-sheet -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; Default Configuration (non-`app.ini` configuration) -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; -;; These values are environment-dependent but form the basis of a lot of values. They will be -;; reported as part of the default configuration when running `gitea --help` or on start-up. The order they are emitted there is slightly different but we will list them here in the order they are set-up. -;; -;; - _`AppPath`_: This is the absolute path of the running gitea binary. -;; - _`AppWorkPath`_: This refers to "working path" of the `gitea` binary. It is determined by using the first set thing in the following hierarchy: -;; - The `--work-path` flag passed to the binary -;; - The environment variable `$GITEA_WORK_DIR` -;; - A built-in value set at build time (see building from source) -;; - Otherwise it defaults to the directory of the _`AppPath`_ -;; - If any of the above are relative paths then they are made absolute against the -;; the directory of the _`AppPath`_ -;; - _`CustomPath`_: This is the base directory for custom templates and other options. -;; It is determined by using the first set thing in the following hierarchy: -;; - The `--custom-path` flag passed to the binary -;; - The environment variable `$GITEA_CUSTOM` -;; - A built-in value set at build time (see building from source) -;; - Otherwise it defaults to _`AppWorkPath`_`/custom` -;; - If any of the above are relative paths then they are made absolute against the -;; the directory of the _`AppWorkPath`_ -;; - _`CustomConf`_: This is the path to the `app.ini` file. -;; - The `--config` flag passed to the binary -;; - A built-in value set at build time (see building from source) -;; - Otherwise it defaults to _`CustomPath`_`/conf/app.ini` -;; - If any of the above are relative paths then they are made absolute against the -;; the directory of the _`CustomPath`_ -;; -;; In addition there is _`StaticRootPath`_ which can be set as a built-in at build time, but will otherwise default to _`AppWorkPath`_ - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; General Settings -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; -;; App name that shows in every page title -APP_NAME = ; Gitea: Git with a cup of tea -;; -;; RUN_USER will automatically detect the current user - but you can set it here change it if you run locally -RUN_USER = ; git -;; -;; Application run mode, affects performance and debugging. Either "dev", "prod" or "test", default is "prod" -RUN_MODE = ; prod - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -[server] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; -;; The protocol the server listens on. One of 'http', 'https', 'http+unix', 'fcgi' or 'fcgi+unix'. Defaults to 'http' -;PROTOCOL = http -;; -;; Expect PROXY protocol headers on connections -;USE_PROXY_PROTOCOL = false -;; -;; Use PROXY protocol in TLS Bridging mode -;PROXY_PROTOCOL_TLS_BRIDGING = false -;; -; Timeout to wait for PROXY protocol header (set to 0 to have no timeout) -;PROXY_PROTOCOL_HEADER_TIMEOUT=5s -;; -; Accept PROXY protocol headers with UNKNOWN type -;PROXY_PROTOCOL_ACCEPT_UNKNOWN=false -;; -;; Set the domain for the server -;DOMAIN = localhost -;; -;; Overwrite the automatically generated public URL. Necessary for proxies and docker. -;ROOT_URL = %(PROTOCOL)s://%(DOMAIN)s:%(HTTP_PORT)s/ -;; -;; when STATIC_URL_PREFIX is empty it will follow ROOT_URL -;STATIC_URL_PREFIX = -;; -;; The address to listen on. Either a IPv4/IPv6 address or the path to a unix socket. -;; If PROTOCOL is set to `http+unix` or `fcgi+unix`, this should be the name of the Unix socket file to use. -;; Relative paths will be made absolute against the _`AppWorkPath`_. -;HTTP_ADDR = 0.0.0.0 -;; -;; The port to listen on. Leave empty when using a unix socket. -;HTTP_PORT = 3000 -;; -;; If REDIRECT_OTHER_PORT is true, and PROTOCOL is set to https an http server -;; will be started on PORT_TO_REDIRECT and it will redirect plain, non-secure http requests to the main -;; ROOT_URL. Defaults are false for REDIRECT_OTHER_PORT and 80 for -;; PORT_TO_REDIRECT. -;REDIRECT_OTHER_PORT = false -;PORT_TO_REDIRECT = 80 -;; -;; expect PROXY protocol header on connections to https redirector. -;REDIRECTOR_USE_PROXY_PROTOCOL = %(USE_PROXY_PROTOCOL)s -;; Minimum and maximum supported TLS versions -;SSL_MIN_VERSION=TLSv1.2 -;SSL_MAX_VERSION= -;; -;; SSL Curve Preferences -;SSL_CURVE_PREFERENCES=X25519,P256 -;; -;; SSL Cipher Suites -;SSL_CIPHER_SUITES=; Will default to "ecdhe_ecdsa_with_aes_256_gcm_sha384,ecdhe_rsa_with_aes_256_gcm_sha384,ecdhe_ecdsa_with_aes_128_gcm_sha256,ecdhe_rsa_with_aes_128_gcm_sha256,ecdhe_ecdsa_with_chacha20_poly1305,ecdhe_rsa_with_chacha20_poly1305" if aes is supported by hardware, otherwise chacha will be first. -;; -;; Timeout for any write to the connection. (Set to -1 to disable all timeouts.) -;PER_WRITE_TIMEOUT = 30s -;; -;; Timeout per Kb written to connections. -;PER_WRITE_PER_KB_TIMEOUT = 30s -;; -;; Permission for unix socket -;UNIX_SOCKET_PERMISSION = 666 -;; -;; Local (DMZ) URL for Gitea workers (such as SSH update) accessing web service. -;; In most cases you do not need to change the default value. -;; Alter it only if your SSH server node is not the same as HTTP node. -;; Do not set this variable if PROTOCOL is set to 'unix'. -;LOCAL_ROOT_URL = %(PROTOCOL)s://%(HTTP_ADDR)s:%(HTTP_PORT)s/ -;; -;; When making local connections pass the PROXY protocol header. -;LOCAL_USE_PROXY_PROTOCOL = %(USE_PROXY_PROTOCOL)s -;; -;; Disable SSH feature when not available -;DISABLE_SSH = false -;; -;; Whether to use the builtin SSH server or not. -;START_SSH_SERVER = false -;; -;; Expect PROXY protocol header on connections to the built-in SSH server -;SSH_SERVER_USE_PROXY_PROTOCOL = false -;; -;; Username to use for the builtin SSH server. If blank, then it is the value of RUN_USER. -;BUILTIN_SSH_SERVER_USER = %(RUN_USER)s -;; -;; Domain name to be exposed in clone URL -;SSH_DOMAIN = %(DOMAIN)s -;; -;; SSH username displayed in clone URLs. -;SSH_USER = %(BUILTIN_SSH_SERVER_USER)s -;; -;; The network interface the builtin SSH server should listen on -;SSH_LISTEN_HOST = -;; -;; Port number to be exposed in clone URL -;SSH_PORT = 22 -;; -;; The port number the builtin SSH server should listen on -;SSH_LISTEN_PORT = %(SSH_PORT)s -;; -;; Root path of SSH directory, default is '~/.ssh', but you have to use '/home/git/.ssh'. -;SSH_ROOT_PATH = -;; -;; Gitea will create a authorized_keys file by default when it is not using the internal ssh server -;; If you intend to use the AuthorizedKeysCommand functionality then you should turn this off. -;SSH_CREATE_AUTHORIZED_KEYS_FILE = true -;; -;; Gitea will create a authorized_principals file by default when it is not using the internal ssh server -;; If you intend to use the AuthorizedPrincipalsCommand functionality then you should turn this off. -;SSH_CREATE_AUTHORIZED_PRINCIPALS_FILE = true -;; -;; For the built-in SSH server, choose the ciphers to support for SSH connections, -;; for system SSH this setting has no effect -;SSH_SERVER_CIPHERS = chacha20-poly1305@openssh.com, aes128-ctr, aes192-ctr, aes256-ctr, aes128-gcm@openssh.com, aes256-gcm@openssh.com -;; -;; For the built-in SSH server, choose the key exchange algorithms to support for SSH connections, -;; for system SSH this setting has no effect -;SSH_SERVER_KEY_EXCHANGES = curve25519-sha256, ecdh-sha2-nistp256, ecdh-sha2-nistp384, ecdh-sha2-nistp521, diffie-hellman-group14-sha256, diffie-hellman-group14-sha1 -;; -;; For the built-in SSH server, choose the MACs to support for SSH connections, -;; for system SSH this setting has no effect -;SSH_SERVER_MACS = hmac-sha2-256-etm@openssh.com, hmac-sha2-256, hmac-sha1 -;; -;; For the built-in SSH server, choose the keypair to offer as the host key -;; The private key should be at SSH_SERVER_HOST_KEY and the public SSH_SERVER_HOST_KEY.pub -;; relative paths are made absolute relative to the %(APP_DATA_PATH)s -;SSH_SERVER_HOST_KEYS=ssh/gitea.rsa, ssh/gogs.rsa -;; -;; Directory to create temporary files in when testing public keys using ssh-keygen, -;; default is the system temporary directory. -;SSH_KEY_TEST_PATH = -;; -;; Path to ssh-keygen, default is 'ssh-keygen' which means the shell is responsible for finding out which one to call. -;SSH_KEYGEN_PATH = ssh-keygen -;; -;; Enable SSH Authorized Key Backup when rewriting all keys, default is true -;SSH_AUTHORIZED_KEYS_BACKUP = true -;; -;; Determines which principals to allow -;; - empty: if SSH_TRUSTED_USER_CA_KEYS is empty this will default to off, otherwise will default to email, username. -;; - off: Do not allow authorized principals -;; - email: the principal must match the user's email -;; - username: the principal must match the user's username -;; - anything: there will be no checking on the content of the principal -;SSH_AUTHORIZED_PRINCIPALS_ALLOW = email, username -;; -;; Enable SSH Authorized Principals Backup when rewriting all keys, default is true -;SSH_AUTHORIZED_PRINCIPALS_BACKUP = true -;; -;; Specifies the public keys of certificate authorities that are trusted to sign user certificates for authentication. -;; Multiple keys should be comma separated. -;; E.g."ssh- ". or "ssh- , ssh- ". -;; For more information see "TrustedUserCAKeys" in the sshd config manpages. -;SSH_TRUSTED_USER_CA_KEYS = -;; Absolute path of the `TrustedUserCaKeys` file gitea will manage. -;; Default this `RUN_USER`/.ssh/gitea-trusted-user-ca-keys.pem -;; If you're running your own ssh server and you want to use the gitea managed file you'll also need to modify your -;; sshd_config to point to this file. The official docker image will automatically work without further configuration. -;SSH_TRUSTED_USER_CA_KEYS_FILENAME = -;; -;; Enable exposure of SSH clone URL to anonymous visitors, default is false -;SSH_EXPOSE_ANONYMOUS = false -;; -;; Timeout for any write to ssh connections. (Set to -1 to disable all timeouts.) -;; Will default to the PER_WRITE_TIMEOUT. -;SSH_PER_WRITE_TIMEOUT = 30s -;; -;; Timeout per Kb written to ssh connections. -;; Will default to the PER_WRITE_PER_KB_TIMEOUT. -;SSH_PER_WRITE_PER_KB_TIMEOUT = 30s -;; -;; Indicate whether to check minimum key size with corresponding type -;MINIMUM_KEY_SIZE_CHECK = false -;; -;; Disable CDN even in "prod" mode -;OFFLINE_MODE = false -;DISABLE_ROUTER_LOG = false -;; -;; TLS Settings: Either ACME or manual -;; (Other common TLS configuration are found before) -;ENABLE_ACME = false -;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; -;; ACME automatic TLS settings -;; -;; ACME directory URL (e.g. LetsEncrypt's staging/testing URL: https://acme-staging-v02.api.letsencrypt.org/directory) -;; Leave empty to default to LetsEncrypt's (production) URL -;ACME_URL = -;; -;; Explicitly accept the ACME's TOS. The specific TOS cannot be retrieved at the moment. -;ACME_ACCEPTTOS = false -;; -;; If the ACME CA is not in your system's CA trust chain, it can be manually added here -;ACME_CA_ROOT = -;; -;; Email used for the ACME registration service -;; Can be left blank to initialize at first run and use the cached value -;ACME_EMAIL = -;; -;; ACME live directory (not to be confused with ACME directory URL: ACME_URL) -;; (Refer to caddy's ACME manager https://github.com/caddyserver/certmagic) -;ACME_DIRECTORY = https -;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; -;; Manual TLS settings: (Only applicable if ENABLE_ACME=false) -;; -;; Generate steps: -;; $ ./gitea cert -ca=true -duration=8760h0m0s -host=myhost.example.com -;; -;; Or from a .pfx file exported from the Windows certificate store (do -;; not forget to export the private key): -;; $ openssl pkcs12 -in cert.pfx -out cert.pem -nokeys -;; $ openssl pkcs12 -in cert.pfx -out key.pem -nocerts -nodes -;; Paths are relative to CUSTOM_PATH -;CERT_FILE = https/cert.pem -;KEY_FILE = https/key.pem -;; -;; Root directory containing templates and static files. -;; default is the path where Gitea is executed -;STATIC_ROOT_PATH = ; Will default to the built-in value _`StaticRootPath`_ -;; -;; Default path for App data -;APP_DATA_PATH = data ; relative paths will be made absolute with _`AppWorkPath`_ -;; -;; Enable gzip compression for runtime-generated content, static resources excluded -;ENABLE_GZIP = false -;; -;; Application profiling (memory and cpu) -;; For "web" command it listens on localhost:6060 -;; For "serve" command it dumps to disk at PPROF_DATA_PATH as (cpuprofile|memprofile)__ -;ENABLE_PPROF = false -;; -;; PPROF_DATA_PATH, use an absolute path when you start gitea as service -;PPROF_DATA_PATH = data/tmp/pprof ; Path is relative to _`AppWorkPath`_ -;; -;; Landing page, can be "home", "explore", "organizations", "login", or any URL such as "/org/repo" or even "https://anotherwebsite.com" -;; The "login" choice is not a security measure but just a UI flow change, use REQUIRE_SIGNIN_VIEW to force users to log in. -;LANDING_PAGE = home -;; -;; Enables git-lfs support. true or false, default is false. -;LFS_START_SERVER = false -;; -;; -;; LFS authentication secret, change this yourself -LFS_JWT_SECRET = -;; -;; LFS authentication validity period (in time.Duration), pushes taking longer than this may fail. -;LFS_HTTP_AUTH_EXPIRY = 20m -;; -;; Maximum allowed LFS file size in bytes (Set to 0 for no limit). -;LFS_MAX_FILE_SIZE = 0 -;; -;; Maximum number of locks returned per page -;LFS_LOCKS_PAGING_NUM = 50 -;; -;; Allow graceful restarts using SIGHUP to fork -;ALLOW_GRACEFUL_RESTARTS = true -;; -;; After a restart the parent will finish ongoing requests before -;; shutting down. Force shutdown if this process takes longer than this delay. -;; set to a negative value to disable -;GRACEFUL_HAMMER_TIME = 60s -;; -;; Allows the setting of a startup timeout and waithint for Windows as SVC service -;; 0 disables this. -;STARTUP_TIMEOUT = 0 -;; -;; Static resources, includes resources on custom/, public/ and all uploaded avatars web browser cache time. Note that this cache is disabled when RUN_MODE is "dev". Default is 6h -;STATIC_CACHE_TIME = 6h - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -[database] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; -;; Database to use. Either "mysql", "postgres", "mssql" or "sqlite3". -;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; -;; MySQL Configuration -;; -DB_TYPE = mysql -HOST = 127.0.0.1:3306 ; can use socket e.g. /var/run/mysqld/mysqld.sock -NAME = gitea -USER = root -;PASSWD = ;Use PASSWD = `your password` for quoting if you use special characters in the password. -;SSL_MODE = false ; either "false" (default), "true", or "skip-verify" -;CHARSET = utf8mb4 ;either "utf8" or "utf8mb4", default is "utf8mb4". -;; -;; NOTICE: for "utf8mb4" you must use MySQL InnoDB > 5.6. Gitea is unable to check this. -;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; -;; Postgres Configuration -;; -;DB_TYPE = postgres -;HOST = 127.0.0.1:5432 ; can use socket e.g. /var/run/postgresql/ -;NAME = gitea -;USER = root -;PASSWD = -;SCHEMA = -;SSL_MODE=disable ;either "disable" (default), "require", or "verify-full" -;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; -;; SQLite Configuration -;; -;DB_TYPE = sqlite3 -;PATH= ; defaults to data/forgejo.db -;SQLITE_TIMEOUT = ; Query timeout defaults to: 500 -;SQLITE_JOURNAL_MODE = ; defaults to sqlite database default (often DELETE), can be used to enable WAL mode. https://www.sqlite.org/pragma.html#pragma_journal_mode -;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; -;; MSSQL Configuration -;; -;DB_TYPE = mssql -;HOST = 172.17.0.2:1433 -;NAME = gitea -;USER = SA -;PASSWD = MwantsaSecurePassword1 -;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; -;; Other settings -;; -;; For iterate buffer, default is 50 -;ITERATE_BUFFER_SIZE = 50 -;; -;; Show the database generated SQL -LOG_SQL = false ; if unset defaults to true -;; -;; Maximum number of DB Connect retries -;DB_RETRIES = 10 -;; -;; Backoff time per DB retry (time.Duration) -;DB_RETRY_BACKOFF = 3s -;; -;; Max idle database connections on connection pool, default is 2 -;MAX_IDLE_CONNS = 2 -;; -;; Database connection max life time, default is 0 or 3s mysql (See #6804 & #7071 for reasoning) -;CONN_MAX_LIFETIME = 3s -;; -;; Database maximum number of open connections, default is 0 meaning no maximum -;MAX_OPEN_CONNS = 0 -;; -;; Whether execute database models migrations automatically -;AUTO_MIGRATION = true - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -[security] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; -;; Whether the installer is disabled (set to true to disable the installer) -INSTALL_LOCK = false -;; -;; Global secret key that will be used -;; This key is VERY IMPORTANT. If you lose it, the data encrypted by it (like 2FA secret) can't be decrypted anymore. -SECRET_KEY = -;; -;; Alternative location to specify secret key, instead of this file; you cannot specify both this and SECRET_KEY, and must pick one -;; This key is VERY IMPORTANT. If you lose it, the data encrypted by it (like 2FA secret) can't be decrypted anymore. -;SECRET_KEY_URI = file:/etc/gitea/secret_key -;; -;; Secret used to validate communication within Gitea binary. -INTERNAL_TOKEN= -;; -;; Alternative location to specify internal token, instead of this file; you cannot specify both this and INTERNAL_TOKEN, and must pick one -;INTERNAL_TOKEN_URI = file:/etc/gitea/internal_token -;; -;; How long to remember that a user is logged in before requiring relogin (in days) -;LOGIN_REMEMBER_DAYS = 7 -;; -;; Name of the cookie used to store the current username. -;COOKIE_USERNAME = gitea_awesome -;; -;; Name of cookie used to store authentication information. -;COOKIE_REMEMBER_NAME = gitea_incredible -;; -;; Reverse proxy authentication header name of user name, email, and full name -;REVERSE_PROXY_AUTHENTICATION_USER = X-WEBAUTH-USER -;REVERSE_PROXY_AUTHENTICATION_EMAIL = X-WEBAUTH-EMAIL -;REVERSE_PROXY_AUTHENTICATION_FULL_NAME = X-WEBAUTH-FULLNAME -;; -;; Interpret X-Forwarded-For header or the X-Real-IP header and set this as the remote IP for the request -;REVERSE_PROXY_LIMIT = 1 -;; -;; List of IP addresses and networks separated by comma of trusted proxy servers. Use `*` to trust all. -;REVERSE_PROXY_TRUSTED_PROXIES = 127.0.0.0/8,::1/128 -;; -;; The minimum password length for new Users -;MIN_PASSWORD_LENGTH = 6 -;; -;; Set to true to allow users to import local server paths -;IMPORT_LOCAL_PATHS = false -;; -;; Set to false to allow users with git hook privileges to create custom git hooks. -;; Custom git hooks can be used to perform arbitrary code execution on the host operating system. -;; This enables the users to access and modify this config file and the Gitea database and interrupt the Gitea service. -;; By modifying the Gitea database, users can gain Gitea administrator privileges. -;; It also enables them to access other resources available to the user on the operating system that is running the Gitea instance and perform arbitrary actions in the name of the Gitea OS user. -;; WARNING: This maybe harmful to you website or your operating system. -;; WARNING: Setting this to true does not change existing hooks in git repos; adjust it before if necessary. -;DISABLE_GIT_HOOKS = true -;; -;; Set to true to disable webhooks feature. -;DISABLE_WEBHOOKS = false -;; -;; Set to false to allow pushes to gitea repositories despite having an incomplete environment - NOT RECOMMENDED -;ONLY_ALLOW_PUSH_IF_GITEA_ENVIRONMENT_SET = true -;; -;;Comma separated list of character classes required to pass minimum complexity. -;;If left empty or no valid values are specified, the default is off (no checking) -;;Classes include "lower,upper,digit,spec" -;PASSWORD_COMPLEXITY = off -;; -;; Password Hash algorithm, either "argon2", "pbkdf2", "scrypt" or "bcrypt" -;PASSWORD_HASH_ALGO = pbkdf2 -;; -;; Set false to allow JavaScript to read CSRF cookie -;CSRF_COOKIE_HTTP_ONLY = true -;; -;; Validate against https://haveibeenpwned.com/Passwords to see if a password has been exposed -;PASSWORD_CHECK_PWN = false -;; -;; Cache successful token hashes. API tokens are stored in the DB as pbkdf2 hashes however, this means that there is a potentially significant hashing load when there are multiple API operations. -;; This cache will store the successfully hashed tokens in a LRU cache as a balance between performance and security. -;SUCCESSFUL_TOKENS_CACHE_SIZE = 20 - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -[camo] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; -;; At the moment we only support images -;; -;; if the camo is enabled -;ENABLED = false -;; url to a camo image proxy, it **is required** if camo is enabled. -;SERVER_URL = -;; HMAC to encode urls with, it **is required** if camo is enabled. -;HMAC_KEY = -;; Set to true to use camo for https too lese only non https urls are proxyed -;ALLWAYS = false - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -[oauth2] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; -;; Enables OAuth2 provider -ENABLE = true -;; -;; Algorithm used to sign OAuth2 tokens. Valid values: HS256, HS384, HS512, RS256, RS384, RS512, ES256, ES384, ES512, EdDSA -;JWT_SIGNING_ALGORITHM = RS256 -;; -;; Private key file path used to sign OAuth2 tokens. The path is relative to APP_DATA_PATH. -;; This setting is only needed if JWT_SIGNING_ALGORITHM is set to RS256, RS384, RS512, ES256, ES384 or ES512. -;; The file must contain a RSA or ECDSA private key in the PKCS8 format. If no key exists a 4096 bit key will be created for you. -;JWT_SIGNING_PRIVATE_KEY_FILE = jwt/private.pem -;; -;; OAuth2 authentication secret for access and refresh tokens, change this yourself to a unique string. CLI generate option is helpful in this case. https://docs.gitea.io/en-us/command-line/#generate -;; This setting is only needed if JWT_SIGNING_ALGORITHM is set to HS256, HS384 or HS512. -;JWT_SECRET = -;; -;; Lifetime of an OAuth2 access token in seconds -;ACCESS_TOKEN_EXPIRATION_TIME = 3600 -;; -;; Lifetime of an OAuth2 refresh token in hours -;REFRESH_TOKEN_EXPIRATION_TIME = 730 -;; -;; Check if refresh token got already used -;INVALIDATE_REFRESH_TOKENS = false -;; -;; Maximum length of oauth2 token/cookie stored on server -;MAX_TOKEN_LENGTH = 32767 - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -[log] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; Root path for the log files - defaults to %(GITEA_WORK_DIR)/log -;ROOT_PATH = -;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; Main Logger -;; -;; Either "console", "file", "conn", "smtp" or "database", default is "console" -;; Use comma to separate multiple modes, e.g. "console, file" -MODE = console -;; -;; Either "Trace", "Debug", "Info", "Warn", "Error", "Critical" or "None", default is "Info" -LEVEL = Info -;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; Router Logger -;; -;; Switch off the router log -;DISABLE_ROUTER_LOG=false -;; -;; Set the log "modes" for the router log (if file is set the log file will default to router.log) -ROUTER = console -;; -;; The router will log different things at different levels. -;; -;; * started messages will be logged at TRACE level -;; * polling/completed routers will be logged at INFO -;; * slow routers will be logged at WARN -;; * failed routers will be logged at WARN -;; -;; The routing level will default to that of the system but individual router level can be set in -;; [log..router] LEVEL -;; - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; -;; Access Logger (Creates log in NCSA common log format) -;; -;ENABLE_ACCESS_LOG = false -;; -;; Set the log "modes" for the access log (if file is set the log file will default to access.log) -;ACCESS = file -;; -;; Sets the template used to create the access log. -;ACCESS_LOG_TEMPLATE = {{.Ctx.RemoteAddr}} - {{.Identity}} {{.Start.Format "[02/Jan/2006:15:04:05 -0700]" }} "{{.Ctx.Req.Method}} {{.Ctx.Req.URL.RequestURI}} {{.Ctx.Req.Proto}}" {{.ResponseWriter.Status}} {{.ResponseWriter.Size}} "{{.Ctx.Req.Referer}}\" \"{{.Ctx.Req.UserAgent}}" -;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; -;; SSH log (Creates log from ssh git request) -;; -;ENABLE_SSH_LOG = false -;; -;; Other Settings -;; -;; Print Stacktraces with logs. (Rarely helpful.) Either "Trace", "Debug", "Info", "Warn", "Error", "Critical", default is "None" -;STACKTRACE_LEVEL = None -;; -;; Buffer length of the channel, keep it as it is if you don't know what it is. -;BUFFER_LEN = 10000 - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; Creating specific log configuration -;; -;; You can set specific configuration for individual modes and subloggers -;; -;; Configuration available to all log modes/subloggers -;LEVEL= -;FLAGS = stdflags -;EXPRESSION = -;PREFIX = -;COLORIZE = false -;; -;; For "console" mode only -;STDERR = false -;; -;; For "file" mode only -;LEVEL = -;; Set the file_name for the logger. If this is a relative path this -;; will be relative to ROOT_PATH -;FILE_NAME = -;; This enables automated log rotate(switch of following options), default is true -;LOG_ROTATE = true -;; Max size shift of a single file, default is 28 means 1 << 28, 256MB -;MAX_SIZE_SHIFT = 28 -;; Segment log daily, default is true -;DAILY_ROTATE = true -;; delete the log file after n days, default is 7 -;MAX_DAYS = 7 -;; compress logs with gzip -;COMPRESS = true -;; compression level see godoc for compress/gzip -;COMPRESSION_LEVEL = -1 -; -;; For "conn" mode only -;LEVEL = -;; Reconnect host for every single message, default is false -;RECONNECT_ON_MSG = false -;; Try to reconnect when connection is lost, default is false -;RECONNECT = false -;; Either "tcp", "unix" or "udp", default is "tcp" -;PROTOCOL = tcp -;; Host address -;ADDR = -; -;; For "smtp" mode only -;LEVEL = -;; Name displayed in mail title, default is "Diagnostic message from server" -;SUBJECT = Diagnostic message from server -;; Mail server -;HOST = -;; Mailer user name and password -;USER = -;; Use PASSWD = `your password` for quoting if you use special characters in the password. -;PASSWD = -;; Receivers, can be one or more, e.g. 1@example.com,2@example.com -;RECEIVERS = - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -[git] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; -;; The path of git executable. If empty, Gitea searches through the PATH environment. -;PATH = -;; -;; The HOME directory for Git -;HOME_PATH = %(APP_DATA_PATH)s/home -;; -;; Disables highlight of added and removed changes -;DISABLE_DIFF_HIGHLIGHT = false -;; -;; Max number of lines allowed in a single file in diff view -;MAX_GIT_DIFF_LINES = 1000 -;; -;; Max number of allowed characters in a line in diff view -;MAX_GIT_DIFF_LINE_CHARACTERS = 5000 -;; -;; Max number of files shown in diff view -;MAX_GIT_DIFF_FILES = 100 -;; -;; Set the default commits range size -;COMMITS_RANGE_SIZE = 50 -;; -;; Set the default branches range size -;BRANCHES_RANGE_SIZE = 20 -;; -;; Arguments for command 'git gc', e.g. "--aggressive --auto" -;; see more on http://git-scm.com/docs/git-gc/ -;GC_ARGS = -;; -;; If use git wire protocol version 2 when git version >= 2.18, default is true, set to false when you always want git wire protocol version 1 -;; To enable this for Git over SSH when using a OpenSSH server, add `AcceptEnv GIT_PROTOCOL` to your sshd_config file. -;ENABLE_AUTO_GIT_WIRE_PROTOCOL = true -;; -;; Respond to pushes to a non-default branch with a URL for creating a Pull Request (if the repository has them enabled) -;PULL_REQUEST_PUSH_MESSAGE = true -;; -;; (Go-Git only) Don't cache objects greater than this in memory. (Set to 0 to disable.) -;LARGE_OBJECT_THRESHOLD = 1048576 -;; Set to true to forcibly set core.protectNTFS=false -;DISABLE_CORE_PROTECT_NTFS=false -;; Disable the usage of using partial clones for git. -;DISABLE_PARTIAL_CLONE = false - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -[service] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; -;; Time limit to confirm account/email registration -;ACTIVE_CODE_LIVE_MINUTES = 180 -;; -;; Time limit to perform the reset of a forgotten password -;RESET_PASSWD_CODE_LIVE_MINUTES = 180 -;; -;; Whether a new user needs to confirm their email when registering. -;REGISTER_EMAIL_CONFIRM = false -;; -;; Whether a new user needs to be confirmed manually after registration. (Requires `REGISTER_EMAIL_CONFIRM` to be disabled.) -;REGISTER_MANUAL_CONFIRM = false -;; -;; List of domain names that are allowed to be used to register on a Gitea instance -;; gitea.io,example.com -;EMAIL_DOMAIN_WHITELIST = -;; -;; Comma-separated list of domain names that are not allowed to be used to register on a Gitea instance -;EMAIL_DOMAIN_BLOCKLIST = -;; -;; Disallow registration, only allow admins to create accounts. -;DISABLE_REGISTRATION = false -;; -;; Allow registration only using gitea itself, it works only when DISABLE_REGISTRATION is false -;ALLOW_ONLY_INTERNAL_REGISTRATION = false -;; -;; Allow registration only using third-party services, it works only when DISABLE_REGISTRATION is false -;ALLOW_ONLY_EXTERNAL_REGISTRATION = false -;; -;; User must sign in to view anything. -;REQUIRE_SIGNIN_VIEW = false -;; -;; Mail notification -;ENABLE_NOTIFY_MAIL = false -;; -;; This setting enables gitea to be signed in with HTTP BASIC Authentication using the user's password -;; If you set this to false you will not be able to access the tokens endpoints on the API with your password -;; Please note that setting this to false will not disable OAuth Basic or Basic authentication using a token -;ENABLE_BASIC_AUTHENTICATION = true -;; -;; More detail: https://github.com/gogits/gogs/issues/165 -;ENABLE_REVERSE_PROXY_AUTHENTICATION = false -;ENABLE_REVERSE_PROXY_AUTO_REGISTRATION = false -;ENABLE_REVERSE_PROXY_EMAIL = false -;ENABLE_REVERSE_PROXY_FULL_NAME = false -;; -;; Enable captcha validation for registration -;ENABLE_CAPTCHA = false -;; -;; Enable this to require captcha validation for login -;REQUIRE_CAPTCHA_FOR_LOGIN = false -;; -;; Type of captcha you want to use. Options: image, recaptcha, hcaptcha, mcaptcha. -;CAPTCHA_TYPE = image -;; -;; Change this to use recaptcha.net or other recaptcha service -;RECAPTCHA_URL = https://www.google.com/recaptcha/ -;; Enable recaptcha to use Google's recaptcha service -;; Go to https://www.google.com/recaptcha/admin to sign up for a key -;RECAPTCHA_SECRET = -;RECAPTCHA_SITEKEY = -;; -;; For hCaptcha, create an account at https://accounts.hcaptcha.com/login to get your keys -;HCAPTCHA_SECRET = -;HCAPTCHA_SITEKEY = -;; -;; Change this to use demo.mcaptcha.org or your self-hosted mcaptcha.org instance. -;MCAPTCHA_URL = https://demo.mcaptcha.org -;; -;; Go to your configured mCaptcha instance and register a sitekey -;; and use your account's secret. -;MCAPTCHA_SECRET = -;MCAPTCHA_SITEKEY = -;; -;; Default value for KeepEmailPrivate -;; Each new user will get the value of this setting copied into their profile -;DEFAULT_KEEP_EMAIL_PRIVATE = false -;; -;; Default value for AllowCreateOrganization -;; Every new user will have rights set to create organizations depending on this setting -;DEFAULT_ALLOW_CREATE_ORGANIZATION = true -;; Default value for IsRestricted -;; Every new user will have restricted permissions depending on this setting -;DEFAULT_USER_IS_RESTRICTED = false -;; -;; Either "public", "limited" or "private", default is "public" -;; Limited is for users visible only to signed users -;; Private is for users visible only to members of their organizations -;; Public is for users visible for everyone -;DEFAULT_USER_VISIBILITY = public -;; -;; Set which visibility modes a user can have -;ALLOWED_USER_VISIBILITY_MODES = public,limited,private -;; -;; Either "public", "limited" or "private", default is "public" -;; Limited is for organizations visible only to signed users -;; Private is for organizations visible only to members of the organization -;; Public is for organizations visible to everyone -;DEFAULT_ORG_VISIBILITY = public -;; -;; Default value for DefaultOrgMemberVisible -;; True will make the membership of the users visible when added to the organisation -;DEFAULT_ORG_MEMBER_VISIBLE = false -;; -;; Default value for EnableDependencies -;; Repositories will use dependencies by default depending on this setting -;DEFAULT_ENABLE_DEPENDENCIES = true -;; -;; Dependencies can be added from any repository where the user is granted access or only from the current repository depending on this setting. -;ALLOW_CROSS_REPOSITORY_DEPENDENCIES = true -;; -;; Enable heatmap on users profiles. -;ENABLE_USER_HEATMAP = true -;; -;; Enable Timetracking -;ENABLE_TIMETRACKING = true -;; -;; Default value for EnableTimetracking -;; Repositories will use timetracking by default depending on this setting -;DEFAULT_ENABLE_TIMETRACKING = true -;; -;; Default value for AllowOnlyContributorsToTrackTime -;; Only users with write permissions can track time if this is true -;DEFAULT_ALLOW_ONLY_CONTRIBUTORS_TO_TRACK_TIME = true -;; -;; Value for the domain part of the user's email address in the git log if user -;; has set KeepEmailPrivate to true. The user's email will be replaced with a -;; concatenation of the user name in lower case, "@" and NO_REPLY_ADDRESS. Default -;; value is "noreply." + DOMAIN, where DOMAIN resolves to the value from server.DOMAIN -;; Note: do not use the notation below -;NO_REPLY_ADDRESS = ; noreply. -;; -;; Show Registration button -;SHOW_REGISTRATION_BUTTON = true -;; -;; Show milestones dashboard page - a view of all the user's milestones -;SHOW_MILESTONES_DASHBOARD_PAGE = true -;; -;; Default value for AutoWatchNewRepos -;; When adding a repo to a team or creating a new repo all team members will watch the -;; repo automatically if enabled -;AUTO_WATCH_NEW_REPOS = true -;; -;; Default value for AutoWatchOnChanges -;; Make the user watch a repository When they commit for the first time -;AUTO_WATCH_ON_CHANGES = false -;; -;; Minimum amount of time a user must exist before comments are kept when the user is deleted. -;USER_DELETE_WITH_COMMENTS_MAX_TIME = 0 -;; Valid site url schemes for user profiles -;VALID_SITE_URL_SCHEMES=http,https - - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; Other Settings -;; -;; Uncomment the [section.header] if you wish to -;; set the below settings. -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[repository] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; Root path for storing all repository data. By default, it is set to %(APP_DATA_PATH)s/gitea-repositories. -;; A relative path is interpreted as _`AppWorkPath`_/%(ROOT)s -;ROOT = -;; -;; The script type this server supports. Usually this is `bash`, but some users report that only `sh` is available. -;SCRIPT_TYPE = bash -;; -;; DETECTED_CHARSETS_ORDER tie-break order for detected charsets. -;; If the charsets have equal confidence, tie-breaking will be done by order in this list -;; with charsets earlier in the list chosen in preference to those later. -;; Adding "defaults" will place the unused charsets at that position. -;DETECTED_CHARSETS_ORDER = UTF-8, UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE, ISO-8859, windows-1252, ISO-8859, windows-1250, ISO-8859, ISO-8859, ISO-8859, windows-1253, ISO-8859, windows-1255, ISO-8859, windows-1251, windows-1256, KOI8-R, ISO-8859, windows-1254, Shift_JIS, GB18030, EUC-JP, EUC-KR, Big5, ISO-2022, ISO-2022, ISO-2022, IBM424_rtl, IBM424_ltr, IBM420_rtl, IBM420_ltr -;; -;; Default ANSI charset to override non-UTF-8 charsets to -;ANSI_CHARSET = -;; -;; Force every new repository to be private -;FORCE_PRIVATE = false -;; -;; Default privacy setting when creating a new repository, allowed values: last, private, public. Default is last which means the last setting used. -;DEFAULT_PRIVATE = last -;; -;; Default private when using push-to-create -;DEFAULT_PUSH_CREATE_PRIVATE = true -;; -;; Global limit of repositories per user, applied at creation time. -1 means no limit -;MAX_CREATION_LIMIT = -1 -;; -;; Mirror sync queue length, increase if mirror syncing starts hanging (DEPRECATED: please use [queue.mirror] LENGTH instead) -;MIRROR_QUEUE_LENGTH = 1000 -;; -;; Patch test queue length, increase if pull request patch testing starts hanging (DEPRECATED: please use [queue.pr_patch_checker] LENGTH instead) -;PULL_REQUEST_QUEUE_LENGTH = 1000 -;; -;; Preferred Licenses to place at the top of the List -;; The name here must match the filename in options/license or custom/options/license -;PREFERRED_LICENSES = Apache License 2.0,MIT License -;; -;; Disable the ability to interact with repositories using the HTTP protocol -;DISABLE_HTTP_GIT = false -;; -;; Value for Access-Control-Allow-Origin header, default is not to present -;; WARNING: This may be harmful to your website if you do not give it a right value. -;ACCESS_CONTROL_ALLOW_ORIGIN = -;; -;; Force ssh:// clone url instead of scp-style uri when default SSH port is used -;USE_COMPAT_SSH_URI = false -;; -;; Close issues as long as a commit on any branch marks it as fixed -;; Comma separated list of globally disabled repo units. Allowed values: repo.issues, repo.ext_issues, repo.pulls, repo.wiki, repo.ext_wiki, repo.projects -;DISABLED_REPO_UNITS = -;; -;; Comma separated list of default repo units. Allowed values: repo.code, repo.releases, repo.issues, repo.pulls, repo.wiki, repo.projects. -;; Note: Code and Releases can currently not be deactivated. If you specify default repo units you should still list them for future compatibility. -;; External wiki and issue tracker can't be enabled by default as it requires additional settings. -;; Disabled repo units will not be added to new repositories regardless if it is in the default list. -;DEFAULT_REPO_UNITS = repo.code,repo.releases,repo.issues,repo.pulls,repo.wiki,repo.projects -;; -;; Prefix archive files by placing them in a directory named after the repository -;PREFIX_ARCHIVE_FILES = true -;; -;; Disable migrating feature. -;DISABLE_MIGRATIONS = false -;; -;; Disable stars feature. -;DISABLE_STARS = false -;; -;; The default branch name of new repositories -;DEFAULT_BRANCH = main -;; -;; Allow adoption of unadopted repositories -;ALLOW_ADOPTION_OF_UNADOPTED_REPOSITORIES = false -;; -;; Allow deletion of unadopted repositories -;ALLOW_DELETION_OF_UNADOPTED_REPOSITORIES = false - -;; Don't allow download source archive files from UI -;DISABLE_DOWNLOAD_SOURCE_ARCHIVES = false - -;; Allow fork repositories without maximum number limit -;ALLOW_FORK_WITHOUT_MAXIMUM_LIMIT = true - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[repository.editor] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; -;; List of file extensions for which lines should be wrapped in the Monaco editor -;; Separate extensions with a comma. To line wrap files without an extension, just put a comma -;LINE_WRAP_EXTENSIONS = .txt,.md,.markdown,.mdown,.mkd, -;; -;; Valid file modes that have a preview API associated with them, such as api/v1/markdown -;; Separate the values by commas. The preview tab in edit mode won't be displayed if the file extension doesn't match -;PREVIEWABLE_FILE_MODES = markdown - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[repository.local] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; -;; Path for local repository copy. Defaults to `tmp/local-repo` (content gets deleted on gitea restart) -;LOCAL_COPY_PATH = tmp/local-repo - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[repository.upload] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; -;; Whether repository file uploads are enabled. Defaults to `true` -;ENABLED = true -;; -;; Path for uploads. Defaults to `data/tmp/uploads` (content gets deleted on gitea restart) -;TEMP_PATH = data/tmp/uploads -;; -;; Comma-separated list of allowed file extensions (`.zip`), mime types (`text/plain`) or wildcard type (`image/*`, `audio/*`, `video/*`). Empty value or `*/*` allows all types. -;ALLOWED_TYPES = -;; -;; Max size of each file in megabytes. Defaults to 3MB -;FILE_MAX_SIZE = 3 -;; -;; Max number of files per upload. Defaults to 5 -;MAX_FILES = 5 - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[repository.pull-request] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; -;; List of prefixes used in Pull Request title to mark them as Work In Progress (matched in a case-insensitive manner) -;WORK_IN_PROGRESS_PREFIXES = WIP:,[WIP] -;; -;; List of keywords used in Pull Request comments to automatically close a related issue -;CLOSE_KEYWORDS = close,closes,closed,fix,fixes,fixed,resolve,resolves,resolved -;; -;; List of keywords used in Pull Request comments to automatically reopen a related issue -;REOPEN_KEYWORDS = reopen,reopens,reopened -;; -;; Set default merge style for repository creating, valid options: merge, rebase, rebase-merge, squash -;DEFAULT_MERGE_STYLE = merge -;; -;; In the default merge message for squash commits include at most this many commits -;DEFAULT_MERGE_MESSAGE_COMMITS_LIMIT = 50 -;; -;; In the default merge message for squash commits limit the size of the commit messages to this -;DEFAULT_MERGE_MESSAGE_SIZE = 5120 -;; -;; In the default merge message for squash commits walk all commits to include all authors in the Co-authored-by otherwise just use those in the limited list -;DEFAULT_MERGE_MESSAGE_ALL_AUTHORS = false -;; -;; In default merge messages limit the number of approvers listed as Reviewed-by: to this many -;DEFAULT_MERGE_MESSAGE_MAX_APPROVERS = 10 -;; -;; In default merge messages only include approvers who are official -;DEFAULT_MERGE_MESSAGE_OFFICIAL_APPROVERS_ONLY = true -;; -;; Add co-authored-by and co-committed-by trailers if committer does not match author -;ADD_CO_COMMITTER_TRAILERS = true -;; -;; In addition to testing patches using the three-way merge method, re-test conflicting patches with git apply -;TEST_CONFLICTING_PATCHES_WITH_GIT_APPLY = false - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[repository.issue] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; List of reasons why a Pull Request or Issue can be locked -;LOCK_REASONS = Too heated,Off-topic,Resolved,Spam - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[repository.release] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; Comma-separated list of allowed file extensions (`.zip`), mime types (`text/plain`) or wildcard type (`image/*`, `audio/*`, `video/*`). Empty value or `*/*` allows all types. -;ALLOWED_TYPES = -;DEFAULT_PAGING_NUM = 10 - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[repository.signing] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; -;; GPG key to use to sign commits, Defaults to the default - that is the value of git config --get user.signingkey -;; run in the context of the RUN_USER -;; Switch to none to stop signing completely -;SIGNING_KEY = default -;; -;; If a SIGNING_KEY ID is provided and is not set to default, use the provided Name and Email address as the signer. -;; These should match a publicized name and email address for the key. (When SIGNING_KEY is default these are set to -;; the results of git config --get user.name and git config --get user.email respectively and can only be overridden -;; by setting the SIGNING_KEY ID to the correct ID.) -;SIGNING_NAME = -;SIGNING_EMAIL = -;; -;; Sets the default trust model for repositories. Options are: collaborator, committer, collaboratorcommitter -;DEFAULT_TRUST_MODEL = collaborator -;; -;; Determines when gitea should sign the initial commit when creating a repository -;; Either: -;; - never -;; - pubkey: only sign if the user has a pubkey -;; - twofa: only sign if the user has logged in with twofa -;; - always -;; options other than none and always can be combined as comma separated list -;INITIAL_COMMIT = always -;; -;; Determines when to sign for CRUD actions -;; - as above -;; - parentsigned: requires that the parent commit is signed. -;CRUD_ACTIONS = pubkey, twofa, parentsigned -;; Determines when to sign Wiki commits -;; - as above -;WIKI = never -;; -;; Determines when to sign on merges -;; - basesigned: require that the parent of commit on the base repo is signed. -;; - commitssigned: require that all the commits in the head branch are signed. -;; - approved: only sign when merging an approved pr to a protected branch -;MERGES = pubkey, twofa, basesigned, commitssigned - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[repository.mimetype_mapping] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; -;; Custom MIME type mapping for downloadable files -;.apk=application/vnd.android.package-archive - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[project] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; Default templates for project boards -;PROJECT_BOARD_BASIC_KANBAN_TYPE = To Do, In Progress, Done -;PROJECT_BOARD_BUG_TRIAGE_TYPE = Needs Triage, High Priority, Low Priority, Closed - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[cors] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; -;; More information about CORS can be found here: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#The_HTTP_response_headers -;; enable cors headers (disabled by default) -;ENABLED = false -;; -;; scheme of allowed requests -;SCHEME = http -;; -;; list of requesting domains that are allowed -;ALLOW_DOMAIN = * -;; -;; allow subdomains of headers listed above to request -;ALLOW_SUBDOMAIN = false -;; -;; list of methods allowed to request -;METHODS = GET,HEAD,POST,PUT,PATCH,DELETE,OPTIONS -;; -;; max time to cache response -;MAX_AGE = 10m -;; -;; allow request with credentials -;ALLOW_CREDENTIALS = false -;; -;; headers to permit -;HEADERS = Content-Type,User-Agent -;; -;; set X-FRAME-OPTIONS header -;X_FRAME_OPTIONS = SAMEORIGIN - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[ui] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; -;; Number of repositories that are displayed on one explore page -;EXPLORE_PAGING_NUM = 20 -;; -;; Number of issues that are displayed on one page -;ISSUE_PAGING_NUM = 20 -;; -;; Number of maximum commits displayed in one activity feed -;FEED_MAX_COMMIT_NUM = 5 -;; -;; Number of items that are displayed in home feed -;FEED_PAGING_NUM = 20 -;; -;; Number of items that are displayed in a single subsitemap -;SITEMAP_PAGING_NUM = 20 -;; -;; Number of maximum commits displayed in commit graph. -;GRAPH_MAX_COMMIT_NUM = 100 -;; -;; Number of line of codes shown for a code comment -;CODE_COMMENT_LINES = 4 -;; -;; Value of `theme-color` meta tag, used by Android >= 5.0 -;; An invalid color like "none" or "disable" will have the default style -;; More info: https://developers.google.com/web/updates/2014/11/Support-for-theme-color-in-Chrome-39-for-Android -;THEME_COLOR_META_TAG = `#6cc644` -;; -;; Max size of files to be displayed (default is 8MiB) -;MAX_DISPLAY_FILE_SIZE = 8388608 -;; -;; Whether the email of the user should be shown in the Explore Users page -;SHOW_USER_EMAIL = true -;; -;; Set the default theme for the Gitea install -;DEFAULT_THEME = auto -;; -;; All available themes. Allow users select personalized themes regardless of the value of `DEFAULT_THEME`. -;THEMES = auto,gitea,arc-green -;; -;; All available reactions users can choose on issues/prs and comments. -;; Values can be emoji alias (:smile:) or a unicode emoji. -;; For custom reactions, add a tightly cropped square image to public/img/emoji/reaction_name.png -;REACTIONS = +1, -1, laugh, hooray, confused, heart, rocket, eyes -;; -;; Additional Emojis not defined in the utf8 standard -;; By default we support gitea (:gitea:), to add more copy them to public/img/emoji/emoji_name.png and add it to this config. -;; Dont mistake it for Reactions. -;CUSTOM_EMOJIS = gitea, codeberg, gitlab, git, github, gogs -;; -;; Whether the full name of the users should be shown where possible. If the full name isn't set, the username will be used. -;DEFAULT_SHOW_FULL_NAME = false -;; -;; Whether to search within description at repository search on explore page. -;SEARCH_REPO_DESCRIPTION = true -;; -;; Whether to enable a Service Worker to cache frontend assets -;USE_SERVICE_WORKER = false -;; -;; Whether to only show relevant repos on the explore page when no keyword is specified and default sorting is used. -;; A repo is considered irrelevant if it's a fork or if it has no metadata (no description, no icon, no topic). -;ONLY_SHOW_RELEVANT_REPOS = false - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[ui.admin] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; -;; Number of users that are displayed on one page -;USER_PAGING_NUM = 50 -;; -;; Number of repos that are displayed on one page -;REPO_PAGING_NUM = 50 -;; -;; Number of notices that are displayed on one page -;NOTICE_PAGING_NUM = 25 -;; -;; Number of organizations that are displayed on one page -;ORG_PAGING_NUM = 50 - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[ui.user] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; Number of repos that are displayed on one page -;REPO_PAGING_NUM = 15 - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[ui.meta] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;AUTHOR = Gitea - Git with a cup of tea -;DESCRIPTION = Gitea (Git with a cup of tea) is a painless self-hosted Git service written in Go -;KEYWORDS = go,git,self-hosted,gitea - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[ui.notification] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; -;; Control how often the notification endpoint is polled to update the notification -;; The timeout will increase to MAX_TIMEOUT in TIMEOUT_STEPs if the notification count is unchanged -;; Set MIN_TIMEOUT to -1 to turn off -;MIN_TIMEOUT = 10s -;MAX_TIMEOUT = 60s -;TIMEOUT_STEP = 10s -;; -;; This setting determines how often the db is queried to get the latest notification counts. -;; If the browser client supports EventSource and SharedWorker, a SharedWorker will be used in preference to polling notification. Set to -1 to disable the EventSource -;EVENT_SOURCE_UPDATE_TIME = 10s - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[ui.svg] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; -;; Whether to render SVG files as images. If SVG rendering is disabled, SVG files are displayed as text and cannot be embedded in markdown files as images. -;ENABLE_RENDER = true - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[ui.csv] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; -;; Maximum allowed file size in bytes to render CSV files as table. (Set to 0 for no limit). -;MAX_FILE_SIZE = 524288 - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[markdown] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; -;; Render soft line breaks as hard line breaks, which means a single newline character between -;; paragraphs will cause a line break and adding trailing whitespace to paragraphs is not -;; necessary to force a line break. -;; Render soft line breaks as hard line breaks for comments -;ENABLE_HARD_LINE_BREAK_IN_COMMENTS = true -;; -;; Render soft line breaks as hard line breaks for markdown documents -;ENABLE_HARD_LINE_BREAK_IN_DOCUMENTS = false -;; -;; Comma separated list of custom URL-Schemes that are allowed as links when rendering Markdown -;; for example git,magnet,ftp (more at https://en.wikipedia.org/wiki/List_of_URI_schemes) -;; URLs starting with http and https are always displayed, whatever is put in this entry. -;CUSTOM_URL_SCHEMES = -;; -;; List of file extensions that should be rendered/edited as Markdown -;; Separate the extensions with a comma. To render files without any extension as markdown, just put a comma -;FILE_EXTENSIONS = .md,.markdown,.mdown,.mkd -;; -;; Enables math inline and block detection -;ENABLE_MATH = true - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[ssh.minimum_key_sizes] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; -;; Define allowed algorithms and their minimum key length (use -1 to disable a type) -;ED25519 = 256 -;ECDSA = 256 -;RSA = 2047 ; we allow 2047 here because an otherwise valid 2048 bit RSA key can be reported as having 2047 bit length -;DSA = -1 ; set to 1024 to switch on - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[indexer] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; -;; Issue Indexer settings -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; -;; Issue indexer type, currently support: bleve, db or elasticsearch, default is bleve -;ISSUE_INDEXER_TYPE = bleve -;; -;; Issue indexer storage path, available when ISSUE_INDEXER_TYPE is bleve -;ISSUE_INDEXER_PATH = indexers/issues.bleve ; Relative paths will be made absolute against _`AppWorkPath`_. -;; -;; Issue indexer connection string, available when ISSUE_INDEXER_TYPE is elasticsearch -;ISSUE_INDEXER_CONN_STR = http://elastic:changeme@localhost:9200 -;; -;; Issue indexer name, available when ISSUE_INDEXER_TYPE is elasticsearch -;ISSUE_INDEXER_NAME = gitea_issues -;; -;; Timeout the indexer if it takes longer than this to start. -;; Set to -1 to disable timeout. -;STARTUP_TIMEOUT = 30s -;; -;; Issue indexer queue, currently support: channel, levelqueue or redis, default is levelqueue (deprecated - use [queue.issue_indexer]) -;ISSUE_INDEXER_QUEUE_TYPE = levelqueue; **DEPRECATED** use settings in `[queue.issue_indexer]`. -;; -;; When ISSUE_INDEXER_QUEUE_TYPE is levelqueue, this will be the path where the queue will be saved. -;; This can be overridden by `ISSUE_INDEXER_QUEUE_CONN_STR`. -;; default is queues/common -;ISSUE_INDEXER_QUEUE_DIR = queues/common; **DEPRECATED** use settings in `[queue.issue_indexer]`. Relative paths will be made absolute against `%(APP_DATA_PATH)s`. -;; -;; When `ISSUE_INDEXER_QUEUE_TYPE` is `redis`, this will store the redis connection string. -;; When `ISSUE_INDEXER_QUEUE_TYPE` is `levelqueue`, this is a directory or additional options of -;; the form `leveldb://path/to/db?option=value&....`, and overrides `ISSUE_INDEXER_QUEUE_DIR`. -;ISSUE_INDEXER_QUEUE_CONN_STR = "addrs=127.0.0.1:6379 db=0"; **DEPRECATED** use settings in `[queue.issue_indexer]`. -;; -;; Batch queue number, default is 20 -;ISSUE_INDEXER_QUEUE_BATCH_NUMBER = 20; **DEPRECATED** use settings in `[queue.issue_indexer]`. - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; Repository Indexer settings -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; -;; repo indexer by default disabled, since it uses a lot of disk space -;REPO_INDEXER_ENABLED = false -;; -;; Code search engine type, could be `bleve` or `elasticsearch`. -;REPO_INDEXER_TYPE = bleve -;; -;; Index file used for code search. available when `REPO_INDEXER_TYPE` is bleve -;REPO_INDEXER_PATH = indexers/repos.bleve -;; -;; Code indexer connection string, available when `REPO_INDEXER_TYPE` is elasticsearch. i.e. http://elastic:changeme@localhost:9200 -;REPO_INDEXER_CONN_STR = -;; -;; Code indexer name, available when `REPO_INDEXER_TYPE` is elasticsearch -;REPO_INDEXER_NAME = gitea_codes -;; -;; A comma separated list of glob patterns (see https://github.com/gobwas/glob) to include -;; in the index; default is empty -;REPO_INDEXER_INCLUDE = -;; -;; A comma separated list of glob patterns to exclude from the index; ; default is empty -;REPO_INDEXER_EXCLUDE = -;; -;; -;UPDATE_BUFFER_LEN = 20; **DEPRECATED** use settings in `[queue.issue_indexer]`. -;MAX_FILE_SIZE = 1048576 - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[queue] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; -;; Specific queues can be individually configured with [queue.name]. [queue] provides defaults -;; ([queue.issue_indexer] is special due to the old configuration described above) -;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; -;; General queue queue type, currently support: persistable-channel, channel, level, redis, dummy -;; default to persistable-channel -;TYPE = persistable-channel -;; -;; data-dir for storing persistable queues and level queues, individual queues will default to `queues/common` meaning the queue is shared. -;DATADIR = queues/ ; Relative paths will be made absolute against `%(APP_DATA_PATH)s`. -;; -;; Default queue length before a channel queue will block -;LENGTH = 20 -;; -;; Batch size to send for batched queues -;BATCH_LENGTH = 20 -;; -;; Connection string for redis queues this will store the redis connection string. -;; When `TYPE` is `persistable-channel`, this provides a directory for the underlying leveldb -;; or additional options of the form `leveldb://path/to/db?option=value&....`, and will override `DATADIR`. -;CONN_STR = "addrs=127.0.0.1:6379 db=0" -;; -;; Provides the suffix of the default redis/disk queue name - specific queues can be overridden within in their [queue.name] sections. -;QUEUE_NAME = "_queue" -;; -;; Provides the suffix of the default redis/disk unique queue set name - specific queues can be overridden within in their [queue.name] sections. -;SET_NAME = "_unique" -;; -;; If the queue cannot be created at startup - level queues may need a timeout at startup - wrap the queue: -;WRAP_IF_NECESSARY = true -;; -;; Attempt to create the wrapped queue at max -;MAX_ATTEMPTS = 10 -;; -;; Timeout queue creation -;TIMEOUT = 15m30s -;; -;; Create a pool with this many workers -;WORKERS = 0 -;; -;; Dynamically scale the worker pool to at this many workers -;MAX_WORKERS = 10 -;; -;; Add boost workers when the queue blocks for BLOCK_TIMEOUT -;BLOCK_TIMEOUT = 1s -;; -;; Remove the boost workers after BOOST_TIMEOUT -;BOOST_TIMEOUT = 5m -;; -;; During a boost add BOOST_WORKERS -;BOOST_WORKERS = 1 - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[admin] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; -;; Disallow regular (non-admin) users from creating organizations. -;DISABLE_REGULAR_ORG_CREATION = false -;; -;; Default configuration for email notifications for users (user configurable). Options: enabled, onmention, disabled -;DEFAULT_EMAIL_NOTIFICATIONS = enabled - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[openid] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; -;; OpenID is an open, standard and decentralized authentication protocol. -;; Your identity is the address of a webpage you provide, which describes -;; how to prove you are in control of that page. -;; -;; For more info: https://en.wikipedia.org/wiki/OpenID -;; -;; Current implementation supports OpenID-2.0 -;; -;; Tested to work providers at the time of writing: -;; - Any GNUSocial node (your.hostname.tld/username) -;; - Any SimpleID provider (http://simpleid.koinic.net) -;; - http://openid.org.cn/ -;; - openid.stackexchange.com -;; - login.launchpad.net -;; - .livejournal.com -;; -;; Whether to allow signin in via OpenID -;ENABLE_OPENID_SIGNIN = true -;; -;; Whether to allow registering via OpenID -;; Do not include to rely on rhw DISABLE_REGISTRATION setting -;;ENABLE_OPENID_SIGNUP = true -;; -;; Allowed URI patterns (POSIX regexp). -;; Space separated. -;; Only these would be allowed if non-blank. -;; Example value: trusted.domain.org trusted.domain.net -;WHITELISTED_URIS = -;; -;; Forbidden URI patterns (POSIX regexp). -;; Space separated. -;; Only used if WHITELISTED_URIS is blank. -;; Example value: loadaverage.org/badguy stackexchange.com/.*spammer -;BLACKLISTED_URIS = - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[oauth2_client] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; -;; Whether a new auto registered oauth2 user needs to confirm their email. -;; Do not include to use the REGISTER_EMAIL_CONFIRM setting from the `[service]` section. -;REGISTER_EMAIL_CONFIRM = -;; -;; Scopes for the openid connect oauth2 provider (separated by space, the openid scope is implicitly added). -;; Typical values are profile and email. -;; For more information about the possible values see https://openid.net/specs/openid-connect-core-1_0.html#ScopeClaims -;OPENID_CONNECT_SCOPES = -;; -;; Automatically create user accounts for new oauth2 users. -;ENABLE_AUTO_REGISTRATION = false -;; -;; The source of the username for new oauth2 accounts: -;; userid = use the userid / sub attribute -;; nickname = use the nickname attribute -;; email = use the username part of the email attribute -;USERNAME = nickname -;; -;; Update avatar if available from oauth2 provider. -;; Update will be performed on each login. -;UPDATE_AVATAR = false -;; -;; How to handle if an account / email already exists: -;; disabled = show an error -;; login = show an account linking login -;; auto = link directly with the account -;ACCOUNT_LINKING = login - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[webhook] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; -;; Hook task queue length, increase if webhook shooting starts hanging -;QUEUE_LENGTH = 1000 -;; -;; Deliver timeout in seconds -;DELIVER_TIMEOUT = 5 -;; -;; Webhook can only call allowed hosts for security reasons. Comma separated list, eg: external, 192.168.1.0/24, *.mydomain.com -;; Built-in: loopback (for localhost), private (for LAN/intranet), external (for public hosts on internet), * (for all hosts) -;; CIDR list: 1.2.3.0/8, 2001:db8::/32 -;; Wildcard hosts: *.mydomain.com, 192.168.100.* -;; Since 1.15.7. Default to * for 1.15.x, external for 1.16 and later -;ALLOWED_HOST_LIST = external -;; -;; Allow insecure certification -;SKIP_TLS_VERIFY = false -;; -;; Number of history information in each page -;PAGING_NUM = 10 -;; -;; Proxy server URL, support http://, https//, socks://, blank will follow environment http_proxy/https_proxy -;PROXY_URL = -;; -;; Comma separated list of host names requiring proxy. Glob patterns (*) are accepted; use ** to match all hosts. -;PROXY_HOSTS = - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[mailer] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; -;; NOTICE: this section is for Gitea 1.18 and later. If you are using Gitea 1.17 or older, -;; please refer to -;; https://github.com/go-gitea/gitea/blob/release/v1.17/custom/conf/app.example.ini -;; https://github.com/go-gitea/gitea/blob/release/v1.17/docs/content/doc/advanced/config-cheat-sheet.en-us.md -;; -;ENABLED = false -;; -;; Buffer length of channel, keep it as it is if you don't know what it is. -;SEND_BUFFER_LEN = 100 -;; -;; Prefix displayed before subject in mail -;SUBJECT_PREFIX = -;; -;; Mail server protocol. One of "smtp", "smtps", "smtp+starttls", "smtp+unix", "sendmail", "dummy". -;; - sendmail: use the operating system's `sendmail` command instead of SMTP. This is common on Linux systems. -;; - dummy: send email messages to the log as a testing phase. -;; If your provider does not explicitly say which protocol it uses but does provide a port, -;; you can set SMTP_PORT instead and this will be inferred. -;; (Before 1.18, see the notice, this was controlled via MAILER_TYPE and IS_TLS_ENABLED.) -;PROTOCOL = -;; -;; Mail server address, e.g. smtp.gmail.com. -;; For smtp+unix, this should be a path to a unix socket instead. -;; (Before 1.18, see the notice, this was combined with SMTP_PORT as HOST.) -;SMTP_ADDR = -;; -;; Mail server port. Common ports are: -;; 25: insecure SMTP -;; 465: SMTP Secure -;; 587: StartTLS -;; If no protocol is specified, it will be inferred by this setting. -;; (Before 1.18, this was combined with SMTP_ADDR as HOST.) -;SMTP_PORT = -;; -;; Enable HELO operation. Defaults to true. -;ENABLE_HELO = true -;; -;; Custom hostname for HELO operation. -;; If no value is provided, one is retrieved from system. -;HELO_HOSTNAME = -;; -;; If set to `true`, completely ignores server certificate validation errors. -;; This option is unsafe. Consider adding the certificate to the system trust store instead. -;FORCE_TRUST_SERVER_CERT = false -;; -;; Use client certificate in connection. -;USE_CLIENT_CERT = false -;CLIENT_CERT_FILE = custom/mailer/cert.pem -;CLIENT_KEY_FILE = custom/mailer/key.pem -;; -;; Mail from address, RFC 5322. This can be just an email address, or the `"Name" ` format -;FROM = -;; -;; Sometimes it is helpful to use a different address on the envelope. Set this to use ENVELOPE_FROM as the from on the envelope. Set to `<>` to send an empty address. -;ENVELOPE_FROM = -;; -;; Mailer user name and password, if required by provider. -;USER = -;; -;; Use PASSWD = `your password` for quoting if you use special characters in the password. -;PASSWD = -;; -;; Send mails only in plain text, without HTML alternative -;SEND_AS_PLAIN_TEXT = false -;; -;; Specify an alternative sendmail binary -;SENDMAIL_PATH = sendmail -;; -;; Specify any extra sendmail arguments -;; WARNING: if your sendmail program interprets options you should set this to "--" or terminate these args with "--" -;SENDMAIL_ARGS = -;; -;; Timeout for Sendmail -;SENDMAIL_TIMEOUT = 5m -;; -;; convert \r\n to \n for Sendmail -;SENDMAIL_CONVERT_CRLF = true - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[email.incoming] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; -;; Enable handling of incoming emails. -;ENABLED = false -;; -;; The email address including the %{token} placeholder that will be replaced per user/action. -;; Example: incoming+%{token}@example.com -;; The placeholder must appear in the user part of the address (before the @). -;REPLY_TO_ADDRESS = -;; -;; IMAP server host -;HOST = -;; -;; IMAP server port -;PORT = -;; -;; Username of the receiving account -;USERNAME = -;; -;; Password of the receiving account -;PASSWORD = -;; -;; Whether the IMAP server uses TLS. -;USE_TLS = false -;; -;; If set to true, completely ignores server certificate validation errors. This option is unsafe. -;SKIP_TLS_VERIFY = true -;; -;; The mailbox name where incoming mail will end up. -;MAILBOX = INBOX -;; -;; Whether handled messages should be deleted from the mailbox. -;DELETE_HANDLED_MESSAGE = true -;; -;; Maximum size of a message to handle. Bigger messages are ignored. Set to 0 to allow every size. -;MAXIMUM_MESSAGE_SIZE = 10485760 - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[cache] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; -;; if the cache enabled -;ENABLED = true -;; -;; Either "memory", "redis", "memcache", or "twoqueue". default is "memory" -;ADAPTER = memory -;; -;; For "memory" only, GC interval in seconds, default is 60 -;INTERVAL = 60 -;; -;; For "redis" and "memcache", connection host address -;; redis: `redis://127.0.0.1:6379/0?pool_size=100&idle_timeout=180s` -;; memcache: `127.0.0.1:11211` -;; twoqueue: `{"size":50000,"recent_ratio":0.25,"ghost_ratio":0.5}` or `50000` -;HOST = -;; -;; Time to keep items in cache if not used, default is 16 hours. -;; Setting it to -1 disables caching -;ITEM_TTL = 16h - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; Last commit cache -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[cache.last_commit] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; if the cache enabled -;ENABLED = true -;; -;; Time to keep items in cache if not used, default is 8760 hours. -;; Setting it to -1 disables caching -;ITEM_TTL = 8760h -;; -;; Only enable the cache when repository's commits count great than -;COMMITS_COUNT = 1000 - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[session] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; -;; Either "memory", "file", "redis", "db", "mysql", "couchbase", "memcache" or "postgres" -;; Default is "memory". "db" will reuse the configuration in [database] -;PROVIDER = memory -;; -;; Provider config options -;; memory: doesn't have any config yet -;; file: session file path, e.g. `data/sessions` -;; redis: `redis://127.0.0.1:6379/0?pool_size=100&idle_timeout=180s` -;; mysql: go-sql-driver/mysql dsn config string, e.g. `root:password@/session_table` -;PROVIDER_CONFIG = data/sessions ; Relative paths will be made absolute against _`AppWorkPath`_. -;; -;; Session cookie name -;COOKIE_NAME = i_like_gitea -;; -;; If you use session in https only, default is false -;COOKIE_SECURE = false -;; -;; Session GC time interval in seconds, default is 86400 (1 day) -;GC_INTERVAL_TIME = 86400 -;; -;; Session life time in seconds, default is 86400 (1 day) -;SESSION_LIFE_TIME = 86400 -;; -;; SameSite settings. Either "none", "lax", or "strict" -;SAME_SITE=lax - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[picture] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; -;AVATAR_UPLOAD_PATH = data/avatars -;REPOSITORY_AVATAR_UPLOAD_PATH = data/repo-avatars -;; -;; How Gitea deals with missing repository avatars -;; none = no avatar will be displayed; random = random avatar will be displayed; image = default image will be used -;REPOSITORY_AVATAR_FALLBACK = none -;REPOSITORY_AVATAR_FALLBACK_IMAGE = /img/repo_default.png -;; -;; Max Width and Height of uploaded avatars. -;; This is to limit the amount of RAM used when resizing the image. -;AVATAR_MAX_WIDTH = 4096 -;AVATAR_MAX_HEIGHT = 3072 -;; -;; The multiplication factor for rendered avatar images. -;; Larger values result in finer rendering on HiDPI devices. -;AVATAR_RENDERED_SIZE_FACTOR = 3 -;; -;; Maximum allowed file size for uploaded avatars. -;; This is to limit the amount of RAM used when resizing the image. -;AVATAR_MAX_FILE_SIZE = 1048576 -;; -;; Chinese users can choose "duoshuo" -;; or a custom avatar source, like: http://cn.gravatar.com/avatar/ -;GRAVATAR_SOURCE = gravatar -;; -;; This value will always be true in offline mode. -;DISABLE_GRAVATAR = false -;; -;; Federated avatar lookup uses DNS to discover avatar associated -;; with emails, see https://www.libravatar.org -;; This value will always be false in offline mode or when Gravatar is disabled. -;ENABLE_FEDERATED_AVATAR = false - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[attachment] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; -;; Whether issue and pull request attachments are enabled. Defaults to `true` -;ENABLED = true -;; -;; Comma-separated list of allowed file extensions (`.zip`), mime types (`text/plain`) or wildcard type (`image/*`, `audio/*`, `video/*`). Empty value or `*/*` allows all types. -;ALLOWED_TYPES = .csv,.docx,.fodg,.fodp,.fods,.fodt,.gif,.gz,.jpeg,.jpg,.log,.md,.mov,.mp4,.odf,.odg,.odp,.ods,.odt,.pdf,.png,.pptx,.svg,.tgz,.txt,.webm,.xls,.xlsx,.zip -;; -;; Max size of each file. Defaults to 4MB -;MAX_SIZE = 4 -;; -;; Max number of files per upload. Defaults to 5 -;MAX_FILES = 5 -;; -;; Storage type for attachments, `local` for local disk or `minio` for s3 compatible -;; object storage service, default is `local`. -;STORAGE_TYPE = local -;; -;; Allows the storage driver to redirect to authenticated URLs to serve files directly -;; Currently, only `minio` is supported. -;SERVE_DIRECT = false -;; -;; Path for attachments. Defaults to `data/attachments` only available when STORAGE_TYPE is `local` -;PATH = data/attachments -;; -;; Minio endpoint to connect only available when STORAGE_TYPE is `minio` -;MINIO_ENDPOINT = localhost:9000 -;; -;; Minio accessKeyID to connect only available when STORAGE_TYPE is `minio` -;MINIO_ACCESS_KEY_ID = -;; -;; Minio secretAccessKey to connect only available when STORAGE_TYPE is `minio` -;MINIO_SECRET_ACCESS_KEY = -;; -;; Minio bucket to store the attachments only available when STORAGE_TYPE is `minio` -;MINIO_BUCKET = gitea -;; -;; Minio location to create bucket only available when STORAGE_TYPE is `minio` -;MINIO_LOCATION = us-east-1 -;; -;; Minio base path on the bucket only available when STORAGE_TYPE is `minio` -;MINIO_BASE_PATH = attachments/ -;; -;; Minio enabled ssl only available when STORAGE_TYPE is `minio` -;MINIO_USE_SSL = false - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[time] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; -;; Specifies the format for fully outputted dates. Defaults to RFC1123 -;; Special supported values are ANSIC, UnixDate, RubyDate, RFC822, RFC822Z, RFC850, RFC1123, RFC1123Z, RFC3339, RFC3339Nano, Kitchen, Stamp, StampMilli, StampMicro and StampNano -;; For more information about the format see http://golang.org/pkg/time/#pkg-constants -;FORMAT = -;; -;; Location the UI time display i.e. Asia/Shanghai -;; Empty means server's location setting -;DEFAULT_UI_LOCATION = - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[cron] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; -;; Common settings -;; -;; Setting this to true will enable all cron tasks periodically with default settings. -;ENABLED = false -;; Setting this to true will run all enabled cron tasks when Gitea starts. -;RUN_AT_START = false -;; -;; Note: ``SCHEDULE`` accept formats -;; - Full crontab specs, e.g. "* * * * * ?" -;; - Descriptors, e.g. "@midnight", "@every 1h30m" -;; See more: https://pkg.go.dev/github.com/gogs/cron@v0.0.0-20171120032916-9f6c956d3e14 - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; Basic cron tasks - enabled by default -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; Clean up old repository archives -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[cron.archive_cleanup] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; Whether to enable the job -;ENABLED = true -;; Whether to always run at least once at start up time (if ENABLED) -;RUN_AT_START = true -;; Whether to emit notice on successful execution too -;NOTICE_ON_SUCCESS = false -;; Time interval for job to run -;SCHEDULE = @midnight -;; Archives created more than OLDER_THAN ago are subject to deletion -;OLDER_THAN = 24h - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; Update mirrors -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[cron.update_mirrors] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;SCHEDULE = @every 10m -;; Enable running Update mirrors task periodically. -;ENABLED = true -;; Run Update mirrors task when Gitea starts. -;RUN_AT_START = false -;; Notice if not success -;NOTICE_ON_SUCCESS = false -;; Limit the number of mirrors added to the queue to this number -;; (negative values mean no limit, 0 will result in no result in no mirrors being queued effectively disabling pull mirror updating.) -;PULL_LIMIT=50 -;; Limit the number of mirrors added to the queue to this number -;; (negative values mean no limit, 0 will result in no mirrors being queued effectively disabling push mirror updating) -;PUSH_LIMIT=50 - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; Repository health check -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[cron.repo_health_check] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;SCHEDULE = @midnight -;; Enable running Repository health check task periodically. -;ENABLED = true -;; Run Repository health check task when Gitea starts. -;RUN_AT_START = false -;; Notice if not success -;NOTICE_ON_SUCCESS = false -;TIMEOUT = 60s -;; Arguments for command 'git fsck', e.g. "--unreachable --tags" -;; see more on http://git-scm.com/docs/git-fsck -;ARGS = - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; Check repository statistics -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[cron.check_repo_stats] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; Enable running check repository statistics task periodically. -;ENABLED = true -;; Run check repository statistics task when Gitea starts. -;RUN_AT_START = true -;; Notice if not success -;NOTICE_ON_SUCCESS = false -;SCHEDULE = @midnight - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[cron.update_migration_poster_id] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; Update migrated repositories' issues and comments' posterid, it will always attempt synchronization when the instance starts. -;ENABLED = true -;; Update migrated repositories' issues and comments' posterid when starting server (default true) -;RUN_AT_START = true -;; Notice if not success -;NOTICE_ON_SUCCESS = false -;; Interval as a duration between each synchronization. (default every 24h) -;SCHEDULE = @midnight - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; Synchronize external user data (only LDAP user synchronization is supported) -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[cron.sync_external_users] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;ENABLED = true -;; Synchronize external user data when starting server (default false) -;RUN_AT_START = false -;; Notice if not success -;NOTICE_ON_SUCCESS = false -;; Interval as a duration between each synchronization (default every 24h) -;SCHEDULE = @midnight -;; Create new users, update existing user data and disable users that are not in external source anymore (default) -;; or only create new users if UPDATE_EXISTING is set to false -;UPDATE_EXISTING = true - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; Clean-up deleted branches -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[cron.deleted_branches_cleanup] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;ENABLED = true -;; Clean-up deleted branches when starting server (default true) -;RUN_AT_START = true -;; Notice if not success -;NOTICE_ON_SUCCESS = false -;; Interval as a duration between each synchronization (default every 24h) -;SCHEDULE = @midnight -;; deleted branches than OLDER_THAN ago are subject to deletion -;OLDER_THAN = 24h - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; Cleanup hook_task table -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[cron.cleanup_hook_task_table] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; Whether to enable the job -;ENABLED = true -;; Whether to always run at start up time (if ENABLED) -;RUN_AT_START = false -;; Time interval for job to run -;SCHEDULE = @midnight -;; OlderThan or PerWebhook. How the records are removed, either by age (i.e. how long ago hook_task record was delivered) or by the number to keep per webhook (i.e. keep most recent x deliveries per webhook). -;CLEANUP_TYPE = OlderThan -;; If CLEANUP_TYPE is set to OlderThan, then any delivered hook_task records older than this expression will be deleted. -;OLDER_THAN = 168h -;; If CLEANUP_TYPE is set to PerWebhook, this is number of hook_task records to keep for a webhook (i.e. keep the most recent x deliveries). -;NUMBER_TO_KEEP = 10 - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; Cleanup expired packages -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[cron.cleanup_packages] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; Whether to enable the job -;ENABLED = true -;; Whether to always run at least once at start up time (if ENABLED) -;RUN_AT_START = true -;; Whether to emit notice on successful execution too -;NOTICE_ON_SUCCESS = false -;; Time interval for job to run -;SCHEDULE = @midnight -;; Unreferenced blobs created more than OLDER_THAN ago are subject to deletion -;OLDER_THAN = 24h - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; Extended cron task - not enabled by default -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; Delete all unactivated accounts -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[cron.delete_inactive_accounts] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;ENABLED = false -;RUN_AT_START = false -;NOTICE_ON_SUCCESS = false -;SCHEDULE = @annually -;OLDER_THAN = 168h - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; Delete all repository archives -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[cron.delete_repo_archives] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;ENABLED = false -;RUN_AT_START = false -;NOTICE_ON_SUCCESS = false -;SCHEDULE = @annually; - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; Garbage collect all repositories -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[cron.git_gc_repos] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;ENABLED = false -;RUN_AT_START = false -;NOTICE_ON_SUCCESS = false -;SCHEDULE = @every 72h -;TIMEOUT = 60s -;; Arguments for command 'git gc' -;; The default value is same with [git] -> GC_ARGS -;ARGS = - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; Update the '.ssh/authorized_keys' file with Gitea SSH keys -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[cron.resync_all_sshkeys] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;ENABLED = false -;RUN_AT_START = false -;NOTICE_ON_SUCCESS = false -;SCHEDULE = @every 72h - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; Resynchronize pre-receive, update and post-receive hooks of all repositories. -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[cron.resync_all_hooks] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;ENABLED = false -;RUN_AT_START = false -;NOTICE_ON_SUCCESS = false -;SCHEDULE = @every 72h - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; Reinitialize all missing Git repositories for which records exist -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[cron.reinit_missing_repos] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;ENABLED = false -;RUN_AT_START = false -;NOTICE_ON_SUCCESS = false -;SCHEDULE = @every 72h - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; Delete all repositories missing their Git files -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[cron.delete_missing_repos] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;ENABLED = false -;RUN_AT_START = false -;NOTICE_ON_SUCCESS = false -;SCHEDULE = @every 72h - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; Delete generated repository avatars -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[cron.delete_generated_repository_avatars] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;ENABLED = false -;RUN_AT_START = false -;NOTICE_ON_SUCCESS = false -;SCHEDULE = @every 72h - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; Delete all old actions from database -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[cron.delete_old_actions] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;ENABLED = false -;RUN_AT_START = false -;NOTICE_ON_SUCCESS = false -;SCHEDULE = @every 168h -;OLDER_THAN = 8760h - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; Check for new Gitea versions -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[cron.update_checker] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;ENABLED = true -;RUN_AT_START = false -;ENABLE_SUCCESS_NOTICE = false -;SCHEDULE = @every 168h -;HTTP_ENDPOINT = https://dl.gitea.io/gitea/version.json - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; Delete all old system notices from database -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[cron.delete_old_system_notices] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;ENABLED = false -;RUN_AT_START = false -;NO_SUCCESS_NOTICE = false -;SCHEDULE = @every 168h -;OLDER_THAN = 8760h - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; Garbage collect LFS pointers in repositories -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[cron.gc_lfs] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;ENABLED = false -;; Garbage collect LFS pointers in repositories (default false) -;RUN_AT_START = false -;; Interval as a duration between each gc run (default every 24h) -;SCHEDULE = @every 24h -;; Only attempt to garbage collect LFSMetaObjects older than this (default 7 days) -;OLDER_THAN = 168h -;; Only attempt to garbage collect LFSMetaObjects that have not been attempted to be garbage collected for this long (default 3 days) -;LAST_UPDATED_MORE_THAN_AGO = 72h -; Minimum number of stale LFSMetaObjects to check per repo. Set to `0` to always check all. -;NUMBER_TO_CHECK_PER_REPO = 100 -;Check at least this proportion of LFSMetaObjects per repo. (This may cause all stale LFSMetaObjects to be checked.) -;PROPORTION_TO_CHECK_PER_REPO = 0.6 - - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; Git Operation timeout in seconds -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[git.timeout] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;DEFAULT = 360 -;MIGRATE = 600 -;MIRROR = 300 -;CLONE = 300 -;PULL = 300 -;GC = 60 - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[mirror] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; Enables the mirror functionality. Set to **false** to disable all mirrors. Pre-existing mirrors remain valid but won't be updated; may be converted to regular repo. -;ENABLED = true -;; Disable the creation of **new** pull mirrors. Pre-existing mirrors remain valid. Will be ignored if `mirror.ENABLED` is `false`. -;DISABLE_NEW_PULL = false -;; Disable the creation of **new** push mirrors. Pre-existing mirrors remain valid. Will be ignored if `mirror.ENABLED` is `false`. -;DISABLE_NEW_PUSH = false -;; Default interval as a duration between each check -;DEFAULT_INTERVAL = 8h -;; Min interval as a duration must be > 1m -;MIN_INTERVAL = 10m - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[api] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; Enables the API documentation endpoints (/api/swagger, /api/v1/swagger, …). True or false. -;ENABLE_SWAGGER = true -;; Max number of items in a page -;MAX_RESPONSE_ITEMS = 50 -;; Default paging number of api -;DEFAULT_PAGING_NUM = 30 -;; Default and maximum number of items per page for git trees api -;DEFAULT_GIT_TREES_PER_PAGE = 1000 -;; Default max size of a blob returned by the blobs API (default is 10MiB) -;DEFAULT_MAX_BLOB_SIZE = 10485760 - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[i18n] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; The first locale will be used as the default if user browser's language doesn't match any locale in the list. -;LANGS = en-US,zh-CN,zh-HK,zh-TW,de-DE,fr-FR,nl-NL,lv-LV,ru-RU,uk-UA,ja-JP,es-ES,pt-BR,pt-PT,pl-PL,bg-BG,it-IT,fi-FI,tr-TR,cs-CZ,sv-SE,ko-KR,el-GR,fa-IR,hu-HU,id-ID,ml-IN -;NAMES = English,简体中文,繁體中文(香港),繁體中文(台灣),Deutsch,Français,Nederlands,Latviešu,Русский,Українська,日本語,Español,Português do Brasil,Português de Portugal,Polski,Български,Italiano,Suomi,Türkçe,Čeština,Српски,Svenska,한국어,Ελληνικά,فارسی,Magyar nyelv,Bahasa Indonesia,മലയാളം - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[highlight.mapping] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; Extension mapping to highlight class -;; e.g. .toml=ini - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[other] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;SHOW_FOOTER_BRANDING = false -;; Show version information about Gitea and Go in the footer -;SHOW_FOOTER_VERSION = true -;; Show template execution time in the footer -;SHOW_FOOTER_TEMPLATE_LOAD_TIME = true -;; Generate sitemap. Defaults to `true`. -;ENABLE_SITEMAP = true -;; Enable/Disable RSS/Atom feed -;ENABLE_FEED = true - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[markup] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; Set the maximum number of characters in a mermaid source. (Set to -1 to disable limits) -;MERMAID_MAX_SOURCE_CHARACTERS = 5000 - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[markup.sanitizer.1] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; The following keys can appear once to define a sanitation policy rule. -;; This section can appear multiple times by adding a unique alphanumeric suffix to define multiple rules. -;; e.g., [markup.sanitizer.1] -> [markup.sanitizer.2] -> [markup.sanitizer.TeX] -;ELEMENT = span -;ALLOW_ATTR = class -;REGEXP = ^(info|warning|error)$ -;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; Other markup formats e.g. asciidoc -;; -;; uncomment and enable the below section. -;; (You can add other markup formats by copying the section and adjusting -;; the section name suffix "asciidoc" to something else.) -;[markup.asciidoc] -;ENABLED = false -;; List of file extensions that should be rendered by an external command -;FILE_EXTENSIONS = .adoc,.asciidoc -;; External command to render all matching extensions -;RENDER_COMMAND = "asciidoc --out-file=- -" -;; Don't pass the file on STDIN, pass the filename as argument instead. -;IS_INPUT_FILE = false -;; How the content will be rendered. -;; * sanitized: Sanitize the content and render it inside current page, default to only allow a few HTML tags and attributes. Customized sanitizer rules can be defined in [markup.sanitizer.*] . -;; * no-sanitizer: Disable the sanitizer and render the content inside current page. It's **insecure** and may lead to XSS attack if the content contains malicious code. -;; * iframe: Render the content in a separate standalone page and embed it into current page by iframe. The iframe is in sandbox mode with same-origin disabled, and the JS code are safely isolated from parent page. -;RENDER_CONTENT_MODE=sanitized - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[metrics] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; Enables metrics endpoint. True or false; default is false. -;ENABLED = false -;; If you want to add authorization, specify a token here -;TOKEN = -;; Enable issue by label metrics; default is false -;ENABLED_ISSUE_BY_LABEL = false -;; Enable issue by repository metrics; default is false -;ENABLED_ISSUE_BY_REPOSITORY = false - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[task] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; -;; Task queue type, could be `channel` or `redis`. -;QUEUE_TYPE = channel -;; -;; Task queue length, available only when `QUEUE_TYPE` is `channel`. -;QUEUE_LENGTH = 1000 -;; -;; Task queue connection string, available only when `QUEUE_TYPE` is `redis`. -;; If there is a password of redis, use `redis://127.0.0.1:6379/0?pool_size=100&idle_timeout=180s`. -;QUEUE_CONN_STR = "redis://127.0.0.1:6379/0?pool_size=100&idle_timeout=180s" - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[migrations] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; -;; Max attempts per http/https request on migrations. -;MAX_ATTEMPTS = 3 -;; -;; Backoff time per http/https request retry (seconds) -;RETRY_BACKOFF = 3 -;; -;; Allowed domains for migrating, default is blank. Blank means everything will be allowed. -;; Multiple domains could be separated by commas. -;; Wildcard is supported: "github.com, *.github.com" -;ALLOWED_DOMAINS = -;; -;; Blocklist for migrating, default is blank. Multiple domains could be separated by commas. -;; When ALLOWED_DOMAINS is not blank, this option has a higher priority to deny domains. -;; Wildcard is supported. -;BLOCKED_DOMAINS = -;; -;; Allow private addresses defined by RFC 1918, RFC 1122, RFC 4632 and RFC 4291 (false by default) -;; If a domain is allowed by ALLOWED_DOMAINS, this option will be ignored. -;ALLOW_LOCALNETWORKS = false - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[federation] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; -;; Enable/Disable federation capabilities -;ENABLED = false -;; -;; Enable/Disable user statistics for nodeinfo if federation is enabled -;SHARE_USER_STATISTICS = true -;; -;; Maximum federation request and response size (MB) -;MAX_SIZE = 4 -;; -;; WARNING: Changing the settings below can break federation. -;; -;; HTTP signature algorithms -;ALGORITHMS = rsa-sha256, rsa-sha512, ed25519 -;; -;; HTTP signature digest algorithm -;DIGEST_ALGORITHM = SHA-256 -;; -;; GET headers for federation requests -;GET_HEADERS = (request-target), Date -;; -;; POST headers for federation requests -;POST_HEADERS = (request-target), Date, Digest - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[packages] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; -;; Enable/Disable package registry capabilities -;ENABLED = true -;; -;; Path for chunked uploads. Defaults to APP_DATA_PATH + `tmp/package-upload` -;CHUNKED_UPLOAD_PATH = tmp/package-upload -;; -;; Maximum count of package versions a single owner can have (`-1` means no limits) -;LIMIT_TOTAL_OWNER_COUNT = -1 -;; Maximum size of packages a single owner can use (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`) -;LIMIT_TOTAL_OWNER_SIZE = -1 -;; Maximum size of a Composer upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`) -;LIMIT_SIZE_COMPOSER = -1 -;; Maximum size of a Conan upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`) -;LIMIT_SIZE_CONAN = -1 -;; Maximum size of a Container upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`) -;LIMIT_SIZE_CONTAINER = -1 -;; Maximum size of a Generic upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`) -;LIMIT_SIZE_GENERIC = -1 -;; Maximum size of a Helm upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`) -;LIMIT_SIZE_HELM = -1 -;; Maximum size of a Maven upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`) -;LIMIT_SIZE_MAVEN = -1 -;; Maximum size of a npm upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`) -;LIMIT_SIZE_NPM = -1 -;; Maximum size of a NuGet upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`) -;LIMIT_SIZE_NUGET = -1 -;; Maximum size of a Pub upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`) -;LIMIT_SIZE_PUB = -1 -;; Maximum size of a PyPI upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`) -;LIMIT_SIZE_PYPI = -1 -;; Maximum size of a RubyGems upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`) -;LIMIT_SIZE_RUBYGEMS = -1 -;; Maximum size of a Vagrant upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`) -;LIMIT_SIZE_VAGRANT = -1 - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; default storage for attachments, lfs and avatars -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[storage] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; storage type -;STORAGE_TYPE = local - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; settings for repository archives, will override storage setting -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[storage.repo-archive] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; storage type -;STORAGE_TYPE = local - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; lfs storage will override storage -;; -;[lfs] -;STORAGE_TYPE = local -;; -;; Where your lfs files reside, default is data/lfs. -;PATH = data/lfs - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; settings for packages, will override storage setting -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;[storage.packages] -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; storage type -;STORAGE_TYPE = local - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; customize storage -;[storage.my_minio] -;STORAGE_TYPE = minio -;; -;; Minio endpoint to connect only available when STORAGE_TYPE is `minio` -;MINIO_ENDPOINT = localhost:9000 -;; -;; Minio accessKeyID to connect only available when STORAGE_TYPE is `minio` -;MINIO_ACCESS_KEY_ID = -;; -;; Minio secretAccessKey to connect only available when STORAGE_TYPE is `minio` -;MINIO_SECRET_ACCESS_KEY = -;; -;; Minio bucket to store the attachments only available when STORAGE_TYPE is `minio` -;MINIO_BUCKET = gitea -;; -;; Minio location to create bucket only available when STORAGE_TYPE is `minio` -;MINIO_LOCATION = us-east-1 -;; -;; Minio enabled ssl only available when STORAGE_TYPE is `minio` -;MINIO_USE_SSL = false - -;[proxy] -;; Enable the proxy, all requests to external via HTTP will be affected -;PROXY_ENABLED = false -;; Proxy server URL, support http://, https//, socks://, blank will follow environment http_proxy/https_proxy/no_proxy -;PROXY_URL = -;; Comma separated list of host names requiring proxy. Glob patterns (*) are accepted; use ** to match all hosts. -;PROXY_HOSTS = From e27c8710387cf48e1e77eafcdc02b3b9a3c526c8 Mon Sep 17 00:00:00 2001 From: crystal Date: Sat, 25 Nov 2023 16:41:15 -0700 Subject: [PATCH 080/172] Forgejo v1.20.5-1 --- deb/debian/changelog | 9 +++++---- forgejo | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/deb/debian/changelog b/deb/debian/changelog index acff6c8..2ce6d3a 100644 --- a/deb/debian/changelog +++ b/deb/debian/changelog @@ -1,9 +1,10 @@ -forgejo (1.20.5.0-1) unstable; urgency=medium +forgejo (1.20.5.1-0) 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 + * Forgejo version 1.20.5-1 + * app.ini: Replaced example with blank default + * See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#1-20-5-1 - -- crystal Sat, 7 Oct 2023 23:03:00 +0000 + -- crystal Sat, 25 Nov 2023 23:40:00 +0000 forgejo (1.20.4.1-1) unstable; urgency=medium diff --git a/forgejo b/forgejo index e58e7bf..3380217 160000 --- a/forgejo +++ b/forgejo @@ -1 +1 @@ -Subproject commit e58e7bf0883c6b878f34ff2677b48efba4d3cbbb +Subproject commit 3380217da1bb928212214612d1875143c5a4b22e From 7e75283801bced3535dd5f1e3c7027f872433364 Mon Sep 17 00:00:00 2001 From: crystal Date: Sat, 25 Nov 2023 17:12:14 -0700 Subject: [PATCH 081/172] Fix data directory chmod --- .ci-make.sh | 13 +++++++++++++ .crystalintegration.yml | 3 +++ deb/debian/changelog | 1 + deb/debian/forgejo.preinst | 2 +- 4 files changed, 18 insertions(+), 1 deletion(-) diff --git a/.ci-make.sh b/.ci-make.sh index 672c2a7..1c35250 100755 --- a/.ci-make.sh +++ b/.ci-make.sh @@ -129,5 +129,18 @@ case "$1" in 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") + apt install -y psmisc + killall forgejo + exit $? + ;; esac diff --git a/.crystalintegration.yml b/.crystalintegration.yml index 150e48c..b1dd5d4 100644 --- a/.crystalintegration.yml +++ b/.crystalintegration.yml @@ -305,6 +305,9 @@ steps: group: pkg-test-5 commands: - ./.ci-make.sh install-repo-test ./repo-deb/forgejo-deb-repo_0-0_all.deb forgejo-sqlite + - ./.ci-make.sh force-clean-forgejo + - ./.ci-make.sh install-run-test ./forgejo-sqlite_*_amd64.deb + - ./.ci-make.sh verify-data-dir-chmod upload-crystalcommit: image: woodpeckerci/plugin-gitea-release diff --git a/deb/debian/changelog b/deb/debian/changelog index 2ce6d3a..fc41590 100644 --- a/deb/debian/changelog +++ b/deb/debian/changelog @@ -2,6 +2,7 @@ forgejo (1.20.5.1-0) 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 Sat, 25 Nov 2023 23:40:00 +0000 diff --git a/deb/debian/forgejo.preinst b/deb/debian/forgejo.preinst index f2bb530..ccd9cd2 100644 --- a/deb/debian/forgejo.preinst +++ b/deb/debian/forgejo.preinst @@ -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 From 19d5c959f413c20890ec4aba3fb0068a6fb72d0a Mon Sep 17 00:00:00 2001 From: crystal Date: Sat, 25 Nov 2023 17:37:24 -0700 Subject: [PATCH 082/172] remove forgejo test_env --- .ci-make.sh | 6 ++++++ .crystalintegration.yml | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.ci-make.sh b/.ci-make.sh index 1c35250..77a3edf 100755 --- a/.ci-make.sh +++ b/.ci-make.sh @@ -142,5 +142,11 @@ case "$1" in killall forgejo exit $? ;; + "forgejo-test-deps") + apt update + apt install --no-install-recommends -y git-lfs + adduser --quiet --comment forgejo --disabled-password forgejo + chown -R forgejo:forgejo . + ;; esac diff --git a/.crystalintegration.yml b/.crystalintegration.yml index b1dd5d4..5b483aa 100644 --- a/.crystalintegration.yml +++ b/.crystalintegration.yml @@ -6,7 +6,7 @@ when: 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.20' + - &forgejo_test_image 'docker.io/node:20-bookworm' - &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' @@ -111,13 +111,13 @@ steps: 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 + - ./.ci-make.sh forgejo-test-deps + - su forgejo -c './.ci-make.sh submodule-make forgejo checks-backend' download-bin-amd64: image: *bin_dl_image From 4f911938785d6638f9e9adca92ddf1d4607ef0b3 Mon Sep 17 00:00:00 2001 From: crystal Date: Sat, 25 Nov 2023 17:43:25 -0700 Subject: [PATCH 083/172] install golang --- .ci-make.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ci-make.sh b/.ci-make.sh index 77a3edf..d4062f4 100755 --- a/.ci-make.sh +++ b/.ci-make.sh @@ -144,7 +144,7 @@ case "$1" in ;; "forgejo-test-deps") apt update - apt install --no-install-recommends -y git-lfs + apt install --no-install-recommends -y git-lfs golang adduser --quiet --comment forgejo --disabled-password forgejo chown -R forgejo:forgejo . ;; From a17e5f6adaae2b6f6502206fd71b170734a6b12d Mon Sep 17 00:00:00 2001 From: crystal Date: Sat, 25 Nov 2023 18:00:32 -0700 Subject: [PATCH 084/172] golang 1.20 --- .ci-make.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.ci-make.sh b/.ci-make.sh index d4062f4..03192ef 100755 --- a/.ci-make.sh +++ b/.ci-make.sh @@ -143,8 +143,10 @@ case "$1" in exit $? ;; "forgejo-test-deps") + echo "deb http://deb.debian.org/debian/ bookworm-backports main contrib" > /etc/apt/sources.list.d/backports.list apt update - apt install --no-install-recommends -y git-lfs golang + apt install --no-install-recommends -y git-lfs + apt install -y -t bookworm-backports golang-1.20 adduser --quiet --comment forgejo --disabled-password forgejo chown -R forgejo:forgejo . ;; From 186f2aaaa8f978fb4c61a44061fc4ab7eb1b817c Mon Sep 17 00:00:00 2001 From: crystal Date: Sat, 25 Nov 2023 18:06:29 -0700 Subject: [PATCH 085/172] symlink go bin --- .ci-make.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/.ci-make.sh b/.ci-make.sh index 03192ef..d139fa5 100755 --- a/.ci-make.sh +++ b/.ci-make.sh @@ -147,6 +147,7 @@ case "$1" in apt update apt install --no-install-recommends -y git-lfs apt install -y -t bookworm-backports golang-1.20 + ln -sf /usr/lib/go-1.20/bin/go /usr/local/bin/go adduser --quiet --comment forgejo --disabled-password forgejo chown -R forgejo:forgejo . ;; From 41e31ba9ad0342e9b9f8e6a93ade914a4bef54c8 Mon Sep 17 00:00:00 2001 From: crystal Date: Sat, 25 Nov 2023 18:16:52 -0700 Subject: [PATCH 086/172] chown --- .crystalintegration.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.crystalintegration.yml b/.crystalintegration.yml index 5b483aa..19adeb3 100644 --- a/.crystalintegration.yml +++ b/.crystalintegration.yml @@ -118,6 +118,7 @@ steps: - *goproxy_setup - ./.ci-make.sh forgejo-test-deps - su forgejo -c './.ci-make.sh submodule-make forgejo checks-backend' + - chown -R root:root . download-bin-amd64: image: *bin_dl_image From 435f0d972fe449f2411a1c92a6a9561b546ff965 Mon Sep 17 00:00:00 2001 From: crystal Date: Sat, 25 Nov 2023 18:22:07 -0700 Subject: [PATCH 087/172] ci order --- .crystalintegration.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.crystalintegration.yml b/.crystalintegration.yml index 19adeb3..0083090 100644 --- a/.crystalintegration.yml +++ b/.crystalintegration.yml @@ -99,14 +99,6 @@ steps: - *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 @@ -120,6 +112,14 @@ steps: - su forgejo -c './.ci-make.sh submodule-make forgejo checks-backend' - chown -R root:root . + build-frontend: + image: *nodejs_image + group: pre-build + environment: + BUILD_SUBMODULE: *build_submodule + commands: + - ./.ci-make.sh submodule-make "$BUILD_SUBMODULE" frontend + download-bin-amd64: image: *bin_dl_image group: build-main From d86fd690e3741a45cb8b4c6404f566aebf9f3295 Mon Sep 17 00:00:00 2001 From: crystal Date: Sat, 25 Nov 2023 18:36:45 -0700 Subject: [PATCH 088/172] fix script typo --- .ci-make.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ci-make.sh b/.ci-make.sh index d139fa5..9bd35fb 100755 --- a/.ci-make.sh +++ b/.ci-make.sh @@ -130,7 +130,7 @@ case "$1" in exit $? ;; "verify-data-dir-chmod") - $DATA_DIR_CHMOD="$(stat -c %a /var/lib/forgejo)" + DATA_DIR_CHMOD="$(stat -c %a /var/lib/forgejo)" if [ "$DATA_DIR_CHMOD" = "750" ]; then exit 0 else From c93919c98f8d64d5dffb0bbb90b3697b3fd9c58e Mon Sep 17 00:00:00 2001 From: crystal Date: Sat, 25 Nov 2023 18:56:25 -0700 Subject: [PATCH 089/172] noninteractive --- .ci-make.sh | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.ci-make.sh b/.ci-make.sh index 9bd35fb..6155b73 100755 --- a/.ci-make.sh +++ b/.ci-make.sh @@ -116,11 +116,12 @@ case "$1" in exit $? ;; "install-repo-test") - apt update + export DEBIAN_FRONTEND=noninteractive + apt update -qq apt install -y ./"$2" - apt update + apt update -qq apt upgrade -y - apt update + apt update -qq apt install "$3" sudo -u forgejo USER=forgejo \ HOME=/var/lib/forgejo GITEA_WORK_DIR=/var/lib/forgejo \ @@ -138,15 +139,17 @@ case "$1" in 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 - apt update - apt install --no-install-recommends -y git-lfs - apt install -y -t bookworm-backports golang-1.20 + export DEBIAN_FRONTEND=noninteractive + apt update -qq + apt install -qq --no-install-recommends -y git-lfs + apt install -qq -y -t bookworm-backports golang-1.20 ln -sf /usr/lib/go-1.20/bin/go /usr/local/bin/go adduser --quiet --comment forgejo --disabled-password forgejo chown -R forgejo:forgejo . From ad237cc8c9bab59a941725ee86dca229ba0d4a7a Mon Sep 17 00:00:00 2001 From: crystal Date: Sat, 25 Nov 2023 18:58:32 -0700 Subject: [PATCH 090/172] Release prep --- deb/debian/changelog | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deb/debian/changelog b/deb/debian/changelog index fc41590..ae22c2c 100644 --- a/deb/debian/changelog +++ b/deb/debian/changelog @@ -1,11 +1,11 @@ -forgejo (1.20.5.1-0) unstable; urgency=medium +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 Sat, 25 Nov 2023 23:40:00 +0000 + -- crystal Sun, 26 Nov 2023 01:57:00 +0000 forgejo (1.20.4.1-1) unstable; urgency=medium From 0f5de5d00647ef2957ce96fe17077238d7f93551 Mon Sep 17 00:00:00 2001 From: crystal Date: Sat, 25 Nov 2023 19:00:33 -0700 Subject: [PATCH 091/172] Merge 1.20 branch back into main This reverts commit 2c33a053df1434bda54c81593580693ba30d2c88. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e8226d7..1079963 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # 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/forgejo-contrib/forgejo-deb/status.svg?branch=1.20)](https://ci.cryxtal.org/forgejo-contrib/forgejo-deb) +### Build test: [![ci-status](https://ci.cryxtal.org/api/badges/forgejo-contrib/forgejo-deb/status.svg)](https://ci.cryxtal.org/forgejo-contrib/forgejo-deb) ## Download info 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. From 0ce837938e6f3220a70511db8b69029634b412b9 Mon Sep 17 00:00:00 2001 From: crystal Date: Sun, 26 Nov 2023 15:07:39 -0700 Subject: [PATCH 092/172] restore changelog --- deb/debian/changelog | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/deb/debian/changelog b/deb/debian/changelog index ae22c2c..72c96f0 100644 --- a/deb/debian/changelog +++ b/deb/debian/changelog @@ -7,6 +7,13 @@ forgejo (1.20.5.1-1) unstable; urgency=medium -- crystal 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 Sat, 7 Oct 2023 23:03:00 +0000 + forgejo (1.20.4.1-1) unstable; urgency=medium * Forgejo version 1.20.4-1 From 3c83d305749edec9ceadc5b4e51c25c114e25712 Mon Sep 17 00:00:00 2001 From: crystal Date: Sun, 26 Nov 2023 15:13:51 -0700 Subject: [PATCH 093/172] Forgejo v1.20.6-0 --- deb/debian/changelog | 7 +++++++ forgejo | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/deb/debian/changelog b/deb/debian/changelog index 72c96f0..e259c6e 100644 --- a/deb/debian/changelog +++ b/deb/debian/changelog @@ -1,3 +1,10 @@ +forgejo (1.20.6.0-0) unstable; urgency=medium + + * Forgejo version 1.20.6-0 + * See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#1-20-6-0 + + -- crystal Sun, 26 Nov 2023 22:12:00 +0000 + forgejo (1.20.5.1-1) unstable; urgency=medium * Forgejo version 1.20.5-1 diff --git a/forgejo b/forgejo index 3380217..684f56d 160000 --- a/forgejo +++ b/forgejo @@ -1 +1 @@ -Subproject commit 3380217da1bb928212214612d1875143c5a4b22e +Subproject commit 684f56dd6dde9367fbf8da9e12832925cdef2d9a From 1f7484ab2747d9f61e7083ae68d819057590f171 Mon Sep 17 00:00:00 2001 From: crystal Date: Mon, 8 Jan 2024 21:03:13 -0700 Subject: [PATCH 094/172] [temp] ignore ci failure --- .ci-make.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.ci-make.sh b/.ci-make.sh index 6155b73..c22c0b9 100755 --- a/.ci-make.sh +++ b/.ci-make.sh @@ -36,7 +36,9 @@ case "$1" in ;; *) echo "ERROR: Bad pipeline status $CI_VERIFY" - exit 1 + #exit 1 + echo "WARNING: Ignoring!" + exit 0 ;; esac done From 3400b72d78bd97618fff6f04b36371c9bfabb0ab Mon Sep 17 00:00:00 2001 From: crystal Date: Mon, 8 Jan 2024 21:06:33 -0700 Subject: [PATCH 095/172] Forgejo v1.20.6-1 --- deb/debian/changelog | 8 ++++---- forgejo | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/deb/debian/changelog b/deb/debian/changelog index e259c6e..04e177f 100644 --- a/deb/debian/changelog +++ b/deb/debian/changelog @@ -1,9 +1,9 @@ -forgejo (1.20.6.0-0) unstable; urgency=medium +forgejo (1.20.6.1-0) unstable; urgency=medium - * Forgejo version 1.20.6-0 - * See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#1-20-6-0 + * Forgejo version 1.20.6-1 + * See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#1-20-6-1 - -- crystal Sun, 26 Nov 2023 22:12:00 +0000 + -- crystal Tue, 9 Jan 2024 04:05:00 +0000 forgejo (1.20.5.1-1) unstable; urgency=medium diff --git a/forgejo b/forgejo index 684f56d..8c786eb 160000 --- a/forgejo +++ b/forgejo @@ -1 +1 @@ -Subproject commit 684f56dd6dde9367fbf8da9e12832925cdef2d9a +Subproject commit 8c786eb2ed60583434e4191651f36b6fcb89d009 From 687c0783184e68c72fd099400a5f73b419cc6eea Mon Sep 17 00:00:00 2001 From: crystal Date: Tue, 9 Jan 2024 16:49:19 -0700 Subject: [PATCH 096/172] Forgejo v1.20.6-1~deb0 Use newer Forgejo sources to get CI to pass --- deb/debian/changelog | 3 ++- forgejo | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/deb/debian/changelog b/deb/debian/changelog index 04e177f..aa8a9af 100644 --- a/deb/debian/changelog +++ b/deb/debian/changelog @@ -1,7 +1,8 @@ forgejo (1.20.6.1-0) unstable; urgency=medium - * Forgejo version 1.20.6-1 + * 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...496b0acd22de9bf1305bf4b8bbe1c62cd95ec4fc -- crystal Tue, 9 Jan 2024 04:05:00 +0000 diff --git a/forgejo b/forgejo index 8c786eb..496b0ac 160000 --- a/forgejo +++ b/forgejo @@ -1 +1 @@ -Subproject commit 8c786eb2ed60583434e4191651f36b6fcb89d009 +Subproject commit 496b0acd22de9bf1305bf4b8bbe1c62cd95ec4fc From b2c5780397b695b4b357f3e5c71919f3eb062fad Mon Sep 17 00:00:00 2001 From: crystal Date: Tue, 9 Jan 2024 16:54:15 -0700 Subject: [PATCH 097/172] [temp] download hardcoded tag --- .ci-make.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.ci-make.sh b/.ci-make.sh index c22c0b9..32e113d 100755 --- a/.ci-make.sh +++ b/.ci-make.sh @@ -46,7 +46,8 @@ case "$1" in ;; "download-binary") 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) + echo "WARNING: Using hardcoded tag: v1.20.6-1" + CI_RELEASE_ASSETS=$(curl $CI_VERIFY_API/api/v1/repos/$CI_VERIFY_REPO/releases/tags/v1.20.6-1 | 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 -nv --content-disposition $CI_RELEASE_BINARY_URL From eb73ef0cbca6c90a30fe8280d6217eb6e2c60ca2 Mon Sep 17 00:00:00 2001 From: crystal Date: Tue, 9 Jan 2024 16:55:06 -0700 Subject: [PATCH 098/172] Revert "[temp] ignore ci failure" This reverts commit 1f7484ab2747d9f61e7083ae68d819057590f171. --- .ci-make.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.ci-make.sh b/.ci-make.sh index 32e113d..77192e6 100755 --- a/.ci-make.sh +++ b/.ci-make.sh @@ -36,9 +36,7 @@ case "$1" in ;; *) echo "ERROR: Bad pipeline status $CI_VERIFY" - #exit 1 - echo "WARNING: Ignoring!" - exit 0 + exit 1 ;; esac done From 706a70b56396f00f1ab8a9c19e544bc42d18c11a Mon Sep 17 00:00:00 2001 From: crystal Date: Tue, 9 Jan 2024 17:02:32 -0700 Subject: [PATCH 099/172] Update changelog --- deb/debian/changelog | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deb/debian/changelog b/deb/debian/changelog index aa8a9af..9743033 100644 --- a/deb/debian/changelog +++ b/deb/debian/changelog @@ -2,9 +2,9 @@ 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...496b0acd22de9bf1305bf4b8bbe1c62cd95ec4fc + * Additional commits: https://codeberg.org/forgejo/forgejo/compare/v1.20.6-1...496b0acd22 - -- crystal Tue, 9 Jan 2024 04:05:00 +0000 + -- crystal Wed, 10 Jan 2024 00:02:00 +0000 forgejo (1.20.5.1-1) unstable; urgency=medium From 4cd33cdfa49f4197c19c773b15b90f920baa4afc Mon Sep 17 00:00:00 2001 From: crystal Date: Tue, 9 Jan 2024 17:16:45 -0700 Subject: [PATCH 100/172] Revert "[temp] download hardcoded tag" This reverts commit b2c5780397b695b4b357f3e5c71919f3eb062fad. --- .ci-make.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.ci-make.sh b/.ci-make.sh index 77192e6..6155b73 100755 --- a/.ci-make.sh +++ b/.ci-make.sh @@ -44,8 +44,7 @@ case "$1" in ;; "download-binary") if [ $CI_COMMIT_TAG ] ; then - echo "WARNING: Using hardcoded tag: v1.20.6-1" - CI_RELEASE_ASSETS=$(curl $CI_VERIFY_API/api/v1/repos/$CI_VERIFY_REPO/releases/tags/v1.20.6-1 | jq -c '.assets[]' | grep linux-amd64) + 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 -nv --content-disposition $CI_RELEASE_BINARY_URL From 9d8dc1b1d8293e513c53891cf417dcadee8e8591 Mon Sep 17 00:00:00 2001 From: crystal Date: Tue, 9 Jan 2024 18:00:21 -0700 Subject: [PATCH 101/172] Forgejo v1.21 prep --- .crystalintegration.yml | 4 ++-- deb/debian/changelog | 8 ++++++++ forgejo | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.crystalintegration.yml b/.crystalintegration.yml index 0083090..3e25a30 100644 --- a/.crystalintegration.yml +++ b/.crystalintegration.yml @@ -5,9 +5,9 @@ when: variables: - &ci_verify_image 'sc.cryxtal.org/ci-img/git-curl-jq:latest' - - &golang_image 'golang:1.20-bullseye' + - &golang_image 'golang:1.21-bullseye' - &forgejo_test_image 'docker.io/node:20-bookworm' - - &nodejs_image 'node:lts' + - &nodejs_image 'docker.io/node:20-bookworm' - &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' diff --git a/deb/debian/changelog b/deb/debian/changelog index 9743033..c3f3e0f 100644 --- a/deb/debian/changelog +++ b/deb/debian/changelog @@ -1,3 +1,11 @@ +forgejo (1.21.3.0-0) unstable; urgency=medium + + * Forgejo version 1.21.3-0~deb0 + * See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#1-21-3-0 + * Additional commits: https://codeberg.org/forgejo/forgejo/compare/v1.21.3-0...bd3e5109ba + + -- crystal Wed, 10 Jan 2024 01:00:00 +0000 + forgejo (1.20.6.1-0) unstable; urgency=medium * Forgejo version 1.20.6-1~deb0 diff --git a/forgejo b/forgejo index 496b0ac..bd3e510 160000 --- a/forgejo +++ b/forgejo @@ -1 +1 @@ -Subproject commit 496b0acd22de9bf1305bf4b8bbe1c62cd95ec4fc +Subproject commit bd3e5109ba8869ba2b03decde936403f8910cbc9 From 3e65e083a0533c2d9930fdf9d9382285e9a1607b Mon Sep 17 00:00:00 2001 From: crystal Date: Tue, 9 Jan 2024 18:27:35 -0700 Subject: [PATCH 102/172] Use golang 1.21 for forgejo-test-deps --- .ci-make.sh | 4 ++-- .crystalintegration.yml | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.ci-make.sh b/.ci-make.sh index 6155b73..dc4ecee 100755 --- a/.ci-make.sh +++ b/.ci-make.sh @@ -149,8 +149,8 @@ case "$1" in export DEBIAN_FRONTEND=noninteractive apt update -qq apt install -qq --no-install-recommends -y git-lfs - apt install -qq -y -t bookworm-backports golang-1.20 - ln -sf /usr/lib/go-1.20/bin/go /usr/local/bin/go + 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 . ;; diff --git a/.crystalintegration.yml b/.crystalintegration.yml index 3e25a30..ad494bc 100644 --- a/.crystalintegration.yml +++ b/.crystalintegration.yml @@ -18,6 +18,7 @@ variables: - &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' + - &forgejo_test_golang_ver '1.21' - &build_submodule 'forgejo' - &goproxy_override '' - &goproxy_setup |- @@ -104,6 +105,7 @@ steps: group: checks environment: GOPROXY_OVERRIDE: *goproxy_override + DEP_GOLANG_VER: *forgejo_test_golang_ver secrets: - goproxy_default commands: From 246cf1c36e0985a2e51d1439b9094f9f24711e7a Mon Sep 17 00:00:00 2001 From: crystal Date: Tue, 9 Jan 2024 20:10:26 -0700 Subject: [PATCH 103/172] woodpecker 2.x --- .crystalintegration.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.crystalintegration.yml b/.crystalintegration.yml index ad494bc..5fdf581 100644 --- a/.crystalintegration.yml +++ b/.crystalintegration.yml @@ -1,4 +1,5 @@ -platform: linux/amd64 +labels: + platform: linux/amd64 when: event: [ push, tag ] From 7ae5482aba8f023455887c8a04e8a963ae99637d Mon Sep 17 00:00:00 2001 From: crystal Date: Tue, 9 Jan 2024 20:20:14 -0700 Subject: [PATCH 104/172] remove goproxy_default secret --- .crystalintegration.yml | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/.crystalintegration.yml b/.crystalintegration.yml index 5fdf581..1c2bd3a 100644 --- a/.crystalintegration.yml +++ b/.crystalintegration.yml @@ -75,8 +75,6 @@ steps: environment: BUILD_SUBMODULE: *build_submodule GOPROXY_OVERRIDE: *goproxy_override - secrets: - - goproxy_default commands: - *goproxy_setup - ./.ci-make.sh submodule-make "$BUILD_SUBMODULE" deps-backend @@ -95,8 +93,6 @@ steps: environment: BUILD_SUBMODULE: *build_submodule GOPROXY_OVERRIDE: *goproxy_override - secrets: - - goproxy_default commands: - *goproxy_setup - ./.ci-make.sh submodule-make "$BUILD_SUBMODULE" security-check @@ -107,8 +103,6 @@ steps: environment: GOPROXY_OVERRIDE: *goproxy_override DEP_GOLANG_VER: *forgejo_test_golang_ver - secrets: - - goproxy_default commands: - *goproxy_setup - ./.ci-make.sh forgejo-test-deps @@ -139,8 +133,6 @@ steps: 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 @@ -152,8 +144,6 @@ steps: 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 From c3ee2cb55fa0a500b14e572814264e90eaffbc1c Mon Sep 17 00:00:00 2001 From: crystal Date: Tue, 9 Jan 2024 21:40:50 -0700 Subject: [PATCH 105/172] fix clone warning --- .crystalintegration.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.crystalintegration.yml b/.crystalintegration.yml index 1c2bd3a..05b5789 100644 --- a/.crystalintegration.yml +++ b/.crystalintegration.yml @@ -39,7 +39,7 @@ workspace: path: src/cryxtal/forgejo-deb clone: - clone-recursive: + git: image: woodpeckerci/plugin-git settings: recursive: true From fc4180cf6ddc71c3142a3b7bcf180a15ed05b857 Mon Sep 17 00:00:00 2001 From: crystal Date: Tue, 16 Jan 2024 14:12:16 -0700 Subject: [PATCH 106/172] Forgejo v1.21.4-0 --- deb/debian/changelog | 9 ++++----- forgejo | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/deb/debian/changelog b/deb/debian/changelog index c3f3e0f..3102143 100644 --- a/deb/debian/changelog +++ b/deb/debian/changelog @@ -1,10 +1,9 @@ -forgejo (1.21.3.0-0) unstable; urgency=medium +forgejo (1.21.4.0-1) unstable; urgency=medium - * Forgejo version 1.21.3-0~deb0 - * See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#1-21-3-0 - * Additional commits: https://codeberg.org/forgejo/forgejo/compare/v1.21.3-0...bd3e5109ba + * Forgejo version 1.21.4-0 + * See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#1-21-4-0 - -- crystal Wed, 10 Jan 2024 01:00:00 +0000 + -- crystal Tue, 16 Jan 2024 21:11:00 +0000 forgejo (1.20.6.1-0) unstable; urgency=medium diff --git a/forgejo b/forgejo index bd3e510..0f61994 160000 --- a/forgejo +++ b/forgejo @@ -1 +1 @@ -Subproject commit bd3e5109ba8869ba2b03decde936403f8910cbc9 +Subproject commit 0f61994e262654323c99c6c819b12179eb958193 From ecdcc2acf3994563535897c475cf083d22f5a058 Mon Sep 17 00:00:00 2001 From: crystal Date: Tue, 16 Jan 2024 14:26:30 -0700 Subject: [PATCH 107/172] Added NEWS.Debian --- deb/debian/NEWS.Debian | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 deb/debian/NEWS.Debian diff --git a/deb/debian/NEWS.Debian b/deb/debian/NEWS.Debian new file mode 100644 index 0000000..16b90e8 --- /dev/null +++ b/deb/debian/NEWS.Debian @@ -0,0 +1,14 @@ +forgejo (1.21.4.0-1) 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 Tue, 16 Jan 2024 21:11:00 +0000 From 660d494741b4c52f29b566021c3f1dc955c088e8 Mon Sep 17 00:00:00 2001 From: crystal Date: Tue, 16 Jan 2024 15:24:20 -0700 Subject: [PATCH 108/172] install apt-utils and apt-listchanges --- .ci-make.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/.ci-make.sh b/.ci-make.sh index dc4ecee..3acc4e7 100755 --- a/.ci-make.sh +++ b/.ci-make.sh @@ -118,6 +118,7 @@ case "$1" in "install-repo-test") export DEBIAN_FRONTEND=noninteractive apt update -qq + apt install -y apt-utils apt-listchanges apt install -y ./"$2" apt update -qq apt upgrade -y From 04aaf9d50d586782d251a0003c40803aabbaf19e Mon Sep 17 00:00:00 2001 From: crystal Date: Tue, 16 Jan 2024 15:43:36 -0700 Subject: [PATCH 109/172] noninteractive --- .ci-make.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/.ci-make.sh b/.ci-make.sh index 3acc4e7..52d48df 100755 --- a/.ci-make.sh +++ b/.ci-make.sh @@ -103,6 +103,7 @@ 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" [ -f "/etc/default/forgejo" ] && . /etc/default/forgejo From 0c05604e0d12327b7f560f53f82b6396b53156ae Mon Sep 17 00:00:00 2001 From: crystal Date: Tue, 16 Jan 2024 16:03:52 -0700 Subject: [PATCH 110/172] update changelog dates --- deb/debian/NEWS.Debian | 2 +- deb/debian/changelog | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deb/debian/NEWS.Debian b/deb/debian/NEWS.Debian index 16b90e8..51657fd 100644 --- a/deb/debian/NEWS.Debian +++ b/deb/debian/NEWS.Debian @@ -11,4 +11,4 @@ forgejo (1.21.4.0-1) unstable; urgency=medium https://forgejo.org/2023-11-release-v1211-0/ https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#1-21-4-0 - -- crystal Tue, 16 Jan 2024 21:11:00 +0000 + -- crystal Tue, 16 Jan 2024 23:03:00 +0000 diff --git a/deb/debian/changelog b/deb/debian/changelog index 3102143..5635202 100644 --- a/deb/debian/changelog +++ b/deb/debian/changelog @@ -3,7 +3,7 @@ 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 Tue, 16 Jan 2024 21:11:00 +0000 + -- crystal Tue, 16 Jan 2024 23:03:00 +0000 forgejo (1.20.6.1-0) unstable; urgency=medium From 8e9c937a630b36368c2e6f0cd3eeb95e83b33309 Mon Sep 17 00:00:00 2001 From: crystal Date: Tue, 16 Jan 2024 16:41:27 -0700 Subject: [PATCH 111/172] replace kinetic with mantic --- .crystalintegration.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.crystalintegration.yml b/.crystalintegration.yml index 05b5789..8a6a9c8 100644 --- a/.crystalintegration.yml +++ b/.crystalintegration.yml @@ -17,7 +17,7 @@ variables: - &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_mantic 'sc.cryxtal.org/ci-img/deb-test-ubuntu:mantic' - &deb_test_image_lunar 'sc.cryxtal.org/ci-img/deb-test-ubuntu:lunar' - &forgejo_test_golang_ver '1.21' - &build_submodule 'forgejo' @@ -218,8 +218,8 @@ steps: commands: - ./.ci-make.sh install-run-test ./forgejo-sqlite_*_amd64.deb - test-inst-kinetic-sqlite: - image: *deb_test_image_kinetic + test-inst-mantic-sqlite: + image: *deb_test_image_mantic group: pkg-test-3 commands: - ./.ci-make.sh install-run-test ./forgejo-sqlite_*_amd64.deb @@ -278,8 +278,8 @@ steps: when: event: [ tag ] - test-inst-kinetic-bin: - image: *deb_test_image_kinetic + test-inst-mantic-bin: + image: *deb_test_image_mantic group: pkg-test-5 commands: - ./.ci-make.sh install-run-test ./forgejo-bin_*_amd64.deb From f2fe1f65e04d525eb80a4a1d306a25041569c77a Mon Sep 17 00:00:00 2001 From: crystal Date: Tue, 16 Jan 2024 17:03:23 -0700 Subject: [PATCH 112/172] Fix NEWS.Debian --- deb/debian/{NEWS.Debian => NEWS} | 4 ++-- deb/debian/changelog | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) rename deb/debian/{NEWS.Debian => NEWS} (78%) diff --git a/deb/debian/NEWS.Debian b/deb/debian/NEWS similarity index 78% rename from deb/debian/NEWS.Debian rename to deb/debian/NEWS index 51657fd..b213eec 100644 --- a/deb/debian/NEWS.Debian +++ b/deb/debian/NEWS @@ -1,4 +1,4 @@ -forgejo (1.21.4.0-1) unstable; urgency=medium +forgejo (1.21.4.0-2) unstable; urgency=medium WARNING: Forgejo will be upgraded to v1.21.4-0 @@ -11,4 +11,4 @@ forgejo (1.21.4.0-1) unstable; urgency=medium https://forgejo.org/2023-11-release-v1211-0/ https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#1-21-4-0 - -- crystal Tue, 16 Jan 2024 23:03:00 +0000 + -- crystal Wed, 17 Jan 2024 00:00:00 +0000 diff --git a/deb/debian/changelog b/deb/debian/changelog index 5635202..89ea847 100644 --- a/deb/debian/changelog +++ b/deb/debian/changelog @@ -1,3 +1,9 @@ +forgejo (1.21.4.0-2) unstable; urgency=medium + + * Fix NEWS.Debian changelog + + -- crystal Wed, 17 Jan 2024 00:00:00 +0000 + forgejo (1.21.4.0-1) unstable; urgency=medium * Forgejo version 1.21.4-0 From ef6bbde376bb32671cd0c3dbcc30df6a8b875ffa Mon Sep 17 00:00:00 2001 From: crystal Date: Wed, 31 Jan 2024 15:23:54 -0700 Subject: [PATCH 113/172] fix repokey deb description --- repo-deb/main/debian/control | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repo-deb/main/debian/control b/repo-deb/main/debian/control index bc65394..7a929c1 100644 --- a/repo-deb/main/debian/control +++ b/repo-deb/main/debian/control @@ -16,4 +16,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 From 5bc88b12a69572881f405d71645a43204c52ec15 Mon Sep 17 00:00:00 2001 From: crystal Date: Wed, 31 Jan 2024 15:28:59 -0700 Subject: [PATCH 114/172] Forgejo v1.21.5-0 --- deb/debian/changelog | 7 +++++++ forgejo | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/deb/debian/changelog b/deb/debian/changelog index 89ea847..be96fac 100644 --- a/deb/debian/changelog +++ b/deb/debian/changelog @@ -1,3 +1,10 @@ +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-4-0 + + -- crystal Wed, 31 Jan 2024 22:22:00 +0000 + forgejo (1.21.4.0-2) unstable; urgency=medium * Fix NEWS.Debian changelog diff --git a/forgejo b/forgejo index 0f61994..faafccb 160000 --- a/forgejo +++ b/forgejo @@ -1 +1 @@ -Subproject commit 0f61994e262654323c99c6c819b12179eb958193 +Subproject commit faafccbcc7942b39cbc43f8014a435de4cc30f62 From 4ec893fd1a95464993f4a67cabb906afd9438bed Mon Sep 17 00:00:00 2001 From: crystal Date: Wed, 31 Jan 2024 16:45:46 -0700 Subject: [PATCH 115/172] fix changelog link --- deb/debian/changelog | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deb/debian/changelog b/deb/debian/changelog index be96fac..79934f2 100644 --- a/deb/debian/changelog +++ b/deb/debian/changelog @@ -1,7 +1,7 @@ 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-4-0 + * See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#1-21-5-0 -- crystal Wed, 31 Jan 2024 22:22:00 +0000 From e834e75dd8f69f0dac89abdd5b8369a7a2e9bdc6 Mon Sep 17 00:00:00 2001 From: crystal Date: Sun, 25 Feb 2024 05:10:33 -0700 Subject: [PATCH 116/172] Forgejo v1.21.6-0 --- deb/debian/changelog | 7 +++++++ forgejo | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/deb/debian/changelog b/deb/debian/changelog index 79934f2..92c8066 100644 --- a/deb/debian/changelog +++ b/deb/debian/changelog @@ -1,3 +1,10 @@ +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 Sun, 25 Feb 2024 12:10:00 +0000 + forgejo (1.21.5.0-1) unstable; urgency=medium * Forgejo version 1.21.5-0 diff --git a/forgejo b/forgejo index faafccb..031822b 160000 --- a/forgejo +++ b/forgejo @@ -1 +1 @@ -Subproject commit faafccbcc7942b39cbc43f8014a435de4cc30f62 +Subproject commit 031822b8fcf4a49efb15c7184115a5f30795e0d6 From bcfb4b6f6c8558851ff65fae0a75bb5195b2d97b Mon Sep 17 00:00:00 2001 From: crystal Date: Sun, 25 Feb 2024 14:42:10 -0700 Subject: [PATCH 117/172] manually mirror to Codeberg --- .crystalintegration.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.crystalintegration.yml b/.crystalintegration.yml index 8a6a9c8..8903b62 100644 --- a/.crystalintegration.yml +++ b/.crystalintegration.yml @@ -53,6 +53,15 @@ steps: - git fetch --tags --force - git submodule foreach 'git fetch --tags --force' + git-push-codeberg: + image: *ci_verify_image + secrets: [ cb_git_auth ] + commands: + - git remote add codeberg https://$CB_GIT_AUTH@codeberg.org/forgejo-contrib/forgejo-deb + - git fetch --unshallow origin + - git fetch codeberg + - git push codeberg --tags refs/remotes/origin/*:refs/heads/* + ci-verify: image: *ci_verify_image group: deps From 3fbe6853d84a830e859654e04acc7c8a53aeadb2 Mon Sep 17 00:00:00 2001 From: crystal Date: Wed, 6 Mar 2024 16:13:43 -0700 Subject: [PATCH 118/172] Forgejo v1.21.7-0 --- deb/debian/changelog | 7 +++++++ forgejo | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/deb/debian/changelog b/deb/debian/changelog index 92c8066..0656edb 100644 --- a/deb/debian/changelog +++ b/deb/debian/changelog @@ -1,3 +1,10 @@ +forgejo (1.21.7.0-1) unstable; urgency=medium + + * Forgejo version 1.21.7-0 + * See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#1-21-7-0 + + -- crystal Wed, 6 Mar 2024 23:14:00 +0000 + forgejo (1.21.6.0-1) unstable; urgency=medium * Forgejo version 1.21.6-0 diff --git a/forgejo b/forgejo index 031822b..6e877f0 160000 --- a/forgejo +++ b/forgejo @@ -1 +1 @@ -Subproject commit 031822b8fcf4a49efb15c7184115a5f30795e0d6 +Subproject commit 6e877f02ab3be43c02de4a2edbfefe4919c02079 From 4b9f5060fd2c326a19a96795fde1dbe82bc1b7fb Mon Sep 17 00:00:00 2001 From: crystal Date: Fri, 22 Mar 2024 15:35:27 -0600 Subject: [PATCH 119/172] add git dep --- deb/debian/changelog | 5 +++-- deb/debian/control | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/deb/debian/changelog b/deb/debian/changelog index 0656edb..cc80f3a 100644 --- a/deb/debian/changelog +++ b/deb/debian/changelog @@ -1,9 +1,10 @@ -forgejo (1.21.7.0-1) unstable; urgency=medium +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 Wed, 6 Mar 2024 23:14:00 +0000 + -- crystal Fri, 22 Mar 2024 21:35:00 +0000 forgejo (1.21.6.0-1) unstable; urgency=medium diff --git a/deb/debian/control b/deb/debian/control index d77bbe4..323d688 100644 --- a/deb/debian/control +++ b/deb/debian/control @@ -8,7 +8,7 @@ Package: forgejo Architecture: amd64 Priority: optional Provides: gitea -Depends: adduser (>= 3.11) +Depends: 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 @@ -17,7 +17,7 @@ Package: forgejo-sqlite Architecture: amd64 Priority: optional Provides: forgejo,gitea -Depends: adduser (>= 3.11) +Depends: 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 From 0ab3730c43999aa84f23d2cb14c96021267b87b3 Mon Sep 17 00:00:00 2001 From: crystal Date: Fri, 22 Mar 2024 22:32:42 -0600 Subject: [PATCH 120/172] fix unshallow --- .crystalintegration.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.crystalintegration.yml b/.crystalintegration.yml index 8903b62..d8112af 100644 --- a/.crystalintegration.yml +++ b/.crystalintegration.yml @@ -58,7 +58,7 @@ steps: secrets: [ cb_git_auth ] commands: - git remote add codeberg https://$CB_GIT_AUTH@codeberg.org/forgejo-contrib/forgejo-deb - - git fetch --unshallow origin + - if ( $(git rev-parse --is-shallow-repository) == "true" );then; git fetch --unshallow origin ;fi - git fetch codeberg - git push codeberg --tags refs/remotes/origin/*:refs/heads/* From e4af7ff15105d793745f9e29a663713845e7fe3b Mon Sep 17 00:00:00 2001 From: crystal Date: Sat, 23 Mar 2024 11:27:13 -0600 Subject: [PATCH 121/172] fix then --- .crystalintegration.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.crystalintegration.yml b/.crystalintegration.yml index d8112af..0821dab 100644 --- a/.crystalintegration.yml +++ b/.crystalintegration.yml @@ -58,7 +58,7 @@ steps: secrets: [ cb_git_auth ] commands: - git remote add codeberg https://$CB_GIT_AUTH@codeberg.org/forgejo-contrib/forgejo-deb - - if ( $(git rev-parse --is-shallow-repository) == "true" );then; git fetch --unshallow origin ;fi + - if ( $(git rev-parse --is-shallow-repository) == "true" );then git fetch --unshallow origin ;fi - git fetch codeberg - git push codeberg --tags refs/remotes/origin/*:refs/heads/* From 8f030778e0a6636264e04164ac5d93591f39b18c Mon Sep 17 00:00:00 2001 From: crystal Date: Sat, 23 Mar 2024 12:15:03 -0600 Subject: [PATCH 122/172] Forgejo v1.21.8-0 --- deb/debian/changelog | 7 +++++++ forgejo | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/deb/debian/changelog b/deb/debian/changelog index cc80f3a..9c7bda0 100644 --- a/deb/debian/changelog +++ b/deb/debian/changelog @@ -1,3 +1,10 @@ +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 Sat, 23 Mar 2024 18:15:00 +0000 + forgejo (1.21.7.0-2) unstable; urgency=medium * Forgejo version 1.21.7-0 diff --git a/forgejo b/forgejo index 6e877f0..4092c54 160000 --- a/forgejo +++ b/forgejo @@ -1 +1 @@ -Subproject commit 6e877f02ab3be43c02de4a2edbfefe4919c02079 +Subproject commit 4092c544ca01aaaebb9596449e79eaf29a8d91ff From de74368c1bc83e56829c0436b95a3ab240604cfc Mon Sep 17 00:00:00 2001 From: crystal Date: Sat, 23 Mar 2024 12:50:19 -0600 Subject: [PATCH 123/172] apt -y --- .ci-make.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ci-make.sh b/.ci-make.sh index 52d48df..597be52 100755 --- a/.ci-make.sh +++ b/.ci-make.sh @@ -124,7 +124,7 @@ case "$1" in apt update -qq apt upgrade -y apt update -qq - apt install "$3" + apt install -y "$3" sudo -u forgejo USER=forgejo \ HOME=/var/lib/forgejo GITEA_WORK_DIR=/var/lib/forgejo \ forgejo web -q --config /etc/fogejo/app.ini & From 03fcb8fe818d4658d7ded45d89b2d941e031ef6c Mon Sep 17 00:00:00 2001 From: crystal Date: Tue, 9 Apr 2024 05:27:15 -0600 Subject: [PATCH 124/172] Forgejo v1.21.10-0 --- deb/debian/changelog | 7 +++++++ forgejo | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/deb/debian/changelog b/deb/debian/changelog index 9c7bda0..4c6fbf7 100644 --- a/deb/debian/changelog +++ b/deb/debian/changelog @@ -1,3 +1,10 @@ +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 Tue, 9 Apr 2024 11:27:00 +0000 + forgejo (1.21.8.0-1) unstable; urgency=medium * Forgejo version 1.21.8-0 diff --git a/forgejo b/forgejo index 4092c54..d367661 160000 --- a/forgejo +++ b/forgejo @@ -1 +1 @@ -Subproject commit 4092c544ca01aaaebb9596449e79eaf29a8d91ff +Subproject commit d367661ab758c6d3d9cb538969e0b7bb83cb8ac8 From 391360b320cbbef047a651dda3abfa3d4264935b Mon Sep 17 00:00:00 2001 From: crystal Date: Tue, 9 Apr 2024 05:49:38 -0600 Subject: [PATCH 125/172] install go1.21.9 --- .ci-make.sh | 7 +++++++ .crystalintegration.yml | 2 ++ 2 files changed, 9 insertions(+) diff --git a/.ci-make.sh b/.ci-make.sh index 597be52..7c112bf 100755 --- a/.ci-make.sh +++ b/.ci-make.sh @@ -155,6 +155,13 @@ case "$1" in 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 + go install golang.org/dl/go$DEP_GOLANG_VER.$DEP_GOLANG_NODEB_REV@latest + ln -s ~/go/bin/go$DEP_GOLANG_VER.$DEP_GOLANG_NODEB_REV ~/go/bin/go + export PATH="$HOME/go/bin:$PATH" + go download + go version + fi ;; esac diff --git a/.crystalintegration.yml b/.crystalintegration.yml index 0821dab..1c51f51 100644 --- a/.crystalintegration.yml +++ b/.crystalintegration.yml @@ -20,6 +20,7 @@ variables: - &deb_test_image_mantic 'sc.cryxtal.org/ci-img/deb-test-ubuntu:mantic' - &deb_test_image_lunar 'sc.cryxtal.org/ci-img/deb-test-ubuntu:lunar' - &forgejo_test_golang_ver '1.21' + - &forgejo_test_golang_nodeb_rev '9' - &build_submodule 'forgejo' - &goproxy_override '' - &goproxy_setup |- @@ -112,6 +113,7 @@ steps: environment: GOPROXY_OVERRIDE: *goproxy_override DEP_GOLANG_VER: *forgejo_test_golang_ver + DEP_GOLANG_NODEB_REV: *forgejo_test_golang_nodeb_rev commands: - *goproxy_setup - ./.ci-make.sh forgejo-test-deps From dc718d4f7a0ced00d94514beec48d53ecbdf3e19 Mon Sep 17 00:00:00 2001 From: crystal Date: Tue, 9 Apr 2024 06:57:35 -0600 Subject: [PATCH 126/172] upgrade go as user forgejo --- .ci-make.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.ci-make.sh b/.ci-make.sh index 7c112bf..7141acf 100755 --- a/.ci-make.sh +++ b/.ci-make.sh @@ -156,12 +156,15 @@ case "$1" in adduser --quiet --comment forgejo --disabled-password forgejo chown -R forgejo:forgejo . if [ "$DEP_GOLANG_NODEB_REV" ];then - go install golang.org/dl/go$DEP_GOLANG_VER.$DEP_GOLANG_NODEB_REV@latest - ln -s ~/go/bin/go$DEP_GOLANG_VER.$DEP_GOLANG_NODEB_REV ~/go/bin/go - export PATH="$HOME/go/bin:$PATH" - go download - go version + 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 From 744a931c2e0d601e6b47facb99448c9f9d776d44 Mon Sep 17 00:00:00 2001 From: crystal Date: Thu, 18 Apr 2024 17:37:09 -0600 Subject: [PATCH 127/172] Forgejo v1.21.11-0 --- deb/debian/changelog | 7 +++++++ forgejo | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/deb/debian/changelog b/deb/debian/changelog index 4c6fbf7..eed6008 100644 --- a/deb/debian/changelog +++ b/deb/debian/changelog @@ -1,3 +1,10 @@ +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 Thu, 18 Apr 2024 23:36:00 +0000 + forgejo (1.21.10.0-1) unstable; urgency=medium * Forgejo version 1.21.10-0 diff --git a/forgejo b/forgejo index d367661..cc80e66 160000 --- a/forgejo +++ b/forgejo @@ -1 +1 @@ -Subproject commit d367661ab758c6d3d9cb538969e0b7bb83cb8ac8 +Subproject commit cc80e661531794fff7f8a336eaaefdb7e3bd3956 From 862c5f9e7eea4a82953785d4860756a1e50bb45d Mon Sep 17 00:00:00 2001 From: crystal Date: Thu, 18 Apr 2024 22:40:17 -0600 Subject: [PATCH 128/172] add timetzdata to build tags --- .crystalintegration.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.crystalintegration.yml b/.crystalintegration.yml index 1c51f51..9c90e9a 100644 --- a/.crystalintegration.yml +++ b/.crystalintegration.yml @@ -142,7 +142,7 @@ steps: environment: BUILD_SUBMODULE: *build_submodule GOSUMDB: sum.golang.org - TAGS: bindata + TAGS: bindata timetzdata GOPROXY_OVERRIDE: *goproxy_override commands: - *goproxy_setup @@ -153,7 +153,7 @@ steps: environment: BUILD_SUBMODULE: *build_submodule GOSUMDB: sum.golang.org - TAGS: bindata sqlite sqlite_unlock_notify + TAGS: bindata timetzdata sqlite sqlite_unlock_notify GOPROXY_OVERRIDE: *goproxy_override commands: - *goproxy_setup From 48226d1e61b86881acb81ed7343df92352c44494 Mon Sep 17 00:00:00 2001 From: crystal Date: Fri, 19 Apr 2024 09:46:57 -0600 Subject: [PATCH 129/172] Forgejo v1.21.11-1 --- deb/debian/changelog | 7 +++++++ forgejo | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/deb/debian/changelog b/deb/debian/changelog index eed6008..37ea995 100644 --- a/deb/debian/changelog +++ b/deb/debian/changelog @@ -1,3 +1,10 @@ +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 Fri, 19 Apr 2024 15:46:00 +0000 + forgejo (1.21.11.0-1) unstable; urgency=medium * Forgejo version 1.21.11-0 diff --git a/forgejo b/forgejo index cc80e66..1bb4034 160000 --- a/forgejo +++ b/forgejo @@ -1 +1 @@ -Subproject commit cc80e661531794fff7f8a336eaaefdb7e3bd3956 +Subproject commit 1bb403421d278bd2528c7f0231716983ca749df2 From 085ef9244d6d402d839aeec2b8883a33a2721193 Mon Sep 17 00:00:00 2001 From: crystal Date: Fri, 19 Apr 2024 10:40:44 -0600 Subject: [PATCH 130/172] Revert "add timetzdata to build tags" This reverts commit 862c5f9e7eea4a82953785d4860756a1e50bb45d. --- .crystalintegration.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.crystalintegration.yml b/.crystalintegration.yml index 9c90e9a..1c51f51 100644 --- a/.crystalintegration.yml +++ b/.crystalintegration.yml @@ -142,7 +142,7 @@ steps: environment: BUILD_SUBMODULE: *build_submodule GOSUMDB: sum.golang.org - TAGS: bindata timetzdata + TAGS: bindata GOPROXY_OVERRIDE: *goproxy_override commands: - *goproxy_setup @@ -153,7 +153,7 @@ steps: environment: BUILD_SUBMODULE: *build_submodule GOSUMDB: sum.golang.org - TAGS: bindata timetzdata sqlite sqlite_unlock_notify + TAGS: bindata sqlite sqlite_unlock_notify GOPROXY_OVERRIDE: *goproxy_override commands: - *goproxy_setup From 49e6a28bbbaae49d2ce252bfa13e1c40fe9e3cf3 Mon Sep 17 00:00:00 2001 From: crystal Date: Tue, 23 Apr 2024 11:21:26 -0600 Subject: [PATCH 131/172] Forgejo v7.0.0 --- .crystalintegration.yml | 6 +++--- deb/debian/changelog | 7 +++++++ forgejo | 2 +- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.crystalintegration.yml b/.crystalintegration.yml index 1c51f51..fcd7e0b 100644 --- a/.crystalintegration.yml +++ b/.crystalintegration.yml @@ -6,7 +6,7 @@ when: variables: - &ci_verify_image 'sc.cryxtal.org/ci-img/git-curl-jq:latest' - - &golang_image 'golang:1.21-bullseye' + - &golang_image 'golang:1.22-bullseye' - &forgejo_test_image 'docker.io/node:20-bookworm' - &nodejs_image 'docker.io/node:20-bookworm' - &bin_dl_image 'sc.cryxtal.org/ci-img/bin-dl:latest' @@ -19,8 +19,8 @@ variables: - &deb_test_image_focal 'sc.cryxtal.org/ci-img/deb-test-ubuntu:focal' - &deb_test_image_mantic 'sc.cryxtal.org/ci-img/deb-test-ubuntu:mantic' - &deb_test_image_lunar 'sc.cryxtal.org/ci-img/deb-test-ubuntu:lunar' - - &forgejo_test_golang_ver '1.21' - - &forgejo_test_golang_nodeb_rev '9' + - &forgejo_test_golang_ver '1.22' + - &forgejo_test_golang_nodeb_rev '2' - &build_submodule 'forgejo' - &goproxy_override '' - &goproxy_setup |- diff --git a/deb/debian/changelog b/deb/debian/changelog index 37ea995..4dcf84e 100644 --- a/deb/debian/changelog +++ b/deb/debian/changelog @@ -1,3 +1,10 @@ +forgejo (7.0.0-1) unstable; urgency=medium + + * Forgejo version 7.0.0 + * See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#7-0-0 + + -- crystal Tue, 23 Apr 2024 17:18:00 +0000 + forgejo (1.21.11.1-1) unstable; urgency=medium * Forgejo version 1.21.11-1 diff --git a/forgejo b/forgejo index 1bb4034..73c190a 160000 --- a/forgejo +++ b/forgejo @@ -1 +1 @@ -Subproject commit 1bb403421d278bd2528c7f0231716983ca749df2 +Subproject commit 73c190af4c13a09453b878e255c31cd70ddd5ab9 From 77f40ec819934137a35d178689051a19f95df7a0 Mon Sep 17 00:00:00 2001 From: crystal Date: Sat, 27 Apr 2024 09:36:54 -0600 Subject: [PATCH 132/172] Forgejo v7.0.1 --- deb/debian/changelog | 6 +++--- forgejo | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/deb/debian/changelog b/deb/debian/changelog index 4dcf84e..18644bb 100644 --- a/deb/debian/changelog +++ b/deb/debian/changelog @@ -1,9 +1,9 @@ -forgejo (7.0.0-1) unstable; urgency=medium +forgejo (7.0.1-1) unstable; urgency=medium - * Forgejo version 7.0.0 + * Forgejo version 7.0.1 * See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#7-0-0 - -- crystal Tue, 23 Apr 2024 17:18:00 +0000 + -- crystal Sat, 27 Apr 2024 15:35:00 +0000 forgejo (1.21.11.1-1) unstable; urgency=medium diff --git a/forgejo b/forgejo index 73c190a..554f369 160000 --- a/forgejo +++ b/forgejo @@ -1 +1 @@ -Subproject commit 73c190af4c13a09453b878e255c31cd70ddd5ab9 +Subproject commit 554f3697fc4519b44fb583925259db97eb3a8f5b From 7da06d8be15b28e224f7379b54925f505f1dc969 Mon Sep 17 00:00:00 2001 From: crystal Date: Sat, 27 Apr 2024 09:42:15 -0600 Subject: [PATCH 133/172] major upgrade --- deb/debian/NEWS | 15 +++++++++++++++ deb/debian/changelog | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/deb/debian/NEWS b/deb/debian/NEWS index b213eec..ef3b3ff 100644 --- a/deb/debian/NEWS +++ b/deb/debian/NEWS @@ -1,3 +1,18 @@ +forgejo (7.0.1-1) 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 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 diff --git a/deb/debian/changelog b/deb/debian/changelog index 18644bb..8a9a4f9 100644 --- a/deb/debian/changelog +++ b/deb/debian/changelog @@ -1,7 +1,7 @@ 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-0 + * See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#7-0-1 -- crystal Sat, 27 Apr 2024 15:35:00 +0000 From 371709d63180b00e4ff59fe01cb9c336ec4b3f3a Mon Sep 17 00:00:00 2001 From: crystal Date: Sat, 27 Apr 2024 09:50:24 -0600 Subject: [PATCH 134/172] upload to forgejo-lts dist --- .crystalintegration.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.crystalintegration.yml b/.crystalintegration.yml index fcd7e0b..7b66393 100644 --- a/.crystalintegration.yml +++ b/.crystalintegration.yml @@ -351,7 +351,7 @@ steps: FORGEJO_SITE: https://code.forgejo.org FORGEJO_OWNER: forgejo-contrib DEBIAN_DIST: bullseye - DEBIAN_COMPONENT: forgejo + DEBIAN_COMPONENT: forgejo-lts secrets: [ cfo_api_key ] commands: - export FORGEJO_KEY=$CFO_API_KEY From 08f545c3661f36af1f4d493408ee6b00ac4bb223 Mon Sep 17 00:00:00 2001 From: crystal Date: Sat, 27 Apr 2024 18:55:53 -0600 Subject: [PATCH 135/172] [squash] Switch to Forgejo Actions --- .ci-make.sh | 64 ++++- .crystalintegration.yml | 360 ----------------------------- .forgejo/workflows/forgejo-deb.yml | 215 +++++++++++++++++ .gitmodules | 2 +- README.md | 2 - repo-deb/build.sh | 7 +- 6 files changed, 284 insertions(+), 366 deletions(-) delete mode 100644 .crystalintegration.yml create mode 100644 .forgejo/workflows/forgejo-deb.yml diff --git a/.ci-make.sh b/.ci-make.sh index 7141acf..431cb4f 100755 --- a/.ci-make.sh +++ b/.ci-make.sh @@ -19,6 +19,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,6 +77,26 @@ case "$1" in exit 255 ;; "download-binary") + if [ "$GITHUB_REF_TYPE" = "tag" ] ; then + echo "INFO: Forgejo Actions mode!" + CI_COMMIT_TAG="$GITHUB_REF_NAME" + elif [ "$GITHUB_REF_TYPE" = "branch" ] ; 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 + CI_COMMIT_TAG_RESOLVE=$(git describe --tags HEAD --abbrev=0) + echo "Closest existing tag: $CI_COMMIT_TAG_RESOLVE" + 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) @@ -77,9 +131,17 @@ case "$1" in 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") diff --git a/.crystalintegration.yml b/.crystalintegration.yml deleted file mode 100644 index 7b66393..0000000 --- a/.crystalintegration.yml +++ /dev/null @@ -1,360 +0,0 @@ -labels: - platform: linux/amd64 - -when: - event: [ push, tag ] - -variables: - - &ci_verify_image 'sc.cryxtal.org/ci-img/git-curl-jq:latest' - - &golang_image 'golang:1.22-bullseye' - - &forgejo_test_image 'docker.io/node:20-bookworm' - - &nodejs_image 'docker.io/node:20-bookworm' - - &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_mantic 'sc.cryxtal.org/ci-img/deb-test-ubuntu:mantic' - - &deb_test_image_lunar 'sc.cryxtal.org/ci-img/deb-test-ubuntu:lunar' - - &forgejo_test_golang_ver '1.22' - - &forgejo_test_golang_nodeb_rev '2' - - &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: - git: - image: woodpeckerci/plugin-git - settings: - recursive: true - -steps: - 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' - - git-push-codeberg: - image: *ci_verify_image - secrets: [ cb_git_auth ] - commands: - - git remote add codeberg https://$CB_GIT_AUTH@codeberg.org/forgejo-contrib/forgejo-deb - - if ( $(git rev-parse --is-shallow-repository) == "true" );then git fetch --unshallow origin ;fi - - git fetch codeberg - - git push codeberg --tags refs/remotes/origin/*:refs/heads/* - - 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 - 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 - commands: - - *goproxy_setup - - ./.ci-make.sh submodule-make "$BUILD_SUBMODULE" security-check - - checks-backend: - image: *forgejo_test_image - group: checks - environment: - GOPROXY_OVERRIDE: *goproxy_override - DEP_GOLANG_VER: *forgejo_test_golang_ver - DEP_GOLANG_NODEB_REV: *forgejo_test_golang_nodeb_rev - commands: - - *goproxy_setup - - ./.ci-make.sh forgejo-test-deps - - su forgejo -c './.ci-make.sh submodule-make forgejo checks-backend' - - chown -R root:root . - - build-frontend: - image: *nodejs_image - group: pre-build - environment: - BUILD_SUBMODULE: *build_submodule - commands: - - ./.ci-make.sh submodule-make "$BUILD_SUBMODULE" frontend - - 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 - 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 - 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-mantic-sqlite: - image: *deb_test_image_mantic - 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-mantic-bin: - image: *deb_test_image_mantic - 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 - - ./.ci-make.sh force-clean-forgejo - - ./.ci-make.sh install-run-test ./forgejo-sqlite_*_amd64.deb - - ./.ci-make.sh verify-data-dir-chmod - - 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: forgejo-contrib - DEBIAN_DIST: bullseye - DEBIAN_COMPONENT: forgejo-lts - secrets: [ cfo_api_key ] - commands: - - export FORGEJO_KEY=$CFO_API_KEY - - ./.ci-forgejo-apt.sh *.deb - when: - event: [ tag ] diff --git a/.forgejo/workflows/forgejo-deb.yml b/.forgejo/workflows/forgejo-deb.yml new file mode 100644 index 0000000..5b5ba99 --- /dev/null +++ b/.forgejo/workflows/forgejo-deb.yml @@ -0,0 +1,215 @@ +on: [push] +jobs: + build-forgejo-deb: + runs-on: bullseye + steps: + - uses: actions/checkout@v4 + with: + submodules: true + + - uses: actions/setup-node@v3 + with: + node-version: 20 + + - uses: actions/setup-go@v4 + with: + go-version: "1.22" + check-latest: true + + - name: "actions prep: build-forgejo-deb" + id: ciprep + run: ./.ci-make.sh actions-prep build-forgejo-deb + + - name: fetch tags + run: | + git config --add safe.directory '*' + git fetch --tags --force + git submodule foreach 'git fetch --tags --force' + + - 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 + env: + TAGS: bindata + + - name: Build Forgejo (with SQLite) for amd64 + run: ./.ci-make.sh submodule-build forgejo forgejo-sqlite-bin + env: + TAGS: bindata 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 + 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 + 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 + 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 + 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 + 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 + 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 + if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') + 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://codeberg.org + token: ${{ secrets.codeberg_api_key }} + release-dir: forgejo-release + + - name: Debian package registry publish + 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 forgejo-release + ../.ci-forgejo-apt.sh *.deb + cd .. diff --git a/.gitmodules b/.gitmodules index 67768c7..5abb796 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ [submodule "forgejo"] path = forgejo - url = https://sc.cryxtal.org/forgejo/forgejo + url = https://codeberg.org/forgejo/forgejo diff --git a/README.md b/README.md index 1079963..cabed1d 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,6 @@ # 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/forgejo-contrib/forgejo-deb/status.svg)](https://ci.cryxtal.org/forgejo-contrib/forgejo-deb) - ## Download info 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 diff --git a/repo-deb/build.sh b/repo-deb/build.sh index d9eed8c..bdb1ef2 100755 --- a/repo-deb/build.sh +++ b/repo-deb/build.sh @@ -4,10 +4,13 @@ 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 +dpkg-buildpackage -b $PACKAGE_BUILD_EXTRA_ARGS cd .. exit 0 From 1a8f2ec431e65680932152cc5a9f1bf6000f17af Mon Sep 17 00:00:00 2001 From: crystal Date: Sat, 27 Apr 2024 20:52:24 -0600 Subject: [PATCH 136/172] [squash] use actions for pr tests --- .ci-make.sh | 16 +++++++++++++++- .forgejo/workflows/forgejo-deb.yml | 2 +- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/.ci-make.sh b/.ci-make.sh index 431cb4f..8356dbc 100755 --- a/.ci-make.sh +++ b/.ci-make.sh @@ -77,10 +77,15 @@ 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" ] ; then + 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)" @@ -92,6 +97,15 @@ case "$1" in git describe --tags HEAD CI_COMMIT_TAG_RESOLVE=$(git describe --tags HEAD --abbrev=0) echo "Closest existing tag: $CI_COMMIT_TAG_RESOLVE" + if [ "$CI_COMMIT_TAG_RESOLVE" = *"-dev" ] ; 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! building dev version- skipping binary dl" + CI_COMMIT_TAG_RESOLVE= + fi fi cd .. echo "Proceeding with resolved tag: $CI_COMMIT_TAG_RESOLVE" diff --git a/.forgejo/workflows/forgejo-deb.yml b/.forgejo/workflows/forgejo-deb.yml index 5b5ba99..c5f49cb 100644 --- a/.forgejo/workflows/forgejo-deb.yml +++ b/.forgejo/workflows/forgejo-deb.yml @@ -1,4 +1,4 @@ -on: [push] +on: [push, pull_request] jobs: build-forgejo-deb: runs-on: bullseye From 6adb447669a6efb2937ea2cf6e9b7becdaae54be Mon Sep 17 00:00:00 2001 From: crystal Date: Sat, 27 Apr 2024 23:42:48 -0600 Subject: [PATCH 137/172] [squash] mirror to code.forgejo.org --- .action-forgejo-mirror.sh | 11 +++++++++++ .forgejo/workflows/forgejo-deb.yml | 21 +++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100755 .action-forgejo-mirror.sh diff --git a/.action-forgejo-mirror.sh b/.action-forgejo-mirror.sh new file mode 100755 index 0000000..43b1abf --- /dev/null +++ b/.action-forgejo-mirror.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +if [ "$GITHUB_REPOSITORY_OWNER" = "crystal" ] ; then + echo "crystal_pr: skipping mirror!" + exit 0 +fi +git fetch --tags +git remote add action-forgejo-mirror https://forgejo-deb:$FORGEJO_KEY@$FORGEJO_DEST/$GITHUB_REPOSITORY +git push action-forgejo-mirror --all +git push action-forgejo-mirror --tags "refs/remotes/origin/*:refs/heads/*" +git remote remove action-forgejo-mirror diff --git a/.forgejo/workflows/forgejo-deb.yml b/.forgejo/workflows/forgejo-deb.yml index c5f49cb..796677a 100644 --- a/.forgejo/workflows/forgejo-deb.yml +++ b/.forgejo/workflows/forgejo-deb.yml @@ -1,5 +1,19 @@ on: [push, pull_request] jobs: + mirror: + runs-on: bookworm + if: github.event_name == 'push' + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: "mirror repo: code.forgejo.org" + env: + FORGEJO_DEST: code.forgejo.org + FORGEJO_KEY: ${{ secrets.cfo_api_key }} + run: ./.action-forgejo-mirror.sh + build-forgejo-deb: runs-on: bullseye steps: @@ -202,6 +216,13 @@ jobs: token: ${{ secrets.codeberg_api_key }} 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 + - name: Debian package registry publish env: FORGEJO_SITE: https://code.forgejo.org From 42f4030384866b4709fb7eda8a15d182e2a3675a Mon Sep 17 00:00:00 2001 From: crystal Date: Sun, 28 Apr 2024 07:13:58 -0600 Subject: [PATCH 138/172] Add apt-listchanges dep --- repo-deb/main/debian/changelog | 6 ++++++ repo-deb/main/debian/control | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/repo-deb/main/debian/changelog b/repo-deb/main/debian/changelog index 088aae2..4024742 100644 --- a/repo-deb/main/debian/changelog +++ b/repo-deb/main/debian/changelog @@ -1,3 +1,9 @@ +forgejo-deb-repo (2-2) unstable; urgency=medium + + * Add apt-listchanges dep for important upgrade notices + + -- crystal 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 diff --git a/repo-deb/main/debian/control b/repo-deb/main/debian/control index 7a929c1..9a2df0b 100644 --- a/repo-deb/main/debian/control +++ b/repo-deb/main/debian/control @@ -7,7 +7,7 @@ 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 Description: APT Repository for forgejo-deb builds Forgejo will be updated via apt along with other software on your system From 856693ebcff1d4d8383feeea3bb45125913d0e68 Mon Sep 17 00:00:00 2001 From: crystal Date: Sun, 28 Apr 2024 07:27:34 -0600 Subject: [PATCH 139/172] [temp] publish repo deb --- .forgejo/workflows/forgejo-deb.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.forgejo/workflows/forgejo-deb.yml b/.forgejo/workflows/forgejo-deb.yml index 796677a..230e554 100644 --- a/.forgejo/workflows/forgejo-deb.yml +++ b/.forgejo/workflows/forgejo-deb.yml @@ -191,6 +191,34 @@ jobs: - run: ./.ci-make.sh install-run-test ./forgejo-bin_*_amd64.deb + publish-repo-deb: + runs-on: bookworm + if: github.event_name == 'push' && github.repository == 'forgejo-contrib/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 + + - name: Debian package registry publish + env: + FORGEJO_SITE: https://code.forgejo.org + FORGEJO_OWNER: forgejo-contrib + DEBIAN_DIST: bullseye + DEBIAN_COMPONENT: forgejo + FORGEJO_KEY: ${{ secrets.cfo_api_key }} + run: | + cd repo-deb + ../.ci-forgejo-apt.sh forgejo-deb-repo_2-*_all.deb + cd .. + publish-release-repo: runs-on: bookworm if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') From cee5e87ae316c1f3a899e1e4c1e5150db96d8eb3 Mon Sep 17 00:00:00 2001 From: crystal Date: Sun, 28 Apr 2024 08:11:19 -0600 Subject: [PATCH 140/172] Revert "[temp] publish repo deb" This reverts commit 856693ebcff1d4d8383feeea3bb45125913d0e68. --- .forgejo/workflows/forgejo-deb.yml | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/.forgejo/workflows/forgejo-deb.yml b/.forgejo/workflows/forgejo-deb.yml index 230e554..796677a 100644 --- a/.forgejo/workflows/forgejo-deb.yml +++ b/.forgejo/workflows/forgejo-deb.yml @@ -191,34 +191,6 @@ jobs: - run: ./.ci-make.sh install-run-test ./forgejo-bin_*_amd64.deb - publish-repo-deb: - runs-on: bookworm - if: github.event_name == 'push' && github.repository == 'forgejo-contrib/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 - - - name: Debian package registry publish - env: - FORGEJO_SITE: https://code.forgejo.org - FORGEJO_OWNER: forgejo-contrib - DEBIAN_DIST: bullseye - DEBIAN_COMPONENT: forgejo - FORGEJO_KEY: ${{ secrets.cfo_api_key }} - run: | - cd repo-deb - ../.ci-forgejo-apt.sh forgejo-deb-repo_2-*_all.deb - cd .. - publish-release-repo: runs-on: bookworm if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') From 6b780077a15230a5bc46fa12e0e47f0b239a315c Mon Sep 17 00:00:00 2001 From: crystal Date: Sun, 28 Apr 2024 08:18:23 -0600 Subject: [PATCH 141/172] allow for self-hosted tests --- .action-forgejo-mirror.sh | 6 +----- .forgejo/workflows/forgejo-deb.yml | 4 ++-- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.action-forgejo-mirror.sh b/.action-forgejo-mirror.sh index 43b1abf..84df16c 100755 --- a/.action-forgejo-mirror.sh +++ b/.action-forgejo-mirror.sh @@ -1,11 +1,7 @@ #!/usr/bin/env bash -if [ "$GITHUB_REPOSITORY_OWNER" = "crystal" ] ; then - echo "crystal_pr: skipping mirror!" - exit 0 -fi git fetch --tags -git remote add action-forgejo-mirror https://forgejo-deb:$FORGEJO_KEY@$FORGEJO_DEST/$GITHUB_REPOSITORY +git remote add action-forgejo-mirror https://action-forgejo-mirror:$FORGEJO_KEY@$FORGEJO_DEST/$GITHUB_REPOSITORY git push action-forgejo-mirror --all git push action-forgejo-mirror --tags "refs/remotes/origin/*:refs/heads/*" git remote remove action-forgejo-mirror diff --git a/.forgejo/workflows/forgejo-deb.yml b/.forgejo/workflows/forgejo-deb.yml index 796677a..1c66728 100644 --- a/.forgejo/workflows/forgejo-deb.yml +++ b/.forgejo/workflows/forgejo-deb.yml @@ -2,7 +2,7 @@ on: [push, pull_request] jobs: mirror: runs-on: bookworm - if: github.event_name == 'push' + if: github.event_name == 'push' && github.repository == 'forgejo-contrib/forgejo-deb' steps: - uses: actions/checkout@v4 with: @@ -193,7 +193,7 @@ jobs: publish-release-repo: runs-on: bookworm - if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') + if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') && github.repository == 'forgejo-contrib/forgejo-deb' steps: - uses: actions/checkout@v4 From 22a152e1881a2d1903a72230eb81267b2add6e6d Mon Sep 17 00:00:00 2001 From: crystal Date: Sun, 28 Apr 2024 10:11:58 -0600 Subject: [PATCH 142/172] [squash] repo-deb lts channel --- repo-deb/forgejo-deb.list | 2 +- repo-deb/main/debian/NEWS | 22 ++++++++++++++++++++++ repo-deb/main/debian/changelog | 6 ++++++ repo-deb/main/debian/control | 1 + 4 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 repo-deb/main/debian/NEWS diff --git a/repo-deb/forgejo-deb.list b/repo-deb/forgejo-deb.list index 946a727..8a6def5 100644 --- a/repo-deb/forgejo-deb.list +++ b/repo-deb/forgejo-deb.list @@ -1 +1 @@ -deb https://code.forgejo.org/api/packages/forgejo-contrib/debian bullseye forgejo +deb https://code.forgejo.org/api/packages/forgejo-contrib/debian bullseye forgejo-lts diff --git a/repo-deb/main/debian/NEWS b/repo-deb/main/debian/NEWS new file mode 100644 index 0000000..e5cdf22 --- /dev/null +++ b/repo-deb/main/debian/NEWS @@ -0,0 +1,22 @@ +forgejo-deb-repo (2-3) 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 + command 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 upgrade` + + 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. + + https://forgejo.org/2024-04-release-v7-0/ + https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#7-0-1 + + -- crystal Sun, 28 Apr 2024 15:00:00 +0000 diff --git a/repo-deb/main/debian/changelog b/repo-deb/main/debian/changelog index 4024742..f9d0a22 100644 --- a/repo-deb/main/debian/changelog +++ b/repo-deb/main/debian/changelog @@ -1,3 +1,9 @@ +forgejo-deb-repo (2-3) unstable; urgency=medium + + * Switch to forgejo-lts component (LTS release channel) + + -- crystal Sun, 28 Apr 2024 14:59:00 +0000 + forgejo-deb-repo (2-2) unstable; urgency=medium * Add apt-listchanges dep for important upgrade notices diff --git a/repo-deb/main/debian/control b/repo-deb/main/debian/control index 9a2df0b..ff33adb 100644 --- a/repo-deb/main/debian/control +++ b/repo-deb/main/debian/control @@ -8,6 +8,7 @@ Package: forgejo-deb-repo Architecture: all Priority: optional 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 From 0aedcd394d50974f45262746899d4585167af66e Mon Sep 17 00:00:00 2001 From: crystal Date: Sun, 28 Apr 2024 10:12:48 -0600 Subject: [PATCH 143/172] [temp] repo-deb lts transitional push --- .forgejo/workflows/forgejo-deb.yml | 53 +++++++++++++++++++ repo-deb/build.sh | 3 +- repo-deb/forgejo-deb.list_stub | 1 + repo-deb/main/debian/control | 6 +++ .../main/debian/forgejo-deb-repo-lts.install | 1 + repo-deb/stub/debian/changelog | 2 +- 6 files changed, 64 insertions(+), 2 deletions(-) create mode 100644 repo-deb/forgejo-deb.list_stub create mode 100644 repo-deb/main/debian/forgejo-deb-repo-lts.install diff --git a/.forgejo/workflows/forgejo-deb.yml b/.forgejo/workflows/forgejo-deb.yml index 1c66728..b96cc8e 100644 --- a/.forgejo/workflows/forgejo-deb.yml +++ b/.forgejo/workflows/forgejo-deb.yml @@ -191,6 +191,59 @@ jobs: - run: ./.ci-make.sh install-run-test ./forgejo-bin_*_amd64.deb + publish-repo-deb: + runs-on: bookworm + if: github.event_name == 'push' && github.repository == 'forgejo-contrib/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 + + - 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-3_all.deb + cd .. + + - name: "Debian package registry publish: forgejo-deb-repo-lts" + env: + FORGEJO_SITE: https://code.forgejo.org + FORGEJO_OWNER: forgejo-contrib + DEBIAN_DIST: bullseye + DEBIAN_COMPONENT: forgejo + FORGEJO_KEY: ${{ secrets.cfo_api_key }} + run: | + cd repo-deb + ../.ci-forgejo-apt.sh forgejo-deb-repo-lts_2-3_all.deb + cd .. + + - run: sudo apt install -y wget + - run: wget --content-disposition https://code.forgejo.org/forgejo-contrib/-/packages/debian/forgejo-deb-repokey/2-1/files/2918 + + - name: "Debian package registry publish: forgejo-deb-repokey" + 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: | + ./.ci-forgejo-apt.sh forgejo-deb-repokey_2-1_all.deb + publish-release-repo: runs-on: bookworm if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') && github.repository == 'forgejo-contrib/forgejo-deb' diff --git a/repo-deb/build.sh b/repo-deb/build.sh index bdb1ef2..076c6e7 100755 --- a/repo-deb/build.sh +++ b/repo-deb/build.sh @@ -2,8 +2,9 @@ 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_stub stub/forgejo-deb.list cp forgejo-deb.list main/ +cp forgejo-deb.list main/forgejo-deb-lts.list if [ "$1" = "actions" ] ; then PACKAGE_BUILD_EXTRA_ARGS="--no-sign" fi diff --git a/repo-deb/forgejo-deb.list_stub b/repo-deb/forgejo-deb.list_stub new file mode 100644 index 0000000..3465729 --- /dev/null +++ b/repo-deb/forgejo-deb.list_stub @@ -0,0 +1 @@ +deb https://code.forgejo.org/api/packages/forgejo-contrib/debian bullseye forgejo forgejo-lts diff --git a/repo-deb/main/debian/control b/repo-deb/main/debian/control index ff33adb..c8e8cc9 100644 --- a/repo-deb/main/debian/control +++ b/repo-deb/main/debian/control @@ -18,3 +18,9 @@ Priority: optional Replaces: forgejo-deb-repo Description: APT Repository signing key for forgejo-deb 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 diff --git a/repo-deb/main/debian/forgejo-deb-repo-lts.install b/repo-deb/main/debian/forgejo-deb-repo-lts.install new file mode 100644 index 0000000..9b8fe96 --- /dev/null +++ b/repo-deb/main/debian/forgejo-deb-repo-lts.install @@ -0,0 +1 @@ +forgejo-deb-lts.list /etc/apt/sources.list.d diff --git a/repo-deb/stub/debian/changelog b/repo-deb/stub/debian/changelog index 84cc044..d0f5ad0 100644 --- a/repo-deb/stub/debian/changelog +++ b/repo-deb/stub/debian/changelog @@ -2,4 +2,4 @@ forgejo-deb-repo (0-0) unstable; urgency=medium * forgejo-deb APT repository stub - -- crystal Tue, 25 Jul 2023 10:50:00 +0000 + -- crystal Sun, 28 Jul 2024 15:26:00 +0000 From 5e142ef06c64e58a254918b9aaf82fa1a4ac9bd9 Mon Sep 17 00:00:00 2001 From: crystal Date: Sun, 28 Apr 2024 10:57:52 -0600 Subject: [PATCH 144/172] partial revert #32 partially revert 0aedcd394d --- .forgejo/workflows/forgejo-deb.yml | 26 +------------------ repo-deb/build.sh | 3 +-- repo-deb/forgejo-deb.list_stub | 1 - repo-deb/main/debian/control | 6 ----- .../main/debian/forgejo-deb-repo-lts.install | 1 - repo-deb/stub/debian/changelog | 2 +- 6 files changed, 3 insertions(+), 36 deletions(-) delete mode 100644 repo-deb/forgejo-deb.list_stub delete mode 100644 repo-deb/main/debian/forgejo-deb-repo-lts.install diff --git a/.forgejo/workflows/forgejo-deb.yml b/.forgejo/workflows/forgejo-deb.yml index b96cc8e..7b969fd 100644 --- a/.forgejo/workflows/forgejo-deb.yml +++ b/.forgejo/workflows/forgejo-deb.yml @@ -199,7 +199,7 @@ jobs: - name: actions prep id: ciprep - run: ./.ci-make.sh actions-prep + run: ./.ci-make.sh actions-prep installtest - uses: actions/download-artifact@v3 with: @@ -207,30 +207,6 @@ jobs: - uses: crystal/install-jq-action@v2.1.0 - - 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-3_all.deb - cd .. - - - name: "Debian package registry publish: forgejo-deb-repo-lts" - env: - FORGEJO_SITE: https://code.forgejo.org - FORGEJO_OWNER: forgejo-contrib - DEBIAN_DIST: bullseye - DEBIAN_COMPONENT: forgejo - FORGEJO_KEY: ${{ secrets.cfo_api_key }} - run: | - cd repo-deb - ../.ci-forgejo-apt.sh forgejo-deb-repo-lts_2-3_all.deb - cd .. - - run: sudo apt install -y wget - run: wget --content-disposition https://code.forgejo.org/forgejo-contrib/-/packages/debian/forgejo-deb-repokey/2-1/files/2918 diff --git a/repo-deb/build.sh b/repo-deb/build.sh index 076c6e7..bdb1ef2 100755 --- a/repo-deb/build.sh +++ b/repo-deb/build.sh @@ -2,9 +2,8 @@ cp code-forgejo-org-forgejo-contrib.asc stub/ 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/forgejo-deb-lts.list if [ "$1" = "actions" ] ; then PACKAGE_BUILD_EXTRA_ARGS="--no-sign" fi diff --git a/repo-deb/forgejo-deb.list_stub b/repo-deb/forgejo-deb.list_stub deleted file mode 100644 index 3465729..0000000 --- a/repo-deb/forgejo-deb.list_stub +++ /dev/null @@ -1 +0,0 @@ -deb https://code.forgejo.org/api/packages/forgejo-contrib/debian bullseye forgejo forgejo-lts diff --git a/repo-deb/main/debian/control b/repo-deb/main/debian/control index c8e8cc9..ff33adb 100644 --- a/repo-deb/main/debian/control +++ b/repo-deb/main/debian/control @@ -18,9 +18,3 @@ Priority: optional Replaces: forgejo-deb-repo Description: APT Repository signing key for forgejo-deb 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 diff --git a/repo-deb/main/debian/forgejo-deb-repo-lts.install b/repo-deb/main/debian/forgejo-deb-repo-lts.install deleted file mode 100644 index 9b8fe96..0000000 --- a/repo-deb/main/debian/forgejo-deb-repo-lts.install +++ /dev/null @@ -1 +0,0 @@ -forgejo-deb-lts.list /etc/apt/sources.list.d diff --git a/repo-deb/stub/debian/changelog b/repo-deb/stub/debian/changelog index d0f5ad0..84cc044 100644 --- a/repo-deb/stub/debian/changelog +++ b/repo-deb/stub/debian/changelog @@ -2,4 +2,4 @@ forgejo-deb-repo (0-0) unstable; urgency=medium * forgejo-deb APT repository stub - -- crystal Sun, 28 Jul 2024 15:26:00 +0000 + -- crystal Tue, 25 Jul 2023 10:50:00 +0000 From 2907295f728a851de4e3ad50aeed1c79300de0ab Mon Sep 17 00:00:00 2001 From: crystal Date: Sun, 28 Apr 2024 11:58:09 -0600 Subject: [PATCH 145/172] complex partial revert #33 reverts most of 5e142ef06c 0aedcd394d will need another complex revert --- .forgejo/workflows/forgejo-deb.yml | 13 ++++++------- repo-deb/build.sh | 3 ++- repo-deb/forgejo-deb.list_stub | 1 + repo-deb/main/debian/NEWS | 14 +++++++++----- repo-deb/main/debian/changelog | 4 ++-- repo-deb/main/debian/control | 6 ++++++ repo-deb/main/debian/forgejo-deb-repo-lts.install | 1 + repo-deb/main/debian/forgejo-deb-repo-lts.prerm | 5 +++++ repo-deb/stub/debian/changelog | 2 +- 9 files changed, 33 insertions(+), 16 deletions(-) create mode 100644 repo-deb/forgejo-deb.list_stub create mode 100644 repo-deb/main/debian/forgejo-deb-repo-lts.install create mode 100644 repo-deb/main/debian/forgejo-deb-repo-lts.prerm diff --git a/.forgejo/workflows/forgejo-deb.yml b/.forgejo/workflows/forgejo-deb.yml index 7b969fd..368af2e 100644 --- a/.forgejo/workflows/forgejo-deb.yml +++ b/.forgejo/workflows/forgejo-deb.yml @@ -199,7 +199,7 @@ jobs: - name: actions prep id: ciprep - run: ./.ci-make.sh actions-prep installtest + run: ./.ci-make.sh actions-prep - uses: actions/download-artifact@v3 with: @@ -207,18 +207,17 @@ jobs: - uses: crystal/install-jq-action@v2.1.0 - - run: sudo apt install -y wget - - run: wget --content-disposition https://code.forgejo.org/forgejo-contrib/-/packages/debian/forgejo-deb-repokey/2-1/files/2918 - - - name: "Debian package registry publish: forgejo-deb-repokey" + - name: "Debian package registry publish: forgejo-deb-repo-lts" env: FORGEJO_SITE: https://code.forgejo.org FORGEJO_OWNER: forgejo-contrib DEBIAN_DIST: bullseye - DEBIAN_COMPONENT: forgejo-lts + DEBIAN_COMPONENT: forgejo FORGEJO_KEY: ${{ secrets.cfo_api_key }} run: | - ./.ci-forgejo-apt.sh forgejo-deb-repokey_2-1_all.deb + cd repo-deb + ../.ci-forgejo-apt.sh forgejo-deb-repo-lts_2-4_all.deb + cd .. publish-release-repo: runs-on: bookworm diff --git a/repo-deb/build.sh b/repo-deb/build.sh index bdb1ef2..076c6e7 100755 --- a/repo-deb/build.sh +++ b/repo-deb/build.sh @@ -2,8 +2,9 @@ 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_stub stub/forgejo-deb.list cp forgejo-deb.list main/ +cp forgejo-deb.list main/forgejo-deb-lts.list if [ "$1" = "actions" ] ; then PACKAGE_BUILD_EXTRA_ARGS="--no-sign" fi diff --git a/repo-deb/forgejo-deb.list_stub b/repo-deb/forgejo-deb.list_stub new file mode 100644 index 0000000..3465729 --- /dev/null +++ b/repo-deb/forgejo-deb.list_stub @@ -0,0 +1 @@ +deb https://code.forgejo.org/api/packages/forgejo-contrib/debian bullseye forgejo forgejo-lts diff --git a/repo-deb/main/debian/NEWS b/repo-deb/main/debian/NEWS index e5cdf22..d2ae9fc 100644 --- a/repo-deb/main/debian/NEWS +++ b/repo-deb/main/debian/NEWS @@ -1,4 +1,4 @@ -forgejo-deb-repo (2-3) unstable; urgency=medium +forgejo-deb-repo (2-4) unstable; urgency=medium WARNING: You are switching to the Forgejo LTS release channel! @@ -7,16 +7,20 @@ forgejo-deb-repo (2-3) unstable; urgency=medium until the next LTS version is available. If you wish to switch to the standard release channel, use the following - command to install the setup package. This package will be removed when the + 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 - `sudo apt install forgejo-deb-repo-stable && sudo apt update && sudo apt 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 upgrade. + 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 Sun, 28 Apr 2024 15:00:00 +0000 + -- crystal Sun, 28 Apr 2024 17:48:00 +0000 diff --git a/repo-deb/main/debian/changelog b/repo-deb/main/debian/changelog index f9d0a22..6d67096 100644 --- a/repo-deb/main/debian/changelog +++ b/repo-deb/main/debian/changelog @@ -1,8 +1,8 @@ -forgejo-deb-repo (2-3) unstable; urgency=medium +forgejo-deb-repo (2-4) unstable; urgency=medium * Switch to forgejo-lts component (LTS release channel) - -- crystal Sun, 28 Apr 2024 14:59:00 +0000 + -- crystal Sun, 28 Apr 2024 17:48:00 +0000 forgejo-deb-repo (2-2) unstable; urgency=medium diff --git a/repo-deb/main/debian/control b/repo-deb/main/debian/control index ff33adb..c8e8cc9 100644 --- a/repo-deb/main/debian/control +++ b/repo-deb/main/debian/control @@ -18,3 +18,9 @@ Priority: optional Replaces: forgejo-deb-repo Description: APT Repository signing key for forgejo-deb 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 diff --git a/repo-deb/main/debian/forgejo-deb-repo-lts.install b/repo-deb/main/debian/forgejo-deb-repo-lts.install new file mode 100644 index 0000000..9b8fe96 --- /dev/null +++ b/repo-deb/main/debian/forgejo-deb-repo-lts.install @@ -0,0 +1 @@ +forgejo-deb-lts.list /etc/apt/sources.list.d diff --git a/repo-deb/main/debian/forgejo-deb-repo-lts.prerm b/repo-deb/main/debian/forgejo-deb-repo-lts.prerm new file mode 100644 index 0000000..ace5cca --- /dev/null +++ b/repo-deb/main/debian/forgejo-deb-repo-lts.prerm @@ -0,0 +1,5 @@ +#!/usr/bin/env bash +RM_FILE="/etc/apt/sources.list.d/forgejo-deb-lts.list" +if [ -f "$RM_FILE" ]; then + rm "$RM_FILE" +fi diff --git a/repo-deb/stub/debian/changelog b/repo-deb/stub/debian/changelog index 84cc044..d0f5ad0 100644 --- a/repo-deb/stub/debian/changelog +++ b/repo-deb/stub/debian/changelog @@ -2,4 +2,4 @@ forgejo-deb-repo (0-0) unstable; urgency=medium * forgejo-deb APT repository stub - -- crystal Tue, 25 Jul 2023 10:50:00 +0000 + -- crystal Sun, 28 Jul 2024 15:26:00 +0000 From 43eaa353a8cbd6b8a4ba0f3cbe229a409b2e8a46 Mon Sep 17 00:00:00 2001 From: crystal Date: Sun, 28 Apr 2024 12:33:23 -0600 Subject: [PATCH 146/172] 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 --- .forgejo/workflows/forgejo-deb.yml | 18 +++++++++++++++--- repo-deb/build.sh | 3 +-- repo-deb/forgejo-deb.list_stub | 1 - repo-deb/main/debian/control | 6 ------ .../main/debian/forgejo-deb-repo-lts.install | 1 - .../main/debian/forgejo-deb-repo-lts.prerm | 5 ----- repo-deb/stub/debian/changelog | 2 +- 7 files changed, 17 insertions(+), 19 deletions(-) delete mode 100644 repo-deb/forgejo-deb.list_stub delete mode 100644 repo-deb/main/debian/forgejo-deb-repo-lts.install delete mode 100644 repo-deb/main/debian/forgejo-deb-repo-lts.prerm diff --git a/.forgejo/workflows/forgejo-deb.yml b/.forgejo/workflows/forgejo-deb.yml index 368af2e..bea2fc9 100644 --- a/.forgejo/workflows/forgejo-deb.yml +++ b/.forgejo/workflows/forgejo-deb.yml @@ -207,16 +207,28 @@ jobs: - 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: FORGEJO_SITE: https://code.forgejo.org FORGEJO_OWNER: forgejo-contrib DEBIAN_DIST: bullseye - DEBIAN_COMPONENT: forgejo + DEBIAN_COMPONENT: forgejo-lts FORGEJO_KEY: ${{ secrets.cfo_api_key }} run: | 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 .. publish-release-repo: diff --git a/repo-deb/build.sh b/repo-deb/build.sh index 076c6e7..bdb1ef2 100755 --- a/repo-deb/build.sh +++ b/repo-deb/build.sh @@ -2,9 +2,8 @@ cp code-forgejo-org-forgejo-contrib.asc stub/ 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/forgejo-deb-lts.list if [ "$1" = "actions" ] ; then PACKAGE_BUILD_EXTRA_ARGS="--no-sign" fi diff --git a/repo-deb/forgejo-deb.list_stub b/repo-deb/forgejo-deb.list_stub deleted file mode 100644 index 3465729..0000000 --- a/repo-deb/forgejo-deb.list_stub +++ /dev/null @@ -1 +0,0 @@ -deb https://code.forgejo.org/api/packages/forgejo-contrib/debian bullseye forgejo forgejo-lts diff --git a/repo-deb/main/debian/control b/repo-deb/main/debian/control index c8e8cc9..ff33adb 100644 --- a/repo-deb/main/debian/control +++ b/repo-deb/main/debian/control @@ -18,9 +18,3 @@ Priority: optional Replaces: forgejo-deb-repo Description: APT Repository signing key for forgejo-deb 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 diff --git a/repo-deb/main/debian/forgejo-deb-repo-lts.install b/repo-deb/main/debian/forgejo-deb-repo-lts.install deleted file mode 100644 index 9b8fe96..0000000 --- a/repo-deb/main/debian/forgejo-deb-repo-lts.install +++ /dev/null @@ -1 +0,0 @@ -forgejo-deb-lts.list /etc/apt/sources.list.d diff --git a/repo-deb/main/debian/forgejo-deb-repo-lts.prerm b/repo-deb/main/debian/forgejo-deb-repo-lts.prerm deleted file mode 100644 index ace5cca..0000000 --- a/repo-deb/main/debian/forgejo-deb-repo-lts.prerm +++ /dev/null @@ -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 diff --git a/repo-deb/stub/debian/changelog b/repo-deb/stub/debian/changelog index d0f5ad0..5dd821e 100644 --- a/repo-deb/stub/debian/changelog +++ b/repo-deb/stub/debian/changelog @@ -2,4 +2,4 @@ forgejo-deb-repo (0-0) unstable; urgency=medium * forgejo-deb APT repository stub - -- crystal Sun, 28 Jul 2024 15:26:00 +0000 + -- crystal Sun, 28 Jul 2024 18:25:00 +0000 From d0dfedd50fe2118a8c7c62cc25b454e7c742e2a6 Mon Sep 17 00:00:00 2001 From: crystal Date: Sun, 28 Apr 2024 13:03:48 -0600 Subject: [PATCH 147/172] cleanup #37 --- .forgejo/workflows/forgejo-deb.yml | 40 ------------------------------ 1 file changed, 40 deletions(-) diff --git a/.forgejo/workflows/forgejo-deb.yml b/.forgejo/workflows/forgejo-deb.yml index bea2fc9..1c66728 100644 --- a/.forgejo/workflows/forgejo-deb.yml +++ b/.forgejo/workflows/forgejo-deb.yml @@ -191,46 +191,6 @@ jobs: - run: ./.ci-make.sh install-run-test ./forgejo-bin_*_amd64.deb - publish-repo-deb: - runs-on: bookworm - if: github.event_name == 'push' && github.repository == 'forgejo-contrib/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 - - - name: "Debian package registry publish: forgejo-deb-repo stub" - 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_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 .. - publish-release-repo: runs-on: bookworm if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') && github.repository == 'forgejo-contrib/forgejo-deb' From 804f3bef24a9cfbc07843dab32b59336292df214 Mon Sep 17 00:00:00 2001 From: crystal Date: Sun, 28 Apr 2024 23:32:13 -0600 Subject: [PATCH 148/172] [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 --- .ci-make.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.ci-make.sh b/.ci-make.sh index 8356dbc..5e471ab 100755 --- a/.ci-make.sh +++ b/.ci-make.sh @@ -97,13 +97,13 @@ case "$1" in git describe --tags HEAD CI_COMMIT_TAG_RESOLVE=$(git describe --tags HEAD --abbrev=0) echo "Closest existing tag: $CI_COMMIT_TAG_RESOLVE" - if [ "$CI_COMMIT_TAG_RESOLVE" = *"-dev" ] ; then + 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! building dev version- skipping binary dl" + echo "err! unable to resolve tag or building dev version- skipping binary dl" CI_COMMIT_TAG_RESOLVE= fi fi From c7eb5ff175bfe052448b00dc3dbb5371674d9f59 Mon Sep 17 00:00:00 2001 From: crystal Date: Mon, 29 Apr 2024 00:07:28 -0600 Subject: [PATCH 149/172] fix forgejo-bin deps and conflicts --- deb/.forgejo-bin.control | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deb/.forgejo-bin.control b/deb/.forgejo-bin.control index 3f2de6f..5c093a2 100644 --- a/deb/.forgejo-bin.control +++ b/deb/.forgejo-bin.control @@ -2,7 +2,7 @@ Package: forgejo-bin Architecture: amd64 Priority: optional Provides: forgejo,gitea -Depends: adduser (>= 3.11) -Conflicts: forgejo,forgejo-bin +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 From f5324546129fbd98e42ca98811c34cf23bda40d3 Mon Sep 17 00:00:00 2001 From: crystal Date: Mon, 29 Apr 2024 01:52:58 -0600 Subject: [PATCH 150/172] change GITEA_ to FORGEJO_ in env vars --- .ci-make.sh | 4 ++-- deb/forgejo.service | 2 +- etc/systemd/system/forgejo.service.d/override.conf | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.ci-make.sh b/.ci-make.sh index 5e471ab..8755a80 100755 --- a/.ci-make.sh +++ b/.ci-make.sh @@ -186,7 +186,7 @@ case "$1" in [ -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 \ + HOME=$FORGEJO_HOME FORGEJO_WORK_DIR=$FORGEJO_HOME \ forgejo web -q --config /etc/forgejo/app.ini & sleep 10 curl http://localhost:3000/ | grep -A 4 "Powered by Forgejo" @@ -202,7 +202,7 @@ case "$1" in apt update -qq apt install -y "$3" sudo -u forgejo USER=forgejo \ - HOME=/var/lib/forgejo GITEA_WORK_DIR=/var/lib/forgejo \ + HOME=/var/lib/forgejo FORGEJO_WORK_DIR=/var/lib/forgejo \ forgejo web -q --config /etc/fogejo/app.ini & sleep 10 curl http://localhost:3000/ | grep -A 4 "Powered by Forgejo" diff --git a/deb/forgejo.service b/deb/forgejo.service index 008d93e..c5f3bc8 100644 --- a/deb/forgejo.service +++ b/deb/forgejo.service @@ -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 diff --git a/etc/systemd/system/forgejo.service.d/override.conf b/etc/systemd/system/forgejo.service.d/override.conf index f626df8..02635f5 100644 --- a/etc/systemd/system/forgejo.service.d/override.conf +++ b/etc/systemd/system/forgejo.service.d/override.conf @@ -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 From f985489b7058cc2d0b57ba861d1b81546f803993 Mon Sep 17 00:00:00 2001 From: crystal Date: Wed, 1 May 2024 17:58:21 -0600 Subject: [PATCH 151/172] 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 --- .forgejo/workflows/forgejo-deb.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.forgejo/workflows/forgejo-deb.yml b/.forgejo/workflows/forgejo-deb.yml index 1c66728..7567e04 100644 --- a/.forgejo/workflows/forgejo-deb.yml +++ b/.forgejo/workflows/forgejo-deb.yml @@ -20,6 +20,9 @@ jobs: - uses: actions/checkout@v4 with: submodules: true + fetch-depth: 0 + fetch-tags: true + filter: tree:0 - uses: actions/setup-node@v3 with: @@ -34,12 +37,6 @@ jobs: id: ciprep run: ./.ci-make.sh actions-prep build-forgejo-deb - - name: fetch tags - run: | - git config --add safe.directory '*' - git fetch --tags --force - git submodule foreach 'git fetch --tags --force' - - uses: crystal/install-jq-action@v2.1.0 - run: ./.ci-make.sh ci-verify forgejo From 2cbc8603ba9dbe47df6ffb9bde07e1abcea58aef Mon Sep 17 00:00:00 2001 From: crystal Date: Wed, 1 May 2024 19:57:10 -0600 Subject: [PATCH 152/172] 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. --- .ci-make.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.ci-make.sh b/.ci-make.sh index 8755a80..5e537e4 100755 --- a/.ci-make.sh +++ b/.ci-make.sh @@ -95,7 +95,18 @@ case "$1" in if [ ! $CI_COMMIT_TAG_RESOLVE ] ; then echo "Failed to resolve exact tag! Getting as close as we can..." git describe --tags HEAD - CI_COMMIT_TAG_RESOLVE=$(git describe --tags HEAD --abbrev=0) + 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 From 7fcc7721f8d9dc44f79451841abde6ccd450a114 Mon Sep 17 00:00:00 2001 From: Moritz Kobel Date: Fri, 5 Jul 2024 22:04:46 +0200 Subject: [PATCH 153/172] Forgejo v7.0.5 --- deb/debian/changelog | 7 +++++++ forgejo | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/deb/debian/changelog b/deb/debian/changelog index 8a9a4f9..f383adc 100644 --- a/deb/debian/changelog +++ b/deb/debian/changelog @@ -1,3 +1,10 @@ +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 + + -- mkobel Fri, 05 July 2024 22:03:00 +0200 + forgejo (7.0.1-1) unstable; urgency=medium * Forgejo version 7.0.1 diff --git a/forgejo b/forgejo index 554f369..65a89ce 160000 --- a/forgejo +++ b/forgejo @@ -1 +1 @@ -Subproject commit 554f3697fc4519b44fb583925259db97eb3a8f5b +Subproject commit 65a89ce6be62018ea50cb01c080072973ce87efb From b5914277d3021ce5b73ce1f4fb8ec16257e614f2 Mon Sep 17 00:00:00 2001 From: crystal Date: Mon, 29 Apr 2024 04:30:06 -0600 Subject: [PATCH 154/172] [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. --- .ci-make.sh | 37 +++++++++++++++---- .forgejo/workflows/forgejo-deb.yml | 4 +- deb/.forgejo-bin.control | 4 +- deb/debian/NEWS | 2 +- deb/debian/changelog | 4 +- deb/debian/control | 18 ++++++--- deb/debian/forgejo-common.install | 5 +++ ...forgejo.preinst => forgejo-common.preinst} | 0 deb/debian/forgejo-sqlite.install | 2 - deb/debian/forgejo-sqlite.preinst | 1 - deb/debian/forgejo.install | 2 - 11 files changed, 54 insertions(+), 25 deletions(-) create mode 100644 deb/debian/forgejo-common.install rename deb/debian/{forgejo.preinst => forgejo-common.preinst} (100%) delete mode 120000 deb/debian/forgejo-sqlite.preinst diff --git a/.ci-make.sh b/.ci-make.sh index 5e537e4..a1dfce0 100755 --- a/.ci-make.sh +++ b/.ci-make.sh @@ -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" @@ -145,11 +149,14 @@ 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 @@ -192,13 +199,27 @@ case "$1" in "install-run-test") export DEBIAN_FRONTEND=noninteractive apt update - apt install -y ./"$2" - [ -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 FORGEJO_WORK_DIR=$FORGEJO_HOME \ - forgejo web -q --config /etc/forgejo/app.ini & + 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 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/ | grep -A 4 "Powered by Forgejo" exit $? diff --git a/.forgejo/workflows/forgejo-deb.yml b/.forgejo/workflows/forgejo-deb.yml index 7567e04..1031a38 100644 --- a/.forgejo/workflows/forgejo-deb.yml +++ b/.forgejo/workflows/forgejo-deb.yml @@ -59,13 +59,11 @@ jobs: - name: Build Forgejo for amd64 run: ./.ci-make.sh submodule-build forgejo forgejo-bin - env: - TAGS: bindata - name: Build Forgejo (with SQLite) for amd64 run: ./.ci-make.sh submodule-build forgejo forgejo-sqlite-bin env: - TAGS: bindata sqlite sqlite_unlock_notify + TAGS: sqlite sqlite_unlock_notify - run: ./.ci-make.sh package-prep - run: ./.ci-make.sh package-build-deps diff --git a/deb/.forgejo-bin.control b/deb/.forgejo-bin.control index 5c093a2..ead2966 100644 --- a/deb/.forgejo-bin.control +++ b/deb/.forgejo-bin.control @@ -1,8 +1,8 @@ Package: forgejo-bin Architecture: amd64 Priority: optional -Provides: forgejo,gitea +Provides: forgejo, gitea Depends: adduser (>= 3.11), git -Conflicts: forgejo,forgejo-sqlite,forgejo-common +Conflicts: forgejo, forgejo-sqlite, forgejo-common Description: Forgejo: Beyond Coding. We Forge. (binary) The official Forgejo release binary in a Debian package diff --git a/deb/debian/NEWS b/deb/debian/NEWS index ef3b3ff..e24bf94 100644 --- a/deb/debian/NEWS +++ b/deb/debian/NEWS @@ -1,4 +1,4 @@ -forgejo (7.0.1-1) unstable; urgency=medium +forgejo (7.0.1-2) unstable; urgency=medium WARNING: Forgejo will be upgraded to v7.0.1 LTS diff --git a/deb/debian/changelog b/deb/debian/changelog index f383adc..da71ac3 100644 --- a/deb/debian/changelog +++ b/deb/debian/changelog @@ -2,13 +2,15 @@ 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 - -- mkobel Fri, 05 July 2024 22:03:00 +0200 + -- crystal 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 Sat, 27 Apr 2024 15:35:00 +0000 diff --git a/deb/debian/control b/deb/debian/control index 323d688..ae16460 100644 --- a/deb/debian/control +++ b/deb/debian/control @@ -8,16 +8,24 @@ Package: forgejo Architecture: amd64 Priority: optional Provides: gitea -Depends: adduser (>= 3.11),git -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),git -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. diff --git a/deb/debian/forgejo-common.install b/deb/debian/forgejo-common.install new file mode 100644 index 0000000..5904930 --- /dev/null +++ b/deb/debian/forgejo-common.install @@ -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 diff --git a/deb/debian/forgejo.preinst b/deb/debian/forgejo-common.preinst similarity index 100% rename from deb/debian/forgejo.preinst rename to deb/debian/forgejo-common.preinst diff --git a/deb/debian/forgejo-sqlite.install b/deb/debian/forgejo-sqlite.install index 7a55675..106c3c8 100644 --- a/deb/debian/forgejo-sqlite.install +++ b/deb/debian/forgejo-sqlite.install @@ -1,3 +1 @@ forgejo-sqlite-bin/forgejo /usr/bin -forgejo.service /usr/lib/systemd/system -app.ini /etc/forgejo diff --git a/deb/debian/forgejo-sqlite.preinst b/deb/debian/forgejo-sqlite.preinst deleted file mode 120000 index c9dce9a..0000000 --- a/deb/debian/forgejo-sqlite.preinst +++ /dev/null @@ -1 +0,0 @@ -forgejo.preinst \ No newline at end of file diff --git a/deb/debian/forgejo.install b/deb/debian/forgejo.install index 6440cb3..db18dc4 100644 --- a/deb/debian/forgejo.install +++ b/deb/debian/forgejo.install @@ -1,3 +1 @@ forgejo-bin/forgejo /usr/bin -forgejo.service /usr/lib/systemd/system -app.ini /etc/forgejo From 6b49ead003d0c6e4877c04c2cd2bee641ecb01c9 Mon Sep 17 00:00:00 2001 From: crystal Date: Sun, 25 Aug 2024 19:00:20 -0600 Subject: [PATCH 155/172] Forgejo v7.0.7 --- deb/debian/changelog | 8 ++++++++ forgejo | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/deb/debian/changelog b/deb/debian/changelog index da71ac3..fdcd1aa 100644 --- a/deb/debian/changelog +++ b/deb/debian/changelog @@ -1,3 +1,11 @@ +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 Mon, 26 Aug 2024 00:55:00 +0000 + forgejo (7.0.5-1) unstable; urgency=medium * Forgejo version 7.0.5 diff --git a/forgejo b/forgejo index 65a89ce..29afb54 160000 --- a/forgejo +++ b/forgejo @@ -1 +1 @@ -Subproject commit 65a89ce6be62018ea50cb01c080072973ce87efb +Subproject commit 29afb54dafab1533a0be696f47a61f26fcf3be96 From dff00b2c123da6b5fe65aa8223ebc6c44a9bd101 Mon Sep 17 00:00:00 2001 From: JEAN-FRANCOIS GUILLAUME Date: Tue, 27 Aug 2024 09:58:27 +0200 Subject: [PATCH 156/172] Forgejo v8.0.1 --- deb/debian/changelog | 8 ++++++++ forgejo | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/deb/debian/changelog b/deb/debian/changelog index fdcd1aa..2277a60 100644 --- a/deb/debian/changelog +++ b/deb/debian/changelog @@ -1,3 +1,11 @@ +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 Mon, 27 Aug 2024 00:55:00 +0000 + forgejo (7.0.7-1) unstable; urgency=medium * Forgejo version 7.0.7 diff --git a/forgejo b/forgejo index 29afb54..4d0be86 160000 --- a/forgejo +++ b/forgejo @@ -1 +1 @@ -Subproject commit 29afb54dafab1533a0be696f47a61f26fcf3be96 +Subproject commit 4d0be867a22caccf38c1a776de5502a43dedcf02 From 0e0d010347b2ba481109c7c345894c7873746a37 Mon Sep 17 00:00:00 2001 From: JEAN-FRANCOIS GUILLAUME Date: Sun, 1 Sep 2024 19:18:13 +0200 Subject: [PATCH 157/172] Forgejo v8.0.2 --- deb/debian/changelog | 8 ++++++++ forgejo | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/deb/debian/changelog b/deb/debian/changelog index 2277a60..519f93c 100644 --- a/deb/debian/changelog +++ b/deb/debian/changelog @@ -1,3 +1,11 @@ +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 Sun, 01 Sep 2024 00:55:00 +0000 + forgejo (8.0.1-1) unstable; urgency=medium * Forgejo version 8.0.1 diff --git a/forgejo b/forgejo index 4d0be86..949e415 160000 --- a/forgejo +++ b/forgejo @@ -1 +1 @@ -Subproject commit 4d0be867a22caccf38c1a776de5502a43dedcf02 +Subproject commit 949e415fd3c90f771c34195312ae74735f760add From 8c50d64e5d1d3ba70a2f114d829f4df6b19ae578 Mon Sep 17 00:00:00 2001 From: Jeff MrBear Date: Sun, 15 Sep 2024 19:40:07 +0200 Subject: [PATCH 158/172] Forgejo v8.0.3 --- deb/debian/changelog | 10 +++++++++- forgejo | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/deb/debian/changelog b/deb/debian/changelog index 519f93c..268c641 100644 --- a/deb/debian/changelog +++ b/deb/debian/changelog @@ -1,3 +1,11 @@ +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 Sun, 15 Sep 2024 00:55:00 +0000 + forgejo (8.0.2-1) unstable; urgency=medium * Forgejo version 8.0.2 @@ -12,7 +20,7 @@ forgejo (8.0.1-1) unstable; urgency=medium * See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#8.0.1 * Split `forgejo-common` package for extra data - -- crystal Mon, 27 Aug 2024 00:55:00 +0000 + -- crystal Tue, 27 Aug 2024 00:55:00 +0000 forgejo (7.0.7-1) unstable; urgency=medium diff --git a/forgejo b/forgejo index 949e415..71658e2 160000 --- a/forgejo +++ b/forgejo @@ -1 +1 @@ -Subproject commit 949e415fd3c90f771c34195312ae74735f760add +Subproject commit 71658e29530f275db8f4a431387d334af8e80677 From eebd057bf600f0cd84ebf3dc346fd2bec208cc4c Mon Sep 17 00:00:00 2001 From: JEAN-FRANCOIS GUILLAUME Date: Tue, 8 Oct 2024 16:43:26 +0200 Subject: [PATCH 159/172] testing repo hosting --- .action-forgejo-mirror.sh | 7 ------- .forgejo/workflows/forgejo-deb.yml | 31 +++++------------------------- 2 files changed, 5 insertions(+), 33 deletions(-) delete mode 100755 .action-forgejo-mirror.sh diff --git a/.action-forgejo-mirror.sh b/.action-forgejo-mirror.sh deleted file mode 100755 index 84df16c..0000000 --- a/.action-forgejo-mirror.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash - -git fetch --tags -git remote add action-forgejo-mirror https://action-forgejo-mirror:$FORGEJO_KEY@$FORGEJO_DEST/$GITHUB_REPOSITORY -git push action-forgejo-mirror --all -git push action-forgejo-mirror --tags "refs/remotes/origin/*:refs/heads/*" -git remote remove action-forgejo-mirror diff --git a/.forgejo/workflows/forgejo-deb.yml b/.forgejo/workflows/forgejo-deb.yml index 1031a38..bc69514 100644 --- a/.forgejo/workflows/forgejo-deb.yml +++ b/.forgejo/workflows/forgejo-deb.yml @@ -1,19 +1,5 @@ on: [push, pull_request] jobs: - mirror: - runs-on: bookworm - if: github.event_name == 'push' && github.repository == 'forgejo-contrib/forgejo-deb' - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: "mirror repo: code.forgejo.org" - env: - FORGEJO_DEST: code.forgejo.org - FORGEJO_KEY: ${{ secrets.cfo_api_key }} - run: ./.action-forgejo-mirror.sh - build-forgejo-deb: runs-on: bullseye steps: @@ -203,27 +189,20 @@ jobs: - 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://codeberg.org - token: ${{ secrets.codeberg_api_key }} - release-dir: forgejo-release - uses: actions/forgejo-release@v1 with: direction: upload - url: https://code.forgejo.org + url: https://forgejo.glicid.fr token: ${{ secrets.cfo_api_key }} release-dir: forgejo-release - name: Debian package registry publish env: - FORGEJO_SITE: https://code.forgejo.org - FORGEJO_OWNER: forgejo-contrib - DEBIAN_DIST: bullseye - DEBIAN_COMPONENT: forgejo-lts + 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 From 83e018f3dd165d2be48070583d3e374b9b8f4d8d Mon Sep 17 00:00:00 2001 From: "guillaume-jf_univ-nantes.fr" Date: Tue, 8 Oct 2024 17:27:37 +0200 Subject: [PATCH 160/172] Update .forgejo/workflows/forgejo-deb.yml --- .forgejo/workflows/forgejo-deb.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.forgejo/workflows/forgejo-deb.yml b/.forgejo/workflows/forgejo-deb.yml index bc69514..f08db4a 100644 --- a/.forgejo/workflows/forgejo-deb.yml +++ b/.forgejo/workflows/forgejo-deb.yml @@ -80,6 +80,8 @@ jobs: installtest-bookworm-sqlite: runs-on: bookworm + needs: + - build-forgejo-deb steps: - uses: actions/checkout@v4 @@ -95,6 +97,8 @@ jobs: installtest-bullseye-sqlite: runs-on: bullseye + needs: + - build-forgejo-deb steps: - uses: actions/checkout@v4 @@ -110,6 +114,8 @@ jobs: installtest-buster-sqlite: runs-on: buster + needs: + - build-forgejo-deb steps: - uses: actions/checkout@v4 @@ -125,6 +131,8 @@ jobs: installtest-bookworm-user: runs-on: bookworm + needs: + - build-forgejo-deb steps: - uses: actions/checkout@v4 @@ -141,6 +149,8 @@ jobs: testsuite-repo-upgrade-sqlite: runs-on: bookworm + needs: + - build-forgejo-deb steps: - uses: actions/checkout@v4 @@ -159,6 +169,8 @@ jobs: installtest-buster-bin: runs-on: buster + needs: + - build-forgejo-deb steps: - uses: actions/checkout@v4 @@ -174,6 +186,8 @@ jobs: publish-release-repo: runs-on: bookworm + needs: + - build-forgejo-deb if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') && github.repository == 'forgejo-contrib/forgejo-deb' steps: - uses: actions/checkout@v4 From 9bbc6bd6d67905fc6ac851c91c85498802658357 Mon Sep 17 00:00:00 2001 From: "guillaume-jf_univ-nantes.fr" Date: Tue, 8 Oct 2024 17:57:41 +0200 Subject: [PATCH 161/172] Update .forgejo/workflows/forgejo-deb.yml --- .forgejo/workflows/forgejo-deb.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/forgejo-deb.yml b/.forgejo/workflows/forgejo-deb.yml index f08db4a..d36423a 100644 --- a/.forgejo/workflows/forgejo-deb.yml +++ b/.forgejo/workflows/forgejo-deb.yml @@ -188,7 +188,7 @@ jobs: runs-on: bookworm needs: - build-forgejo-deb - 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/') && github.repository == 'GLiCID/forgejo-deb' steps: - uses: actions/checkout@v4 From fd4a84f5090bc695335cb82b4d9f0005ae0a035b Mon Sep 17 00:00:00 2001 From: "guillaume-jf_univ-nantes.fr" Date: Tue, 8 Oct 2024 18:13:00 +0200 Subject: [PATCH 162/172] Update .forgejo/workflows/forgejo-deb.yml --- .forgejo/workflows/forgejo-deb.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.forgejo/workflows/forgejo-deb.yml b/.forgejo/workflows/forgejo-deb.yml index d36423a..31099c8 100644 --- a/.forgejo/workflows/forgejo-deb.yml +++ b/.forgejo/workflows/forgejo-deb.yml @@ -188,7 +188,6 @@ jobs: runs-on: bookworm needs: - build-forgejo-deb - if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') && github.repository == 'GLiCID/forgejo-deb' steps: - uses: actions/checkout@v4 From 7464db27e31769b0a455e37e0bb0b842e0cf8bc2 Mon Sep 17 00:00:00 2001 From: "guillaume-jf_univ-nantes.fr" Date: Tue, 8 Oct 2024 18:56:54 +0200 Subject: [PATCH 163/172] Update .forgejo/workflows/forgejo-deb.yml --- .forgejo/workflows/forgejo-deb.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/forgejo-deb.yml b/.forgejo/workflows/forgejo-deb.yml index 31099c8..5a626cc 100644 --- a/.forgejo/workflows/forgejo-deb.yml +++ b/.forgejo/workflows/forgejo-deb.yml @@ -207,7 +207,7 @@ jobs: with: direction: upload url: https://forgejo.glicid.fr - token: ${{ secrets.cfo_api_key }} + token: ${{ secrets.CFO_API_KEY }} release-dir: forgejo-release - name: Debian package registry publish @@ -216,7 +216,7 @@ jobs: FORGEJO_OWNER: GLiCID DEBIAN_DIST: bookworm DEBIAN_COMPONENT: forgejo - FORGEJO_KEY: ${{ secrets.cfo_api_key }} + FORGEJO_KEY: ${{ secrets.CFO_API_KEY }} run: | cd forgejo-release ../.ci-forgejo-apt.sh *.deb From 246b511dbddc6969226fd4ece0d9ce5bfb71283e Mon Sep 17 00:00:00 2001 From: "guillaume-jf_univ-nantes.fr" Date: Tue, 8 Oct 2024 19:39:30 +0200 Subject: [PATCH 164/172] Update .forgejo/workflows/forgejo-deb.yml --- .forgejo/workflows/forgejo-deb.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.forgejo/workflows/forgejo-deb.yml b/.forgejo/workflows/forgejo-deb.yml index 5a626cc..51e0a96 100644 --- a/.forgejo/workflows/forgejo-deb.yml +++ b/.forgejo/workflows/forgejo-deb.yml @@ -203,12 +203,12 @@ jobs: - 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 +# - 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: From 4f28b03d5f095262c148cb38bb44c98c2f92d497 Mon Sep 17 00:00:00 2001 From: JEAN-FRANCOIS GUILLAUME Date: Thu, 28 Nov 2024 16:31:27 +0100 Subject: [PATCH 165/172] Forgejo v9.0.2 --- deb/debian/changelog | 9 +++++++++ forgejo | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/deb/debian/changelog b/deb/debian/changelog index 268c641..b07eeb6 100644 --- a/deb/debian/changelog +++ b/deb/debian/changelog @@ -1,3 +1,12 @@ +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 Thu, 28 Nov 2024 00:55:00 +0000 + forgejo (8.0.3-1) unstable; urgency=medium * Forgejo version 8.0.3 diff --git a/forgejo b/forgejo index 71658e2..6569f1f 160000 --- a/forgejo +++ b/forgejo @@ -1 +1 @@ -Subproject commit 71658e29530f275db8f4a431387d334af8e80677 +Subproject commit 6569f1f25fd428adf14368ce5ad50d8049df788b From fbdc464a9b811c556331dc196d18df283e6f3d05 Mon Sep 17 00:00:00 2001 From: "guillaume-jf_univ-nantes.fr" Date: Sun, 1 Dec 2024 09:26:26 +0100 Subject: [PATCH 166/172] update go version to 1.23 --- .forgejo/workflows/forgejo-deb.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/forgejo-deb.yml b/.forgejo/workflows/forgejo-deb.yml index 51e0a96..c27b025 100644 --- a/.forgejo/workflows/forgejo-deb.yml +++ b/.forgejo/workflows/forgejo-deb.yml @@ -16,7 +16,7 @@ jobs: - uses: actions/setup-go@v4 with: - go-version: "1.22" + go-version: "1.23" check-latest: true - name: "actions prep: build-forgejo-deb" From ed28da0d2c51f25a379de580d486936512d0088e Mon Sep 17 00:00:00 2001 From: Jeff MrBear Date: Sat, 14 Dec 2024 12:56:25 +0100 Subject: [PATCH 167/172] Forgejo v9.0.3 --- deb/debian/changelog | 9 +++++++++ forgejo | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/deb/debian/changelog b/deb/debian/changelog index b07eeb6..1991a8a 100644 --- a/deb/debian/changelog +++ b/deb/debian/changelog @@ -1,3 +1,12 @@ +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 Sat, 14 Dec 2024 00:55:00 +0000 + forgejo (9.0.2-1) unstable; urgency=medium * Forgejo version 9.0.2 diff --git a/forgejo b/forgejo index 6569f1f..d595393 160000 --- a/forgejo +++ b/forgejo @@ -1 +1 @@ -Subproject commit 6569f1f25fd428adf14368ce5ad50d8049df788b +Subproject commit d595393bb619d5fafe16b38d15aa004256a414df From c541fd518d7345fd9e664c7b722785b67eaf6dd6 Mon Sep 17 00:00:00 2001 From: Jeff MrBear Date: Sun, 19 Jan 2025 11:01:48 +0100 Subject: [PATCH 168/172] Forgejo v10.0.0 --- deb/debian/changelog | 24 +++++++++++++++++++----- forgejo | 2 +- 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/deb/debian/changelog b/deb/debian/changelog index 1991a8a..b2f760e 100644 --- a/deb/debian/changelog +++ b/deb/debian/changelog @@ -1,8 +1,15 @@ +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 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 + * See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#9.0.3 * Split `forgejo-common` package for extra data -- crystal Sat, 14 Dec 2024 00:55:00 +0000 @@ -10,11 +17,18 @@ forgejo (9.0.3-1) unstable; urgency=medium 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 + * See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#9.0.2 * Split `forgejo-common` package for extra data - -- crystal Thu, 28 Nov 2024 00:55:00 +0000 + -- crystal 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 Mon, 28 Oct 2024 00:55:00 +0000 forgejo (8.0.3-1) unstable; urgency=medium diff --git a/forgejo b/forgejo index d595393..39843ee 160000 --- a/forgejo +++ b/forgejo @@ -1 +1 @@ -Subproject commit d595393bb619d5fafe16b38d15aa004256a414df +Subproject commit 39843ee2b33ea9f3c95112cd306462d350b93d32 From ce179fd76f19b53a6a5a5779188cb77933424896 Mon Sep 17 00:00:00 2001 From: Jeff MrBear Date: Mon, 17 Feb 2025 15:18:14 +0100 Subject: [PATCH 169/172] Forgejo v10.0.1 --- deb/debian/changelog | 8 ++++++++ forgejo | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/deb/debian/changelog b/deb/debian/changelog index b2f760e..5bbec15 100644 --- a/deb/debian/changelog +++ b/deb/debian/changelog @@ -1,3 +1,11 @@ +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 Mon, 17 Feb 2025 00:55:00 +0000 + forgejo (10.0.0-1) unstable; urgency=medium * Forgejo version 10.0.0 diff --git a/forgejo b/forgejo index 39843ee..6ef9008 160000 --- a/forgejo +++ b/forgejo @@ -1 +1 @@ -Subproject commit 39843ee2b33ea9f3c95112cd306462d350b93d32 +Subproject commit 6ef900899e9d5d9cf45c5fc7ce77649aa8368365 From b0182b90256dbebf1806dc214ccd6c5e34bbf513 Mon Sep 17 00:00:00 2001 From: Jeff MrBear Date: Sat, 29 Mar 2025 08:42:12 +0100 Subject: [PATCH 170/172] Forgejo v10.0.2 --- deb/debian/changelog | 6 ++++++ forgejo | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/deb/debian/changelog b/deb/debian/changelog index 5bbec15..695cd7f 100644 --- a/deb/debian/changelog +++ b/deb/debian/changelog @@ -1,3 +1,9 @@ +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 + forgejo (10.0.1-1) unstable; urgency=medium * Forgejo version 10.0.1 diff --git a/forgejo b/forgejo index 6ef9008..5ec1f7f 160000 --- a/forgejo +++ b/forgejo @@ -1 +1 @@ -Subproject commit 6ef900899e9d5d9cf45c5fc7ce77649aa8368365 +Subproject commit 5ec1f7f3639639a4d54c720c075121e4de6b9755 From 6c25846bab05338d28063d4cba33ebfb578ca14a Mon Sep 17 00:00:00 2001 From: Jeff MrBear Date: Sat, 29 Mar 2025 08:45:06 +0100 Subject: [PATCH 171/172] Forgejo v10.0.3 --- deb/debian/changelog | 10 ++++++++++ forgejo | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/deb/debian/changelog b/deb/debian/changelog index 695cd7f..0ef3c93 100644 --- a/deb/debian/changelog +++ b/deb/debian/changelog @@ -1,9 +1,19 @@ +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 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 Sat, 29 Mar 2025 00:55:00 +0000 + forgejo (10.0.1-1) unstable; urgency=medium * Forgejo version 10.0.1 diff --git a/forgejo b/forgejo index 5ec1f7f..dde3f51 160000 --- a/forgejo +++ b/forgejo @@ -1 +1 @@ -Subproject commit 5ec1f7f3639639a4d54c720c075121e4de6b9755 +Subproject commit dde3f51c72feffac4805fc3133b6a681d8c97c6f From 7403d0da0e314686449032b4e4096f1623708510 Mon Sep 17 00:00:00 2001 From: Jeff MrBear Date: Wed, 30 Apr 2025 11:39:14 +0200 Subject: [PATCH 172/172] Forgejo v11.0.0 --- .forgejo/workflows/forgejo-deb.yml | 2 +- deb/debian/changelog | 8 ++++++++ forgejo | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/forgejo-deb.yml b/.forgejo/workflows/forgejo-deb.yml index c27b025..99dce7e 100644 --- a/.forgejo/workflows/forgejo-deb.yml +++ b/.forgejo/workflows/forgejo-deb.yml @@ -16,7 +16,7 @@ jobs: - uses: actions/setup-go@v4 with: - go-version: "1.23" + go-version: "1.24" check-latest: true - name: "actions prep: build-forgejo-deb" diff --git a/deb/debian/changelog b/deb/debian/changelog index 0ef3c93..562ada8 100644 --- a/deb/debian/changelog +++ b/deb/debian/changelog @@ -1,3 +1,11 @@ +forgejo (11.0.0-1) unstable; urgency=medium + + * Forgejo version 11.0.0 + * See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#11.0.0 + * Split `forgejo-common` package for extra data + + -- crystal Wed, 30 Apr 2025 00:55:00 +0000 + forgejo (10.0.3-1) unstable; urgency=medium * Forgejo version 10.0.3 diff --git a/forgejo b/forgejo index dde3f51..308810c 160000 --- a/forgejo +++ b/forgejo @@ -1 +1 @@ -Subproject commit dde3f51c72feffac4805fc3133b6a681d8c97c6f +Subproject commit 308810cdd17e3edf928d38c5d410acf2c7aa7618