Skip to content

Commit 9a40e1f

Browse files
authored
Fixing no repo break (#24)
* Fixing no repo break * Bumping action docker version to tag 1.2.2
1 parent 5ee18bb commit 9a40e1f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

action.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ inputs:
8888

8989
runs:
9090
using: 'docker'
91-
image: 'docker://bitovi/deploy-eks-helm:v1.2.0'
91+
image: 'docker://bitovi/deploy-eks-helm:v1.2.2'
9292
env:
9393
AWS_REGION: ${{ inputs.aws-region }}
9494
AWS_SECRET_ACCESS_KEY: ${{ inputs.aws-secret-access-key }}

deploy.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,10 @@ fi
8484
if [ -n "${HELM_REPOSITORY}" ] && [ "${OCI_REGISTRY}" != "true" ]; then
8585
HELM_CHART_NAME="${DEPLOY_CHART_PATH%/*}"
8686

87-
CHART_REPO_EXISTS=$(helm repo list | _grep ^${HELM_CHART_NAME})
87+
# Need this to avoid exit if no repo exists
88+
HELM_REPOS=$(helm repo list || true)
89+
CHART_REPO_EXISTS=$(echo $HELM_REPOS | _grep ^${HELM_CHART_NAME})
90+
8891
if [ -z "${CHART_REPO_EXISTS}" ]; then
8992
echo "Adding repo ${HELM_CHART_NAME} (${HELM_REPOSITORY})"
9093
helm repo add ${HELM_CHART_NAME} ${HELM_REPOSITORY} ${HELM_AUTH}

0 commit comments

Comments
 (0)