12 Commits

Author SHA1 Message Date
130ee5d49e refac(ci): add more logs into GitHub Actions
Some checks failed
Helm / helm-lint (push) Successful in 15s
Helm / helm-unittest (push) Successful in 14s
Release / publish-chart (push) Failing after 16s
2025-06-03 21:37:51 +02:00
be667bad1d refac(ci): cleanup GitHub Actions
Some checks failed
Helm / helm-unittest (push) Successful in 13s
Helm / helm-lint (push) Successful in 15s
Release / publish-chart (push) Failing after 26s
2025-06-03 21:34:02 +02:00
01614570f7 fix(scripts): adapt script parameter list
Some checks failed
Helm / helm-lint (push) Successful in 14s
Helm / helm-unittest (push) Successful in 16s
Release / publish-chart (push) Failing after 14s
2025-06-03 21:32:28 +02:00
6de5e9aa48 chore(ci): use actions/checkout to fetch tags
Some checks failed
Helm / helm-lint (push) Successful in 15s
Helm / helm-unittest (push) Successful in 13s
Release / publish-chart (push) Failing after 15s
2025-06-03 21:26:55 +02:00
2740175246 fix(scripts): exit when change log file is empty
Some checks failed
Helm / helm-lint (push) Successful in 15s
Helm / helm-unittest (push) Successful in 17s
Release / publish-chart (push) Failing after 14s
2025-06-03 21:14:26 +02:00
7caedbe80d fix(scripts): exit when change log file is empty
Some checks failed
Helm / helm-unittest (push) Waiting to run
Helm / helm-lint (push) Has been cancelled
2025-06-03 21:14:13 +02:00
eac8c552bb chore(chart): remove change log
All checks were successful
Helm / helm-lint (push) Successful in 11s
Helm / helm-unittest (push) Successful in 15s
Release / publish-chart (push) Successful in 18s
2025-06-03 21:04:09 +02:00
c4b209a1a4 chore(ci): change arguments of add-annotations.sh
All checks were successful
Helm / helm-lint (push) Successful in 15s
Helm / helm-unittest (push) Successful in 14s
Release / publish-chart (push) Successful in 18s
2025-06-03 20:53:45 +02:00
9cd56ac7f6 chore(ci): enforce to checkout git tag
All checks were successful
Helm / helm-unittest (push) Successful in 12s
Helm / helm-lint (push) Successful in 15s
Release / publish-chart (push) Successful in 25s
2025-06-03 20:46:41 +02:00
6425930268 chore(ci): checkout tags without pruning
Some checks failed
Helm / helm-lint (push) Successful in 11s
Helm / helm-unittest (push) Successful in 15s
Release / publish-chart (push) Failing after 12s
2025-06-03 20:39:08 +02:00
69c4b3dd4d chore(ci): checkout tags via git
Some checks failed
Helm / helm-lint (push) Successful in 11s
Helm / helm-unittest (push) Successful in 16s
Release / publish-chart (push) Failing after 14s
2025-06-03 20:33:39 +02:00
d56f5e65c7 chore(ci): fetch tags
All checks were successful
Helm / helm-unittest (push) Successful in 12s
Helm / helm-lint (push) Successful in 15s
Release / publish-chart (push) Successful in 26s
2025-06-03 20:19:07 +02:00
3 changed files with 14 additions and 23 deletions

View File

@ -33,7 +33,7 @@ else
fi
fi
if [ -z "${1}" ]; then
if [ -z "${2}" ]; then
read -p "Enter end tag [${DEFAULT_NEW_TAG}]: " NEW_TAG
if [ -z "${NEW_TAG}" ]; then
NEW_TAG="${DEFAULT_NEW_TAG}"
@ -47,7 +47,7 @@ if [ -z "${1}" ]; then
fi
done
else
NEW_TAG=${1}
NEW_TAG=${2}
if [ -z "$(git tag --list "${NEW_TAG}")" ]; then
echo "ERROR: Tag '${NEW_TAG}' not found!"
@ -97,7 +97,11 @@ while IFS= read -r line; do
fi
done <<< "${COMMIT_TITLES}"
yq --no-colors --inplace ".annotations.\"artifacthub.io/changes\" |= loadstr(\"${YAML_FILE}\") | sort_keys(.)" "${CHART_FILE}"
yq --no-colors --inplace ".version = \"${NEW_TAG}\"" "${CHART_FILE}"
if [ -s "${YAML_FILE}" ]; then
yq --no-colors --inplace ".annotations.\"artifacthub.io/changes\" |= loadstr(\"${YAML_FILE}\") | sort_keys(.)" "${CHART_FILE}"
else
echo "ERROR: Changelog file is empty: ${YAML_FILE}" 1>&2
exit 1
fi
rm "${YAML_FILE}"

View File

@ -2,6 +2,8 @@ name: Release
on:
push:
branches:
- master
tags:
- "**"
@ -15,19 +17,19 @@ jobs:
run: |
apk update
apk add git npm yq
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Add Artifacthub.io annotations
run: |
git tag
NEW_TAG="$(git describe --abbrev=0)"
OLD_TAG="$(git describe --abbrev=0 --tags "$(git rev-list --tags --skip=1 --max-count=1)")"
echo "${NEW_TAG}"
echo "${OLD_TAG}"
.gitea/scripts/add-annotations.sh "${NEW_TAG}" "${OLD_TAG}"
.gitea/scripts/add-annotations.sh "${OLD_TAG}" "${NEW_TAG}"
- name: Package chart
env:

View File

@ -4,21 +4,6 @@ annotations:
url: https://git.cryptic.systems/volker.raschek/prometheus-fail2ban-exporter
- name: support
url: https://git.cryptic.systems/volker.raschek/prometheus-fail2ban-exporter-charts/issues
artifacthub.io/changes: |
- kind: changed
description: use short flags of cut
- kind: added
description: support Artifacthub annotations
- kind: changed
description: update volkerraschek/helm docker tag to v3.18.2
- kind: changed
description: update docker.io/volkerraschek/helm docker tag to v3.18.2
- kind: changed
description: update dependency volker.raschek/prometheus-fail2ban-exporter-charts to v0.4.0
- kind: changed
description: update volkerraschek/helm docker tag to v3.18.1
- kind: changed
description: update docker.io/volkerraschek/helm docker tag to v3.18.1
apiVersion: v2
appVersion: "0.1.1"
description: Prometheus metric exporter for Fail2Ban