⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.
TypeScript honoissue-managementissue-trackerjira-alternativekanbanlinear-alternativemcpproject-managementreactself-hostedtypescript
#!/usr/bin/env bash
set -euo pipefail
# The standard GitHub latest release excludes prereleases and package-only releases.
tag=$(gh api "repos/$GITHUB_REPOSITORY/releases/latest" --jq .tag_name)
version=${tag#v}
node scripts/security/validate-release-version.mjs "$version" --new-version
if [[ "$tag" != "v$version" ]]; then
echo "Expected a stable Kaneo vX.Y.Z release, got $tag" >&2
exit 1
fi
owner=$(printf '%s' "$GITHUB_REPOSITORY_OWNER" | tr '[:upper:]' '[:lower:]')
image="ghcr.io/$owner/kaneo:$version"
# GHCR can time out before returning headers even when the image is available.
# Retry only acquisition; the upgrade and its assertions still run once.
for attempt in 1 2 3; do
if docker pull "$image"; then
break
fi
if [[ "$attempt" == 3 ]]; then
echo "Unable to pull the stable upgrade image after $attempt attempts" >&2
exit 1
fi
echo "Retrying stable image pull (attempt $((attempt + 1))/3)" >&2
sleep "$((attempt * 5))"
done
# Record and use the pulled digest so a mutable tag cannot change the baseline mid-test.
export KANEO_UPGRADE_IMAGE
authoritative_ref=$(docker image inspect "$image" --format '{{index .RepoDigests 0}}')
KANEO_UPGRADE_IMAGE=$authoritative_ref
mkdir -p .cache/ci-results
printf 'Upgrade baseline: %s\n' "$KANEO_UPGRADE_IMAGE" | tee .cache/ci-results/upgrade-baseline.txt
compose=(docker compose --env-file /dev/null -p kaneo-ci -f scripts/ci/compose.yml --profile upgrade)
"${compose[@]}" up -d --wait --wait-timeout 120 upgrade
node scripts/ci/upgrade.mjs seed "$KANEO_CI_UPGRADE_ORIGIN" .cache/ci-results/upgrade-state.json
"${compose[@]}" stop upgrade
export KANEO_UPGRADE_IMAGE=kaneo:ci
"${compose[@]}" up -d --no-deps --wait --wait-timeout 120 --force-recreate upgrade
node scripts/ci/upgrade.mjs verify "$KANEO_CI_UPGRADE_ORIGIN" .cache/ci-results/upgrade-state.json