Compare commits
15 commits
cd0d39541b
...
16ef47fa38
Author | SHA1 | Date | |
---|---|---|---|
Alex Janka | 16ef47fa38 | ||
Alex Janka | 2308ace33a | ||
Alex Janka | a6d04fede4 | ||
Alex Janka | 26361b85c0 | ||
Alex Janka | fa590a8542 | ||
Alex Janka | d912e872ef | ||
Alex Janka | 7ed1c1533b | ||
Alex Janka | 58ea08f9ab | ||
Alex Janka | 352ee74100 | ||
Alex Janka | aef259c17a | ||
Alex Janka | fdbd6ccdea | ||
Alex Janka | 8c30264f25 | ||
Alex Janka | c9e6827093 | ||
Alex Janka | 1f46e59334 | ||
Alex Janka | fc86ce2488 |
10
.ci-make.sh
10
.ci-make.sh
|
@ -123,16 +123,16 @@ case "$1" in
|
||||||
CI_COMMIT_TAG="$CI_COMMIT_TAG_RESOLVE"
|
CI_COMMIT_TAG="$CI_COMMIT_TAG_RESOLVE"
|
||||||
fi
|
fi
|
||||||
if [ $CI_COMMIT_TAG ] ; then
|
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/$CI_VERIFY_REPO/releases/tags/$CI_COMMIT_TAG | jq -c '.assets[]' | grep linux-arm64)
|
||||||
CI_RELEASE_BINARY_URL=$(echo "$CI_RELEASE_ASSETS" | grep linux-amd64\" | jq -r --jsonargs .browser_download_url)
|
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-amd64.sha256\" | jq -r --jsonargs .browser_download_url) | cut -d ' ' -f1)
|
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
|
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
|
if [ $CI_RELEASE_SHA256 != $DOWNLOAD_SHA256 ] ; then
|
||||||
echo "ERROR: Downloaded file didn't match expected SHA256 sum"
|
echo "ERROR: Downloaded file didn't match expected SHA256 sum"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
mv forgejo-*-linux-amd64 $2
|
mv forgejo-*-linux-arm64 $2
|
||||||
chmod +x $2
|
chmod +x $2
|
||||||
exit 0
|
exit 0
|
||||||
else
|
else
|
||||||
|
|
|
@ -1,21 +1,11 @@
|
||||||
on: [push, pull_request]
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- "*"
|
||||||
|
|
||||||
jobs:
|
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:
|
build-forgejo-deb:
|
||||||
runs-on: bullseye
|
runs-on: bookworm
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
@ -48,25 +38,20 @@ jobs:
|
||||||
cd forgejo
|
cd forgejo
|
||||||
git update-ref refs/heads/tag_test $(git rev-parse --verify HEAD)
|
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 frontend
|
||||||
|
|
||||||
- run: ./.ci-make.sh submodule-make forgejo checks-backend
|
# - run: ./.ci-make.sh submodule-make forgejo checks-backend
|
||||||
|
|
||||||
- name: Download Forgejo binary
|
- name: Download Forgejo binary
|
||||||
run: ./.ci-make.sh download-binary forgejo-bin-dl
|
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
|
run: ./.ci-make.sh submodule-build forgejo forgejo-bin
|
||||||
env:
|
env:
|
||||||
TAGS: bindata
|
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-prep
|
||||||
- run: ./.ci-make.sh package-build-deps
|
- run: ./.ci-make.sh package-build-deps
|
||||||
|
|
||||||
|
@ -74,70 +59,17 @@ jobs:
|
||||||
|
|
||||||
- run: ./.ci-make.sh package-clean
|
- run: ./.ci-make.sh package-clean
|
||||||
|
|
||||||
- name: build repo package
|
|
||||||
run: |
|
|
||||||
cd repo-deb
|
|
||||||
./build.sh actions
|
|
||||||
|
|
||||||
- name: generate sha256
|
- name: generate sha256
|
||||||
run: |
|
run: |
|
||||||
./.ci-make.sh pkg-gen-sha256
|
./.ci-make.sh pkg-gen-sha256
|
||||||
./.ci-make.sh preview-sha256
|
./.ci-make.sh preview-sha256
|
||||||
|
|
||||||
- run: ./.ci-make.sh install-run-test ./forgejo-sqlite_*_amd64.deb
|
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: forgejo-deb-${{ steps.ciprep.outputs.artifactlabel }}
|
name: forgejo-deb-${{ steps.ciprep.outputs.artifactlabel }}
|
||||||
path: |
|
path: |
|
||||||
*.deb
|
*.deb
|
||||||
*.deb.sha256
|
*.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:
|
installtest-bookworm-user:
|
||||||
runs-on: bookworm
|
runs-on: bookworm
|
||||||
|
@ -153,44 +85,10 @@ jobs:
|
||||||
name: forgejo-deb-${{ steps.ciprep.outputs.artifactlabel }}
|
name: forgejo-deb-${{ steps.ciprep.outputs.artifactlabel }}
|
||||||
|
|
||||||
- run: ./.ci-make.sh test-userinst-prep
|
- run: ./.ci-make.sh test-userinst-prep
|
||||||
- run: ./.ci-make.sh install-run-test ./forgejo_*_amd64.deb
|
- run: ./.ci-make.sh install-run-test ./forgejo_*_arm64.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:
|
publish-release-repo:
|
||||||
runs-on: bookworm
|
runs-on: bookworm
|
||||||
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') && github.repository == 'forgejo-contrib/forgejo-deb'
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
@ -205,28 +103,21 @@ jobs:
|
||||||
- uses: crystal/install-jq-action@v2.1.0
|
- uses: crystal/install-jq-action@v2.1.0
|
||||||
- run: mkdir forgejo-release
|
- run: mkdir forgejo-release
|
||||||
- run: mv *.deb *.deb.sha256 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:
|
with:
|
||||||
direction: upload
|
direction: upload
|
||||||
url: https://code.forgejo.org
|
url: https://git.alexjanka.com
|
||||||
token: ${{ secrets.cfo_api_key }}
|
token: ${{ secrets.PACKAGING_TOKEN }}
|
||||||
release-dir: forgejo-release
|
release-dir: forgejo-release
|
||||||
|
|
||||||
- name: Debian package registry publish
|
- name: Debian package registry publish
|
||||||
env:
|
env:
|
||||||
FORGEJO_SITE: https://code.forgejo.org
|
FORGEJO_SITE: https://git.alexjanka.com
|
||||||
FORGEJO_OWNER: forgejo-contrib
|
FORGEJO_OWNER: alex
|
||||||
DEBIAN_DIST: bullseye
|
DEBIAN_DIST: testing
|
||||||
DEBIAN_COMPONENT: forgejo-lts
|
DEBIAN_COMPONENT: forgejo
|
||||||
FORGEJO_KEY: ${{ secrets.cfo_api_key }}
|
FORGEJO_KEY: ${{ secrets.PACKAGING_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
cd forgejo-release
|
cd forgejo-release
|
||||||
../.ci-forgejo-apt.sh *.deb
|
../.ci-forgejo-apt.sh *.deb
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
Package: forgejo-bin
|
Package: forgejo-bin
|
||||||
Architecture: amd64
|
Architecture: arm64
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Provides: forgejo,gitea
|
Provides: forgejo,gitea
|
||||||
Depends: adduser (>= 3.11), git
|
Depends: adduser (>= 3.11), git
|
||||||
|
|
|
@ -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 (7.0.1-1) unstable; urgency=medium
|
||||||
|
|
||||||
* Forgejo version 7.0.1
|
* 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
|
* 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
|
-- crystal <crystal@noreply.codeberg.org> Fri, 3 Feb 2023 12:38:00 +0000
|
||||||
|
|
||||||
|
|
|
@ -5,19 +5,10 @@ Maintainer: crystal <crystal@noreply.codeberg.org>
|
||||||
Build-Depends: debhelper (>= 10)
|
Build-Depends: debhelper (>= 10)
|
||||||
|
|
||||||
Package: forgejo
|
Package: forgejo
|
||||||
Architecture: amd64
|
Architecture: arm64
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Provides: gitea
|
Provides: gitea
|
||||||
Depends: adduser (>= 3.11),git
|
Depends: adduser (>= 3.11),git
|
||||||
Conflicts: forgejo-sqlite,forgejo-bin
|
Conflicts: forgejo-sqlite,forgejo-bin
|
||||||
Description: Forgejo: Beyond Coding. We Forge.
|
Description: Forgejo: Beyond Coding. We Forge.
|
||||||
Forgejo with bindata ONLY - Use this package for MySQL or PostgreSQL setup
|
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
|
|
||||||
|
|
2
forgejo
2
forgejo
|
@ -1 +1 @@
|
||||||
Subproject commit 554f3697fc4519b44fb583925259db97eb3a8f5b
|
Subproject commit 5c59a1347a5fbf183eef22fe46805b4d1a8606f3
|
Loading…
Reference in a new issue