forked from CameronJGrant/telegram-scam-baiter
18 lines
646 B
Bash
Executable File
18 lines
646 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 "${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}" |