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"
|
||||
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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
Package: forgejo-bin
|
||||
Architecture: amd64
|
||||
Architecture: arm64
|
||||
Priority: optional
|
||||
Provides: forgejo,gitea
|
||||
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 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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
2
forgejo
2
forgejo
|
@ -1 +1 @@
|
|||
Subproject commit 554f3697fc4519b44fb583925259db97eb3a8f5b
|
||||
Subproject commit 5c59a1347a5fbf183eef22fe46805b4d1a8606f3
|
Loading…
Reference in a new issue