Compare commits

..

2 Commits

Author SHA1 Message Date
volker.raschek daeedce720 fix(scripts): adapt rc pattern
Helm / helm-lint (push) Successful in 12s
Helm / helm-unittest (push) Successful in 28s
Release / publish-chart (push) Successful in 1m43s
2026-06-01 21:37:00 +02:00
CSRBot 281915b7f3 chore(deps): update docker/login-action action to v4.2.0
Helm / helm-lint (push) Successful in 10s
Helm / helm-unittest (push) Successful in 32s
2026-05-31 19:26:37 +00:00
2 changed files with 6 additions and 4 deletions
+5 -3
View File
@@ -8,9 +8,11 @@ if [ ! -f "${CHART_FILE}" ]; then
exit 1 exit 1
fi fi
rc_pattern='-rc(\.[0-9]+)?$'
# Exclude prerelease tags (matching -rc or -rc-<digits>) from default tag selection # Exclude prerelease tags (matching -rc or -rc-<digits>) from default tag selection
DEFAULT_NEW_TAG="$(git tag --sort=-version:refname | grep --invert-match --perl-regexp '\-rc(-[0-9]+)?$' | head --lines 1)" DEFAULT_NEW_TAG="$(git tag --sort=-version:refname | grep --invert-match --perl-regexp "${rc_pattern}" | head --lines 1)"
DEFAULT_OLD_TAG="$(git tag --sort=-version:refname | grep --invert-match --perl-regexp '\-rc(-[0-9]+)?$' | head --lines 2 | tail --lines 1)" DEFAULT_OLD_TAG="$(git tag --sort=-version:refname | grep --invert-match --perl-regexp "${rc_pattern}" | head --lines 2 | tail --lines 1)"
if [ -z "${1}" ]; then if [ -z "${1}" ]; then
read -p "Enter start tag [${DEFAULT_OLD_TAG}]: " OLD_TAG read -p "Enter start tag [${DEFAULT_OLD_TAG}]: " OLD_TAG
@@ -56,7 +58,7 @@ else
fi fi
# Check if NEW_TAG is a prerelease (matches -rc or -rc-<digits> suffix) # Check if NEW_TAG is a prerelease (matches -rc or -rc-<digits> suffix)
if [[ "${NEW_TAG}" =~ -rc(-[0-9]+)?$ ]]; then if [[ "${NEW_TAG}" =~ ${rc_pattern} ]]; then
echo "INFO: Tag '${NEW_TAG}' is a prerelease, setting prerelease annotation and skipping changelog." echo "INFO: Tag '${NEW_TAG}' is a prerelease, setting prerelease annotation and skipping changelog."
yq --no-colors --inplace ".annotations.\"artifacthub.io/prerelease\" = \"true\" | sort_keys(.)" "${CHART_FILE}" yq --no-colors --inplace ".annotations.\"artifacthub.io/prerelease\" = \"true\" | sort_keys(.)" "${CHART_FILE}"
exit 0 exit 0
+1 -1
View File
@@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v6.0.2 - uses: actions/checkout@v6.0.2
- uses: docker/login-action@v4.1.0 - uses: docker/login-action@v4.2.0
with: with:
registry: ${{ github.server_url }} registry: ${{ github.server_url }}
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}