Compare commits

..
3 Commits
Author SHA1 Message Date
Madison Grubb eb5707a889 patch: use mirrors for ci actions
PR / e2e (pull_request) Successful in 2m9s
PR / lint (pull_request) Successful in 1m3s
PR / test (pull_request) Successful in 41s
PR / docker-build (pull_request) Successful in 1m50s
2026-03-12 14:24:22 -04:00
Madison Grubb abdf3d21e7 patch: improve release process 2026-03-12 14:22:37 -04:00
Madison Grubb d479716b7a patch: swap to stdlib sqlite3 2026-03-12 14:22:16 -04:00
5 changed files with 14 additions and 14 deletions
-4
View File
@@ -1,7 +1,3 @@
## [1.0.8] - 2026-03-12
### Changed
- fix release file (#22)
## [1.0.7] - 2026-03-06
### Changed
- chore(deps): update docker/build-push-action action to v7 (#19)
+2 -2
View File
@@ -2,5 +2,5 @@ apiVersion: v2
name: kestrelos
description: KestrelOS TOC for OSINT feeds - map, camera feeds, offline tiles
type: application
version: 1.0.8
appVersion: "1.0.8"
version: 1.0.7
appVersion: "1.0.7"
+1 -1
View File
@@ -2,7 +2,7 @@ replicaCount: 1
image:
repository: git.keligrubb.com/keligrubb/kestrelos
tag: 1.0.8
tag: 1.0.7
pullPolicy: IfNotPresent
service:
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "kestrelos",
"version": "1.0.8",
"version": "1.0.7",
"private": true,
"type": "module",
"scripts": {
+10 -6
View File
@@ -19,11 +19,15 @@ echo "$msg" | grep -Eqi '(^|[[:space:]])[a-zA-Z]+(\([^)]*\))?!:' && bump=major
# Explicit bump prefixes still supported (but never downgrade a major bump)
echo "$msg" | grep -qi minor: && [ "$bump" != "major" ] && bump=minor
echo "$msg" | grep -qi major: && bump=major
cur=$(awk '/"version"/ { match($0, /[0-9]+\.[0-9]+\.[0-9]+/); print substr($0, RSTART, RLENGTH); exit }' package.json)
cur=$(cat VERSION | tr -d '\n')
case "$cur" in
[0-9]*.[0-9]*.[0-9]*) ;;
*) echo "error: VERSION must be x.y.z (got: $cur)"; exit 1 ;;
esac
major=$(echo "$cur" | cut -d. -f1); minor=$(echo "$cur" | cut -d. -f2); patch=$(echo "$cur" | cut -d. -f3)
case "$bump" in major) major=$((major+1)); minor=0; patch=0 ;; minor) minor=$((minor+1)); patch=0 ;; patch) patch=$((patch+1)) ;; esac
newVersion="$major.$minor.$patch"
[ -z "$cur" ] && { echo "error: could not read version from package.json"; exit 1; }
[ -z "$cur" ] && { echo "error: could not read version from VERSION"; exit 1; }
# changelog entry (strip explicit bump prefixes & any conventional-commit type(scope):); optional PR description enriches it
changelogEntry=$(
@@ -42,9 +46,9 @@ else
fi
# bump files
awk -v v="$newVersion" '/"version"/ { sub(/[0-9]+\.[0-9]+\.[0-9]+/, v) } { print }' package.json > package.json.tmp && mv package.json.tmp package.json
awk -v v="$newVersion" '/^version:/ { $0 = "version: " v }; /^appVersion:/ { $0 = "appVersion: \"" v "\"" }; { print }' helm/kestrelos/Chart.yaml > helm/kestrelos/Chart.yaml.tmp && mv helm/kestrelos/Chart.yaml.tmp helm/kestrelos/Chart.yaml
awk -v v="$newVersion" '/^ tag:/ { $0 = " tag: " v }; { print }' helm/kestrelos/values.yaml > helm/kestrelos/values.yaml.tmp && mv helm/kestrelos/values.yaml.tmp helm/kestrelos/values.yaml
echo "$newVersion" > VERSION
awk -v v="$newVersion" '/^version:/ { $0 = "version: " v }; /^appVersion:/ { $0 = "appVersion: \"" v "\"" }; { print }' helm/jasper/Chart.yaml > helm/jasper/Chart.yaml.tmp && mv helm/jasper/Chart.yaml.tmp helm/jasper/Chart.yaml
awk -v v="$newVersion" '/^ tag:/ { $0 = " tag: " v }; { print }' helm/jasper/values.yaml > helm/jasper/values.yaml.tmp && mv helm/jasper/values.yaml.tmp helm/jasper/values.yaml
# changelog
new="## [$newVersion] - $(date +%Y-%m-%d)
@@ -57,7 +61,7 @@ $changelogFull
# git
git config user.email "ci@kestrelos" && git config user.name "CI"
git add package.json helm/kestrelos/Chart.yaml helm/kestrelos/values.yaml CHANGELOG.md
git add VERSION helm/jasper/Chart.yaml helm/jasper/values.yaml CHANGELOG.md
git commit -m "release v$newVersion [skip ci]"
url="https://${CI_REPO_OWNER}:${GITEA_REPO_TOKEN}@${CI_FORGE_URL#https://}/${CI_REPO_OWNER}/${CI_REPO_NAME}.git"
git tag "v$newVersion"