diff --git a/.github/workflows/build-and-push.yml b/.github/workflows/build-and-push.yml index d7e368d..8a79f1b 100644 --- a/.github/workflows/build-and-push.yml +++ b/.github/workflows/build-and-push.yml @@ -45,11 +45,11 @@ jobs: CHART_FILE=$(find . -name '*.tgz' -print -quit) CHART_NAME=$(echo "$CHART_FILE" | sed 's/-[0-9]\+\.[0-9]\+\.[0-9]\+\.tgz$//') echo "curl -s --data-binary \"@${CHART_FILE}\" \ - --url \"http://15.188.14.1:8085/api/charts\" \ + --url \"http://${{ secrets.HELM_REPO }}/api/charts\" \ --header \"Authorization: Basic ${{ secrets.HELM_REPO_AUTH }}\"" - + RESPONSE=$(curl -s --data-binary "@${CHART_FILE}" \ - --url "http://15.188.14.1:8085/api/charts" \ + --url "http://${{ secrets.HELM_REPO }}/api/charts" \ --header "Authorization: Basic ${{ secrets.HELM_REPO_AUTH }}") @@ -57,7 +57,7 @@ jobs: echo "Chart successfully published." elif [[ $RESPONSE == '{"error":"file already exists"}' ]]; then echo "Chart already exists. Deleting and republishing..." - DELETE_RESPONSE=$(curl -s -X DELETE "http://15.188.14.1:8085/api/charts/$CHART_NAME/$VERSION" \ + DELETE_RESPONSE=$(curl -s -X DELETE "http://${{ secrets.HELM_REPO }}/api/charts/$CHART_NAME/$VERSION" \ --header "Authorization: Basic ${{ secrets.HELM_REPO_AUTH }}") if [[ $DELETE_RESPONSE == '{"deleted":true}' ]]; then