Feature/helm chart #26
@@ -42,8 +42,10 @@ jobs:
|
|||||||
RAW_VERSION=$(jq -r '.version' package.json)
|
RAW_VERSION=$(jq -r '.version' package.json)
|
||||||
elif [ -f pom.xml ]; then
|
elif [ -f pom.xml ]; then
|
||||||
RAW_VERSION=$(grep -oP '<version>\K[^<]+' pom.xml | head -1)
|
RAW_VERSION=$(grep -oP '<version>\K[^<]+' pom.xml | head -1)
|
||||||
|
elif [ -f Chart.yaml ]; then
|
||||||
|
RAW_VERSION=$(grep -oP '^version:\s*\K\S+' Chart.yaml)
|
||||||
else
|
else
|
||||||
echo "ERROR: No VERSION file, package.json, or pom.xml found" >&2
|
echo "ERROR: No VERSION file, package.json, pom.xml, or Chart.yaml found" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
BASE_VERSION=$(echo "$RAW_VERSION" | cut -d'.' -f1-2)
|
BASE_VERSION=$(echo "$RAW_VERSION" | cut -d'.' -f1-2)
|
||||||
|
|||||||
Reference in New Issue
Block a user