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
8 changed files with 364 additions and 368 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ jobs:
e2e: e2e:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: mcr.microsoft.com/playwright:v1.59.1-noble image: mcr.microsoft.com/playwright:v1.58.2-noble
steps: steps:
- uses: https://git.keligrubb.com/actions/checkout@v6 - uses: https://git.keligrubb.com/actions/checkout@v6
+1 -1
View File
@@ -50,7 +50,7 @@ jobs:
done < .tags done < .tags
- name: Set up Helm - name: Set up Helm
uses: https://git.keligrubb.com/actions/setup-helm@v5 uses: https://git.keligrubb.com/actions/setup-helm@v4
- name: Package and push Helm chart - name: Package and push Helm chart
env: env:
-16
View File
@@ -1,19 +1,3 @@
## [1.1.0] - 2026-04-15
### Changed
- Update all non-major dependencies (#25)
## [1.0.10] - 2026-04-15
### Changed
- Remove npm overrides for tar (#26)
## [1.0.9] - 2026-03-24
### Changed
- update https://git.keligrubb.com/actions/setup-helm action to v5 (#23)
## [1.0.8] - 2026-03-12
### Changed
- fix release file (#22)
## [1.0.7] - 2026-03-06 ## [1.0.7] - 2026-03-06
### Changed ### Changed
- chore(deps): update docker/build-push-action action to v7 (#19) - chore(deps): update docker/build-push-action action to v7 (#19)
+2 -2
View File
@@ -2,5 +2,5 @@ apiVersion: v2
name: kestrelos name: kestrelos
description: KestrelOS TOC for OSINT feeds - map, camera feeds, offline tiles description: KestrelOS TOC for OSINT feeds - map, camera feeds, offline tiles
type: application type: application
version: 1.1.0 version: 1.0.7
appVersion: "1.1.0" appVersion: "1.0.7"
+1 -1
View File
@@ -2,7 +2,7 @@ replicaCount: 1
image: image:
repository: git.keligrubb.com/keligrubb/kestrelos repository: git.keligrubb.com/keligrubb/kestrelos
tag: 1.1.0 tag: 1.0.7
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
service: service:
+345 -340
View File
File diff suppressed because it is too large Load Diff
+4 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "kestrelos", "name": "kestrelos",
"version": "1.1.0", "version": "1.0.7",
"private": true, "private": true,
"type": "module", "type": "module",
"scripts": { "scripts": {
@@ -45,5 +45,8 @@
"eslint": "^10.0.0", "eslint": "^10.0.0",
"happy-dom": "^20.6.1", "happy-dom": "^20.6.1",
"vitest": "^4.0.0" "vitest": "^4.0.0"
},
"overrides": {
"tar": "^7.5.7"
} }
} }
+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) # Explicit bump prefixes still supported (but never downgrade a major bump)
echo "$msg" | grep -qi minor: && [ "$bump" != "major" ] && bump=minor echo "$msg" | grep -qi minor: && [ "$bump" != "major" ] && bump=minor
echo "$msg" | grep -qi major: && bump=major 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) 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 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" 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 # changelog entry (strip explicit bump prefixes & any conventional-commit type(scope):); optional PR description enriches it
changelogEntry=$( changelogEntry=$(
@@ -42,9 +46,9 @@ else
fi fi
# bump files # 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 echo "$newVersion" > VERSION
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" '/^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/kestrelos/values.yaml > helm/kestrelos/values.yaml.tmp && mv helm/kestrelos/values.yaml.tmp helm/kestrelos/values.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 # changelog
new="## [$newVersion] - $(date +%Y-%m-%d) new="## [$newVersion] - $(date +%Y-%m-%d)
@@ -57,7 +61,7 @@ $changelogFull
# git # git
git config user.email "ci@kestrelos" && git config user.name "CI" 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]" 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" url="https://${CI_REPO_OWNER}:${GITEA_REPO_TOKEN}@${CI_FORGE_URL#https://}/${CI_REPO_OWNER}/${CI_REPO_NAME}.git"
git tag "v$newVersion" git tag "v$newVersion"