Skip to content

Commit

Permalink
Remove "+…" suffix from app version string
Browse files Browse the repository at this point in the history
… because "+" is not allowed in Docker image tag strings
  • Loading branch information
robertlemke committed Jan 20, 2020
1 parent e06b68f commit 05dded1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#!/bin/bash
set -ex

export HELM_PLUGIN_PUSH_VERSION=v0.8.1
helm plugin install https://github.com/chartmuseum/helm-push.git --version ${HELM_PLUGIN_PUSH_VERSION}
helm plugin install https://github.com/chartmuseum/helm-push.git

export INPUT_CHARTS_FOLDER=${INPUT_CHARTS_FOLDER:-.}

Expand Down Expand Up @@ -37,7 +36,7 @@ if [ -z "${INPUT_APP_VERSION}" ]; then
fi

INPUT_CHART_VERSION=$(echo "${INPUT_CHART_VERSION}" | sed -e 's|refs/tags||' | sed -e 's/^v//')
INPUT_APP_VERSION=$(echo "${INPUT_APP_VERSION}" | sed -e 's|refs/tags||' | sed -e 's/^v//')
INPUT_APP_VERSION=$(echo "${INPUT_APP_VERSION}" | sed -e 's|refs/tags||' | sed -e 's/^v//' | sed -e 's/+.*//')

cd "${INPUT_CHARTS_FOLDER}"

Expand Down

0 comments on commit 05dded1

Please sign in to comment.