Files
telegram-scam-baiter/hack/push-chart.sh
itzaname 44b2763745
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
Fix app version in chart
2025-10-03 23:56:52 -04:00

18 lines
647 B
Bash
Executable File

#!/bin/bash
# Compute semver (strip leading "v" if present)
VERSION="${DRONE_TAG#v}"
echo "Using version: ${VERSION}"
# Package the chart with version/appVersion = git tag (sans 'v')
helm package "${CHART_DIR}" \
--version "${VERSION}" \
--app-version "v${VERSION}"
# Add the Gitea Helm repo with basic auth (stored in Helm config)
helm repo add "${DRONE_REPO_NAME}" "https://git.itzana.me/api/packages/${DRONE_REPO_OWNER}/helm" \
--username "${GITEA_USERNAME}" \
--password "${GITEA_TOKEN}"
# Push the packaged chart to Gitea (ChartMuseum API-compatible)
helm cm-push "telegram-scam-baiter-${VERSION}.tgz" "${DRONE_REPO_NAME}"