Skip to content

Commit

Permalink
Fixing no repo break (#24)
Browse files Browse the repository at this point in the history
* Fixing no repo break
* Bumping action docker version to tag 1.2.2
  • Loading branch information
LeoDiazL authored Feb 8, 2023
1 parent 5ee18bb commit 9a40e1f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ inputs:

runs:
using: 'docker'
image: 'docker://bitovi/deploy-eks-helm:v1.2.0'
image: 'docker://bitovi/deploy-eks-helm:v1.2.2'
env:
AWS_REGION: ${{ inputs.aws-region }}
AWS_SECRET_ACCESS_KEY: ${{ inputs.aws-secret-access-key }}
Expand Down
5 changes: 4 additions & 1 deletion deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,10 @@ fi
if [ -n "${HELM_REPOSITORY}" ] && [ "${OCI_REGISTRY}" != "true" ]; then
HELM_CHART_NAME="${DEPLOY_CHART_PATH%/*}"

CHART_REPO_EXISTS=$(helm repo list | _grep ^${HELM_CHART_NAME})
# Need this to avoid exit if no repo exists
HELM_REPOS=$(helm repo list || true)
CHART_REPO_EXISTS=$(echo $HELM_REPOS | _grep ^${HELM_CHART_NAME})

if [ -z "${CHART_REPO_EXISTS}" ]; then
echo "Adding repo ${HELM_CHART_NAME} (${HELM_REPOSITORY})"
helm repo add ${HELM_CHART_NAME} ${HELM_REPOSITORY} ${HELM_AUTH}
Expand Down

0 comments on commit 9a40e1f

Please sign in to comment.