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
6 changed files with 48 additions and 146 deletions

View file

@ -123,16 +123,16 @@ case "$1" in
CI_COMMIT_TAG="$CI_COMMIT_TAG_RESOLVE"
fi
if [ $CI_COMMIT_TAG ] ; then
CI_RELEASE_ASSETS=$(curl $CI_VERIFY_API/api/v1/repos/$CI_VERIFY_REPO/releases/tags/$CI_COMMIT_TAG | jq -c '.assets[]' | grep linux-amd64)
CI_RELEASE_BINARY_URL=$(echo "$CI_RELEASE_ASSETS" | grep linux-amd64\" | jq -r --jsonargs .browser_download_url)
CI_RELEASE_SHA256=$(curl $(echo "$CI_RELEASE_ASSETS" | grep linux-amd64.sha256\" | jq -r --jsonargs .browser_download_url) | cut -d ' ' -f1)
CI_RELEASE_ASSETS=$(curl $CI_VERIFY_API/api/v1/repos/$CI_VERIFY_REPO/releases/tags/$CI_COMMIT_TAG | jq -c '.assets[]' | grep linux-arm64)
CI_RELEASE_BINARY_URL=$(echo "$CI_RELEASE_ASSETS" | grep linux-arm64\" | jq -r --jsonargs .browser_download_url)
CI_RELEASE_SHA256=$(curl $(echo "$CI_RELEASE_ASSETS" | grep linux-arm64.sha256\" | jq -r --jsonargs .browser_download_url) | cut -d ' ' -f1)
wget -nv --content-disposition $CI_RELEASE_BINARY_URL
DOWNLOAD_SHA256=$(sha256sum forgejo-*-linux-amd64 | cut -d ' ' -f1)
DOWNLOAD_SHA256=$(sha256sum forgejo-*-linux-arm64 | cut -d ' ' -f1)
if [ $CI_RELEASE_SHA256 != $DOWNLOAD_SHA256 ] ; then
echo "ERROR: Downloaded file didn't match expected SHA256 sum"
exit 1
fi
mv forgejo-*-linux-amd64 $2
mv forgejo-*-linux-arm64 $2
chmod +x $2
exit 0
else

View file

@ -1,21 +1,11 @@
on: [push, pull_request]
on:
push:
tags:
- "*"
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
runs-on: bookworm
steps:
- uses: actions/checkout@v4
with:
@ -48,25 +38,20 @@ jobs:
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 security-check
- run: ./.ci-make.sh submodule-make forgejo frontend
- run: ./.ci-make.sh submodule-make forgejo checks-backend
# - 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
- name: Build Forgejo for arm64
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
@ -74,70 +59,17 @@ jobs:
- 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
@ -153,44 +85,10 @@ jobs:
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
- run: ./.ci-make.sh install-run-test ./forgejo_*_arm64.deb
publish-release-repo:
runs-on: bookworm
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') && github.repository == 'forgejo-contrib/forgejo-deb'
steps:
- uses: actions/checkout@v4
@ -205,28 +103,21 @@ 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
- uses: actions/forgejo-release@main
with:
direction: upload
url: https://code.forgejo.org
token: ${{ secrets.cfo_api_key }}
url: https://git.alexjanka.com
token: ${{ secrets.PACKAGING_TOKEN }}
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 }}
FORGEJO_SITE: https://git.alexjanka.com
FORGEJO_OWNER: alex
DEBIAN_DIST: testing
DEBIAN_COMPONENT: forgejo
FORGEJO_KEY: ${{ secrets.PACKAGING_TOKEN }}
run: |
cd forgejo-release
../.ci-forgejo-apt.sh *.deb

View file

@ -1,5 +1,5 @@
Package: forgejo-bin
Architecture: amd64
Architecture: arm64
Priority: optional
Provides: forgejo,gitea
Depends: adduser (>= 3.11), git

View file

@ -1,3 +1,24 @@
forgejo (7.0.4-1) unstable; urgency=medium
* Forgejo version 7.0.4
* See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#7-0-4
-- alex <noreply@alexjanka.com> Sat, 15 Jun 2024 00:00:00 +0000
forgejo (7.0.3-1) unstable; urgency=medium
* Forgejo version 7.0.3
* See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#7-0-3
-- alex <noreply@alexjanka.com> Sat, 15 Jun 2024 00:00:00 +0000
forgejo (7.0.2-1) unstable; urgency=medium
* Forgejo version 7.0.2
* See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#7-0-2
-- alex <noreply@alexjanka.com> Sat, 15 Jun 2024 00:00:00 +0000
forgejo (7.0.1-1) unstable; urgency=medium
* Forgejo version 7.0.1
@ -190,4 +211,3 @@ forgejo (1.18.3.0-1) unstable; urgency=medium
* See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#1-18-3-0
-- crystal <crystal@noreply.codeberg.org> Fri, 3 Feb 2023 12:38:00 +0000

View file

@ -5,19 +5,10 @@ Maintainer: crystal <crystal@noreply.codeberg.org>
Build-Depends: debhelper (>= 10)
Package: forgejo
Architecture: amd64
Architecture: arm64
Priority: optional
Provides: gitea
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-sqlite
Architecture: amd64
Priority: optional
Provides: forgejo,gitea
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

@ -1 +1 @@
Subproject commit 554f3697fc4519b44fb583925259db97eb3a8f5b
Subproject commit 5c59a1347a5fbf183eef22fe46805b4d1a8606f3