Skip to content

Commit

Permalink
slow deploys
Browse files Browse the repository at this point in the history
  • Loading branch information
julien51 committed Aug 15, 2023
1 parent f1142bf commit cb530f3
Showing 1 changed file with 7 additions and 42 deletions.
49 changes: 7 additions & 42 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,42 +7,23 @@ on:

jobs:
run-all-tests:
runs-on: ubuntu-latest
steps:
- name: echo hello world
run: echo "hello world"
uses: ./.github/workflows/_tests.yml

# deploy-all-subgraphs:
# if: ${{ github.repository_owner == 'unlock-protocol' }}
# needs: run-all-tests
# uses: ./.github/workflows/_subgraph.yml
# secrets:
# SUBGRAPH_DEPLOY_KEY: ${{ secrets.SUBGRAPH_DEPLOY_KEY }}

deploy-locksmith-production:
deploy-all-subgraphs:
if: ${{ github.repository_owner == 'unlock-protocol' }}
needs: run-all-tests
uses: ./.github/workflows/_heroku.yml
with:
bypass_diff_check: bypass
service: locksmith
app-name: unlock-locksmith-production
uses: ./.github/workflows/_subgraph.yml
secrets:
HEROKU_EMAIL: ${{ secrets.HEROKU_EMAIL }}
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
SUBGRAPH_DEPLOY_KEY: ${{ secrets.SUBGRAPH_DEPLOY_KEY }}

deploy-locksmith-websub-production:
deploy-locksmith-production:
if: ${{ github.repository_owner == 'unlock-protocol' }}
needs: run-all-tests
uses: ./.github/workflows/_heroku.yml
with:
bypass_diff_check: bypass
service: locksmith-websub
build-dir: locksmith
command: 'yarn worker'
container-type: worker
app-name: locksmith-websub-production
service: locksmith
app-name: unlock-locksmith-production
secrets:
HEROKU_EMAIL: ${{ secrets.HEROKU_EMAIL }}
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
Expand Down Expand Up @@ -76,19 +57,3 @@ jobs:
SMTP_USERNAME: ${{ secrets.WEDLOCKS_NETLIFY_PROD_SMTP_USERNAME }}
SMTP_PASSWORD: ${{ secrets.WEDLOCKS_NETLIFY_PROD_SMTP_PASSWORD }}
BASE64_WEDLOCKS_PRIVATE_KEY: ${{ secrets.WEDLOCKS_NETLIFY_PROD_BASE64_WEDLOCKS_PRIVATE_KEY }}

deploy-unlock-app-production:
if: ${{ github.repository_owner == 'unlock-protocol' }}
needs: run-all-tests
uses: ./.github/workflows/_netlify.yml
with:
bypass_diff_check: bypass
service: unlock-app
target-env: prod
secrets:
SITE_ID: ${{ secrets.UNLOCK_APP_NETLIFY_PROD_SITE_ID }}
AUTH_TOKEN: ${{ secrets.UNLOCK_APP_NETLIFY_PROD_AUTH_TOKEN }}
NEXT_PUBLIC_BASE64_WEDLOCKS_PUBLIC_KEY: ${{ secrets.UNLOCK_APP_NETLIFY_PROD_BASE64_WEDLOCKS_PUBLIC_KEY }}
NEXT_PUBLIC_STRIPE_KEY: ${{ secrets.UNLOCK_APP_NETLIFY_PROD_STRIPE_KEY }}
NEXT_PUBLIC_ETHPASS_KEY: ${{ secrets.UNLOCK_APP_NETLIFY_PROD_ETHPASS_KEY }}
NEXT_PUBLIC_UNLOCK_ENV: prod

0 comments on commit cb530f3

Please sign in to comment.