Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Commit

Permalink
ci(cd): disable cd (#62)
Browse files Browse the repository at this point in the history
indexer is not used anymore (using Nansen for analytics instead) so we
can stop deploying it

commenting out to make it easier to re-enable if we need to turn the
indexer back on

cc
https://linear.app/valora/issue/ACT-861/shut-off-indexer-and-drop-data
  • Loading branch information
cajubelt authored Oct 13, 2023
1 parent 9530283 commit 4652021
Showing 1 changed file with 39 additions and 39 deletions.
78 changes: 39 additions & 39 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,42 +64,42 @@ jobs:
- run: yarn
- run: yarn build
- run: yarn e2e
deploy-alfajores:
name: Deploy alfajores
if: github.ref == 'refs/heads/main'
needs:
- unit
- lint
- end-to-end
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: google-github-actions/setup-gcloud@v0
with:
service_account_key: ${{ secrets.ALFAJORES_SERVICE_ACCOUNT_KEY }}
export_default_credentials: true
- run: yarn
- name: Deploy App
run: gcloud app deploy app.alfajores.yaml --project=celo-mobile-alfajores --version="git-$(git rev-parse --short HEAD)" --quiet --promote --stop-previous-version
- name: Cleanup Versions
run: yarn cleanup-versions --service indexer --num-versions 5
deploy-mainnet:
name: Deploy mainnet
if: github.ref == 'refs/heads/main'
needs:
- unit
- lint
- end-to-end
- deploy-alfajores
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: google-github-actions/setup-gcloud@v0
with:
service_account_key: ${{ secrets.MAINNET_SERVICE_ACCOUNT_KEY }}
export_default_credentials: true
- run: yarn
- name: Deploy App
run: gcloud app deploy app.mainnet.yaml --project=celo-mobile-mainnet --version="git-$(git rev-parse --short HEAD)" --quiet --promote --stop-previous-version
- name: Cleanup Versions
run: yarn cleanup-versions --service indexer --num-versions 5
# deploy-alfajores:
# name: Deploy alfajores
# if: github.ref == 'refs/heads/main'
# needs:
# - unit
# - lint
# - end-to-end
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - uses: google-github-actions/setup-gcloud@v0
# with:
# service_account_key: ${{ secrets.ALFAJORES_SERVICE_ACCOUNT_KEY }}
# export_default_credentials: true
# - run: yarn
# - name: Deploy App
# run: gcloud app deploy app.alfajores.yaml --project=celo-mobile-alfajores --version="git-$(git rev-parse --short HEAD)" --quiet --promote --stop-previous-version
# - name: Cleanup Versions
# run: yarn cleanup-versions --service indexer --num-versions 5
# deploy-mainnet:
# name: Deploy mainnet
# if: github.ref == 'refs/heads/main'
# needs:
# - unit
# - lint
# - end-to-end
# - deploy-alfajores
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - uses: google-github-actions/setup-gcloud@v0
# with:
# service_account_key: ${{ secrets.MAINNET_SERVICE_ACCOUNT_KEY }}
# export_default_credentials: true
# - run: yarn
# - name: Deploy App
# run: gcloud app deploy app.mainnet.yaml --project=celo-mobile-mainnet --version="git-$(git rev-parse --short HEAD)" --quiet --promote --stop-previous-version
# - name: Cleanup Versions
# run: yarn cleanup-versions --service indexer --num-versions 5

0 comments on commit 4652021

Please sign in to comment.