Compare commits

..

15 commits

Author SHA1 Message Date
Alex Janka 16ef47fa38 lol
All checks were successful
/ build-forgejo-deb (push) Successful in 4m20s
/ installtest-bookworm-user (push) Successful in 23s
/ publish-release-repo (push) Successful in 14s
2024-06-15 18:19:42 +10:00
Alex Janka 2308ace33a update changelog
Some checks failed
/ installtest-bookworm-user (push) Has been cancelled
/ publish-release-repo (push) Has been cancelled
/ build-forgejo-deb (push) Has been cancelled
2024-06-15 18:17:22 +10:00
Alex Janka a6d04fede4 get matching tagged release 2024-06-15 18:17:18 +10:00
Alex Janka 26361b85c0 add changelog for 7.0.2/7.0.3/7.0.4
All checks were successful
/ publish-release-repo (push) Successful in 14s
/ build-forgejo-deb (push) Successful in 5m4s
/ installtest-bookworm-user (push) Successful in 23s
2024-06-15 13:47:06 +10:00
Alex Janka fa590a8542 use forgejo-release@main
Some checks are pending
/ build-forgejo-deb (push) Has started running
/ installtest-bookworm-user (push) Has started running
/ publish-release-repo (push) Has started running
2024-06-15 13:37:49 +10:00
Alex Janka d912e872ef actually don't setup node first
Some checks are pending
/ build-forgejo-deb (push) Has started running
/ installtest-bookworm-user (push) Has started running
/ publish-release-repo (push) Has started running
2024-06-15 13:21:32 +10:00
Alex Janka 7ed1c1533b setup node first
Some checks are pending
/ build-forgejo-deb (push) Has started running
/ installtest-bookworm-user (push) Has started running
/ publish-release-repo (push) Has started running
2024-06-15 13:18:04 +10:00
Alex Janka 58ea08f9ab remove forgejo-sqlite from debian control
Some checks failed
/ build-forgejo-deb (push) Has started running
/ publish-release-repo (push) Has been cancelled
/ installtest-bookworm-user (push) Has been cancelled
2024-06-15 13:08:47 +10:00
Alex Janka 352ee74100 run on tag + remove unused sqlite
Some checks failed
/ build-forgejo-deb (push) Has started running
/ installtest-bookworm-user (push) Has started running
/ publish-release-repo (push) Has been cancelled
2024-06-15 13:02:06 +10:00
Alex Janka aef259c17a disable vuln checks
Some checks failed
/ installtest-bookworm-sqlite (push) Failing after 11m21s
/ build-forgejo-deb (push) Failing after 18m10s
/ publish-release-repo (push) Failing after 13m26s
/ installtest-bookworm-user (push) Failing after 14m53s
2024-06-15 12:33:59 +10:00
Alex Janka fdbd6ccdea dont build repo deb packages
Some checks are pending
/ build-forgejo-deb (push) Has started running
/ installtest-bookworm-sqlite (push) Has started running
/ installtest-bookworm-user (push) Has started running
/ publish-release-repo (push) Has started running
2024-06-15 12:24:26 +10:00
Alex Janka 8c30264f25 no docker specification + no buster
Some checks failed
/ installtest-bookworm-sqlite (push) Has been cancelled
/ installtest-bookworm-user (push) Has been cancelled
/ testsuite-repo-upgrade-sqlite (push) Has been cancelled
/ publish-release-repo (push) Has been cancelled
/ build-forgejo-deb (push) Has been cancelled
2024-06-15 12:20:47 +10:00
Alex Janka c9e6827093 fix workflow for me
Some checks are pending
/ build-forgejo-deb (push) Waiting to run
/ installtest-bookworm-sqlite (push) Waiting to run
/ installtest-bookworm-user (push) Waiting to run
/ testsuite-repo-upgrade-sqlite (push) Waiting to run
/ installtest-buster-bin (push) Waiting to run
/ publish-release-repo (push) Waiting to run
2024-06-15 12:11:46 +10:00
Alex Janka 1f46e59334 remove mirroring
Some checks failed
/ build-forgejo-deb (push) Has been cancelled
/ installtest-bookworm-sqlite (push) Has been cancelled
/ installtest-bullseye-sqlite (push) Has been cancelled
/ installtest-buster-sqlite (push) Has been cancelled
/ installtest-bookworm-user (push) Has been cancelled
/ testsuite-repo-upgrade-sqlite (push) Has been cancelled
/ installtest-buster-bin (push) Has been cancelled
/ publish-release-repo (push) Has been cancelled
2024-06-15 12:00:52 +10:00
Alex Janka fc86ce2488 arm64 2024-06-15 11:52:44 +10:00
12 changed files with 21 additions and 57 deletions

View file

@ -8,10 +8,6 @@ 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"
@ -149,14 +145,11 @@ 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-common.preinst deb/debian/forgejo-bin.preinst
ln -s forgejo.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
@ -199,27 +192,13 @@ case "$1" in
"install-run-test")
export DEBIAN_FRONTEND=noninteractive
apt update
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
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 &
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 $?

View file

@ -49,6 +49,8 @@ jobs:
- name: Build Forgejo for arm64
run: ./.ci-make.sh submodule-build forgejo forgejo-bin
env:
TAGS: bindata
- run: ./.ci-make.sh package-prep
- run: ./.ci-make.sh package-build-deps

View file

@ -1,8 +1,8 @@
Package: forgejo-bin
Architecture: arm64
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

View file

@ -1,4 +1,4 @@
forgejo (7.0.1-2) unstable; urgency=medium
forgejo (7.0.1-1) unstable; urgency=medium
WARNING: Forgejo will be upgraded to v7.0.1 LTS

View file

@ -1,11 +1,3 @@
forgejo (7.0.5-1) unstable; urgency=medium
* Forgejo version 7.0.5
* See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#7-0-5
* Split `forgejo-common` package for extra data
-- crystal <crystal@noreply.codeberg.org> Sun, 07 July 2024 17:22:00 +0000
forgejo (7.0.4-1) unstable; urgency=medium
* Forgejo version 7.0.4
@ -31,7 +23,6 @@ forgejo (7.0.1-1) unstable; urgency=medium
* Forgejo version 7.0.1
* See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#7-0-1
* Forgejo Actions based build process
-- crystal <crystal@noreply.codeberg.org> Sat, 27 Apr 2024 15:35:00 +0000

View file

@ -8,15 +8,7 @@ Package: forgejo
Architecture: arm64
Priority: optional
Provides: gitea
Depends: forgejo-common (= ${source:Version}), adduser (>= 3.11), git
Conflicts: forgejo-sqlite, forgejo-bin
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
Package: forgejo-common
Architecture: all
Priority: optional
Depends: forgejo | forgejo-sqlite (= ${source:Version})
Conflicts: forgejo-bin
Description: Common files for Forgejo
Common data used for all Forgejo packages and architectures.

View file

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

View file

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

View file

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

View file

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

@ -1 +1 @@
Subproject commit 65a89ce6be62018ea50cb01c080072973ce87efb
Subproject commit 5c59a1347a5fbf183eef22fe46805b4d1a8606f3