Skip to content

Commit

Permalink
feat(rollout-renku-version): Accept CHART_VERSION as env.
Browse files Browse the repository at this point in the history
Do not try to extract CHART_VERSION from Chart.yaml as we
no longer update it. Instead simply require that the tag
be passed to the action.
  • Loading branch information
aledegano committed Oct 14, 2022
1 parent 92a76c7 commit 890db11
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions rollout-renku-version/rollout-renku-deployment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ then
exit 1
fi

if [ -z "$CHART_VERSION" ]
then
echo "Must specify CHART_VERSION"
exit 1
fi

# set up environment variables
UPSTREAM_REPO=${UPSTREAM_REPO:=SwissDataScienceCenter/terraform-renku}
UPSTREAM_BRANCH=${UPSTREAM_BRANCH:=main}
Expand All @@ -16,9 +22,6 @@ CHART_NAME=${CHART_NAME:=$(echo $GITHUB_REPOSITORY | cut -d/ -f2)}
PRODUCTION_DIR=${PRODUCTION_DIR:="gitops/production"}
EXCLUDE_CLUSTERS=${EXCLUDE_CLUSTERS:="rancher renku-dev"}

# get the chart version
CHART_VERSION=$(yq eval '.version' helm-chart/${CHART_NAME}/Chart.yaml)

# set up git
git config --global user.email "$GIT_EMAIL"
git config --global user.name "$GIT_USER"
Expand Down

0 comments on commit 890db11

Please sign in to comment.