Compare commits

...
4 Commits
Author SHA1 Message Date
Gitea Actions 7cd062ee1f Release 0.1.16 [auto-version-bump] 2026-10-14 09:50:31 +02:00
Ein Anderssono 305a568899 Create temporary Helm registry credentials file
Build and publish frontend / publish (push) Successful in 32s
2026-10-14 09:50:18 +02:00
Gitea Actions 01cbc4f759 Release 0.1.15 [auto-version-bump] 2026-10-14 09:49:11 +02:00
Ein Anderssono 9082596000 Authenticate Helm chart publication to Harbor
Build and publish frontend / publish (push) Failing after 24s
2026-10-14 09:48:53 +02:00
3 changed files with 18 additions and 4 deletions
+15 -1
View File
@@ -124,8 +124,22 @@ jobs:
helm lint deploy/helm/ai-spel-frontend
helm package deploy/helm/ai-spel-frontend --destination "$publish_dir" \
--version "$version" --app-version "$version"
registry_config="$RUNNER_TEMP/helm/registry.json"
mkdir -p "$(dirname "$registry_config")"
printf '{}' > "$registry_config"
printf '%s' "$HARBOR_PASSWORD" | helm registry login harbor.k3s.k0.nu \
--username "$HARBOR_USERNAME" --password-stdin \
--registry-config "$registry_config"
helm push "$publish_dir/ai-spel-frontend-$version.tgz" \
oci://harbor.k3s.k0.nu/ai-spel
oci://harbor.k3s.k0.nu/ai-spel --registry-config "$registry_config"
chart_metadata="$(helm show chart oci://harbor.k3s.k0.nu/ai-spel/ai-spel-frontend \
--version "$version" --registry-config "$registry_config")"
chart_version="$(printf '%s\n' "$chart_metadata" | awk '$1 == "version:" { print $2 }')"
chart_app_version="$(printf '%s\n' "$chart_metadata" | awk '$1 == "appVersion:" { gsub(/"/, "", $2); print $2 }')"
[[ "$chart_version" == "$version" && "$chart_app_version" == "$version" ]] || {
echo "Published frontend chart version mismatch: chart=$chart_version app=$chart_app_version expected=$version"
exit 1
}
helm template ai-spel-frontend "$publish_dir/ai-spel-frontend-$version.tgz" \
--namespace ai-spel > "$publish_dir/frontend-manifest.yaml"
+1 -1
View File
@@ -1 +1 @@
0.1.14
0.1.16
+2 -2
View File
@@ -2,5 +2,5 @@ apiVersion: v2
name: ai-spel-frontend
description: Static web frontend for the Swedish life simulator
type: application
version: 0.1.14
appVersion: "0.1.14"
version: 0.1.16
appVersion: "0.1.16"