Removed tag check logic
This commit is contained in:
@@ -26,22 +26,11 @@ jobs:
|
|||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
helm plugin install https://github.com/chartmuseum/helm-push
|
helm plugin install https://github.com/chartmuseum/helm-push
|
||||||
|
|
||||||
- name: Determine version from git tag
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
TAG="$(git describe --tags --exact-match)"
|
|
||||||
VERSION="${TAG#v}"
|
|
||||||
echo "VERSION=${VERSION}" >> "$GITHUB_ENV"
|
|
||||||
|
|
||||||
- name: Verify Chart.yaml version matches tag
|
- name: Verify Chart.yaml version matches tag
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
FILE="Chart.yaml"
|
FILE="Chart.yaml"
|
||||||
YAML_VER="$(grep '^version:' "$FILE" | awk '{print $2}')"
|
YAML_VER="$(grep '^version:' "$FILE" | awk '{print $2}')"
|
||||||
if [ "$YAML_VER" != "$VERSION" ]; then
|
|
||||||
echo "Chart.yaml version ($YAML_VER) != tag version ($VERSION)"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Lint and package chart
|
- name: Lint and package chart
|
||||||
run: |
|
run: |
|
||||||
@@ -63,7 +52,7 @@ jobs:
|
|||||||
--password "$HELM_PASSWORD"
|
--password "$HELM_PASSWORD"
|
||||||
|
|
||||||
NAME="$(grep '^name:' Chart.yaml | awk '{print $2}')"
|
NAME="$(grep '^name:' Chart.yaml | awk '{print $2}')"
|
||||||
CHART_TGZ="/tmp/${NAME}-${VERSION}.tgz"
|
CHART_TGZ="/tmp/${NAME}-${YAML_VERSION}.tgz"
|
||||||
if [ ! -f "$CHART_TGZ" ]; then
|
if [ ! -f "$CHART_TGZ" ]; then
|
||||||
echo "Expected packaged chart not found: $CHART_TGZ"
|
echo "Expected packaged chart not found: $CHART_TGZ"
|
||||||
ls -l /tmp
|
ls -l /tmp
|
||||||
|
|||||||
Reference in New Issue
Block a user