@@ -84,42 +84,42 @@ jobs:
8484 run : |
8585 /apps/clean_stale_releases.sh torus-docs
8686
87- # deploy:
88- # needs: [build, clean-stale]
89- # runs-on: ubicloud-standard-2
90- # environment: ${{ github.ref_name }}
91- # container:
92- # image: ghcr.io/renlabs-dev/devops-ci:latest
93-
94- # env:
95- # VAULT_ADDR: ${{ secrets.VAULT_ADDR }}
96- # VAULT_ROLE_ID: ${{ secrets.VAULT_ROLE_ID }}
97- # VAULT_SECRET_ID: ${{ secrets.VAULT_SECRET_ID }}
98-
99- # steps:
100- # - name: Checkout repository
101- # uses: actions/checkout@v4
102-
103- # - name: Setup Kubernetes authentication
104- # run: /apps/k8s_auth_w_approle_sa.sh
105-
106- # - name: Add and update Helm repositories
107- # run: |
108- # helm repo add renlabs https://charts.renlabs.dev/
109- # helm repo update
110-
111- # - id: commit
112- # uses: prompt/actions-commit-hash@v3
113-
114- # - name: Set environment variables
115- # run: |
116- # SANITIZED_REF=$(echo "${GITHUB_REF##*/}" | tr '/' '-')
117- # echo "SANITIZED_REF=$SANITIZED_REF" >> $GITHUB_ENV
118- # echo "INGRESS=$([ "$SANITIZED_REF" == "main" ] && echo "docs.torus.network" || echo "$SANITIZED_REF.docs.torus.network")" >> $GITHUB_ENV
119-
120- # - name: Deploy application
121- # run: |
122- # helmfile sync \
123- # --state-values-set releaseName=${{ env.SANITIZED_REF }}-torus-docs \
124- # --state-values-set ingressHost=${{ env.INGRESS }} \
125- # --set deployment.image.tag=${{ steps.commit.outputs.short }}
87+ deploy :
88+ needs : [build, clean-stale]
89+ runs-on : ubicloud-standard-2
90+ environment : ${{ github.ref_name }}
91+ container :
92+ image : ghcr.io/renlabs-dev/devops-ci:latest
93+
94+ env :
95+ VAULT_ADDR : ${{ secrets.VAULT_ADDR }}
96+ VAULT_ROLE_ID : ${{ secrets.VAULT_ROLE_ID }}
97+ VAULT_SECRET_ID : ${{ secrets.VAULT_SECRET_ID }}
98+
99+ steps :
100+ - name : Checkout repository
101+ uses : actions/checkout@v4
102+
103+ - name : Setup Kubernetes authentication
104+ run : /apps/k8s_auth_w_approle_sa.sh
105+
106+ - name : Add and update Helm repositories
107+ run : |
108+ helm repo add renlabs https://charts.renlabs.dev/
109+ helm repo update
110+
111+ - id : commit
112+ uses : prompt/actions-commit-hash@v3
113+
114+ - name : Set environment variables
115+ run : |
116+ SANITIZED_REF=$(echo "${GITHUB_REF##*/}" | tr '/' '-')
117+ echo "SANITIZED_REF=$SANITIZED_REF" >> $GITHUB_ENV
118+ echo "INGRESS=$([ "$SANITIZED_REF" == "main" ] && echo "docs.torus.network" || echo "$SANITIZED_REF.docs.torus.network")" >> $GITHUB_ENV
119+
120+ - name : Deploy application
121+ run : |
122+ helmfile sync \
123+ --state-values-set releaseName=${{ env.SANITIZED_REF }}-torus-docs \
124+ --state-values-set ingressHost=${{ env.INGRESS }} \
125+ --set deployment.image.tag=${{ steps.commit.outputs.short }}
0 commit comments