chore(ci): write error message to stderr
Some checks failed
Helm / helm-lint (push) Successful in 15s
Helm / helm-unittest (push) Successful in 26s
Release / publish-chart (push) Failing after 23s

This commit is contained in:
Markus Pesch 2025-06-04 18:46:57 +02:00
parent 022a4d2155
commit a0bb4f2277
Signed by: volker.raschek
GPG Key ID: 852BCC170D81A982

View File

@ -4,11 +4,10 @@ set -e
CHART_FILE="Chart.yaml" CHART_FILE="Chart.yaml"
if [ ! -f "${CHART_FILE}" ]; then if [ ! -f "${CHART_FILE}" ]; then
echo "ERROR: ${CHART_FILE} not found!" echo "ERROR: ${CHART_FILE} not found!" 1>&2
exit 1 exit 1
fi fi
DEFAULT_NEW_TAG="$(git describe --abbrev=0)" DEFAULT_NEW_TAG="$(git describe --abbrev=0)"
DEFAULT_OLD_TAG="$(git describe --abbrev=0 --tags "$(git rev-list --tags --skip=1 --max-count=1)")" DEFAULT_OLD_TAG="$(git describe --abbrev=0 --tags "$(git rev-list --tags --skip=1 --max-count=1)")"
@ -19,7 +18,7 @@ if [ -z "${1}" ]; then
fi fi
while [ -z "$(git tag --list "${OLD_TAG}")" ]; do while [ -z "$(git tag --list "${OLD_TAG}")" ]; do
echo "ERROR: Tag '${OLD_TAG}' not found!" echo "ERROR: Tag '${OLD_TAG}' not found!" 1>&2
read -p "Enter start tag [${DEFAULT_OLD_TAG}]: " OLD_TAG read -p "Enter start tag [${DEFAULT_OLD_TAG}]: " OLD_TAG
if [ -z "${OLD_TAG}" ]; then if [ -z "${OLD_TAG}" ]; then
OLD_TAG="${DEFAULT_OLD_TAG}" OLD_TAG="${DEFAULT_OLD_TAG}"
@ -28,7 +27,7 @@ if [ -z "${1}" ]; then
else else
OLD_TAG=${1} OLD_TAG=${1}
if [ -z "$(git tag --list "${OLD_TAG}")" ]; then if [ -z "$(git tag --list "${OLD_TAG}")" ]; then
echo "ERROR: Tag '${OLD_TAG}' not found!" echo "ERROR: Tag '${OLD_TAG}' not found!" 1>&2
exit 1 exit 1
fi fi
fi fi
@ -40,7 +39,7 @@ if [ -z "${2}" ]; then
fi fi
while [ -z "$(git tag --list "${NEW_TAG}")" ]; do while [ -z "$(git tag --list "${NEW_TAG}")" ]; do
echo "ERROR: Tag '${NEW_TAG}' not found!" echo "ERROR: Tag '${NEW_TAG}' not found!" 1>&2
read -p "Enter end tag [${DEFAULT_NEW_TAG}]: " NEW_TAG read -p "Enter end tag [${DEFAULT_NEW_TAG}]: " NEW_TAG
if [ -z "${NEW_TAG}" ]; then if [ -z "${NEW_TAG}" ]; then
NEW_TAG="${DEFAULT_NEW_TAG}" NEW_TAG="${DEFAULT_NEW_TAG}"
@ -50,7 +49,7 @@ else
NEW_TAG=${2} NEW_TAG=${2}
if [ -z "$(git tag --list "${NEW_TAG}")" ]; then if [ -z "$(git tag --list "${NEW_TAG}")" ]; then
echo "ERROR: Tag '${NEW_TAG}' not found!" echo "ERROR: Tag '${NEW_TAG}' not found!" 1>&2
exit 1 exit 1
fi fi
fi fi