6ca9eae56a
- update to 7.0.0: This is only an excerpt from the full changelog, which you can find in your RELEASE-NOTES.md or at https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#7-0-0 * MySQL 8.0 or PostgreSQL 12 are the minimum supported versions. The database must be migrated before upgrading. The requirements regarding SQLite did not change. * The per_page parameter is no longer a synonym for limit in the /repos/{owner}/{repo}/releases API endpoint. * The date format of the created and last_update fields of the /repos/{owner}/{repo}/push_mirrors and /repos/{owner}/{repo}/push_mirrors API endpoint changed to be timestamps instead of numbers. * Labels used by pprof endpoint have been changed * The fogejo admin user create CLI command requires a password change by default when creating the first user OBS-URL: https://build.opensuse.org/request/show/1170087 OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/forgejo?expand=0&rev=13
42 lines
1.1 KiB
Bash
42 lines
1.1 KiB
Bash
#!/usr/bin/sh
|
|
|
|
set -e
|
|
|
|
if [[ -z "$1" ]]; then
|
|
echo "Please enter the version you want to update to";
|
|
exit 1;
|
|
fi
|
|
|
|
VERSION="$1"
|
|
|
|
echo "++++++++++++++++++++++++++++++++++++++++++++++"
|
|
echo "patching spec file and downloading the tarball"
|
|
echo "++++++++++++++++++++++++++++++++++++++++++++++"
|
|
|
|
sed -i -e 's|Version: .*|Version: '${VERSION}'|g' forgejo.spec
|
|
osc service ra download_files
|
|
|
|
echo "++++++++++++++++++++++++++++++++++++++++++++++"
|
|
echo "extracting package-lock.json"
|
|
echo "++++++++++++++++++++++++++++++++++++++++++++++"
|
|
|
|
tar xf forgejo-src-${VERSION}.tar.gz forgejo-src-${VERSION}/package-lock.json
|
|
cp forgejo-src-${VERSION}/package-lock.json .
|
|
|
|
echo "++++++++++++++++++++++++++++++++++++++++++++++"
|
|
echo "Downloading node_modules"
|
|
echo "++++++++++++++++++++++++++++++++++++++++++++++"
|
|
|
|
osc service ra node_modules
|
|
|
|
echo "++++++++++++++++++++++++++++++++++++++++++++++"
|
|
echo "Cleanup Step"
|
|
echo "++++++++++++++++++++++++++++++++++++++++++++++"
|
|
|
|
rm -r forgejo-src-${VERSION}
|
|
rm node_modules.sums
|
|
|
|
echo "++++++++++++++++++++++++++++++++++++++++++++++"
|
|
echo "Done! Have fun building and testing"
|
|
echo "++++++++++++++++++++++++++++++++++++++++++++++"
|