diff --git a/.github/workflows/chicmoz-prod.yml b/.github/workflows/chicmoz-prod.yml index 23df54d2..90565465 100644 --- a/.github/workflows/chicmoz-prod.yml +++ b/.github/workflows/chicmoz-prod.yml @@ -23,7 +23,7 @@ jobs: - name: Print important information env: - CHICMOZ_AZTEC_RPC: ${{ secrets.CHICMOZ_AZTEC_RPC }} + CHICMOZ_AZTEC_RPC: ${{ env.CHICMOZ_AZTEC_RPC }} run: | echo "VERSION: $(git describe --tags)" echo "CHICMOZ_AZTEC_RPC: $CHICMOZ_AZTEC_RPC" @@ -51,10 +51,14 @@ jobs: run: doctl kubernetes cluster kubeconfig save "chicmoz-prod" - name: Deploy to cluster with Skaffold + env: + CHICMOZ_AZTEC_RPC: ${{ env.CHICMOZ_AZTEC_RPC }} run: | MAX_RETRIES=3 RETRY_DELAY=10 + kubectl create secret generic global --from-literal=CHICMOZ_AZTEC_RPC=$CHICMOZ_AZTEC_RPC + for i in $(seq 1 $MAX_RETRIES); do if bash -x scripts/production/deploy.sh; then echo "Deployment successful"