Skip to content

Commit

Permalink
hotfix: added RPC-secret to github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
FilipHarald committed Dec 18, 2024
1 parent 4aeac18 commit 17727cb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/chicmoz-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 17727cb

Please sign in to comment.