setting concurrency variable with search #642
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Fly Deploy | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'apps/**' | |
- 'hub/**' | |
- 'packages/**' | |
- '.github/workflows/fly.yml' | |
jobs: | |
deploy_rolodex: | |
name: Deploy Rolodex | |
runs-on: ubuntu-latest | |
needs: deploy_hub | |
environment: | |
name: prod-fly-io | |
url: https://app-rolodex.shovel.company | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20' # or your preferred Node.js version | |
- name: Install dependencies for client | |
run: npm install -w rolodex-client | |
- name: Build client | |
run: npm run build -w rolodex-client | |
env: | |
VITE_PRIVY_APP_ID: ${{ secrets.VITE_PRIVY_APP_ID }} | |
- name: Copy client build to server public folder | |
run: | | |
mkdir -p ./apps/rolodex/public/dist | |
cp -r ./apps/rolodex-client/dist/* ./apps/rolodex/public/dist/ | |
- name: Deploy Rolodex | |
uses: superfly/flyctl-actions/setup-flyctl@master | |
- run: | | |
flyctl deploy --remote-only --ha=false \ | |
--build-secret VITE_NETWORK=${{ secrets.VITE_NETWORK }} \ | |
--build-secret VITE_GOOGLE_CLIENT_ID=${{ secrets.VITE_GOOGLE_CLIENT_ID }} \ | |
--config apps/rolodex/fly.toml --dockerfile apps/rolodex/Dockerfile | |
env: | |
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} | |
deploy_autofollow: | |
name: Deploy Autofollow | |
runs-on: ubuntu-latest | |
needs: deploy_hub | |
environment: | |
name: prod-fly-io | |
url: https://autofollow.rolodex.social | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: superfly/flyctl-actions/setup-flyctl@master | |
- name: Deploy Autofollow | |
run: | | |
flyctl deploy --remote-only --ha=false \ | |
--build-secret VITE_NETWORK=${{ secrets.VITE_NETWORK }} \ | |
--config apps/auto-follow/fly.toml --dockerfile apps/auto-follow/Dockerfile | |
env: | |
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN_AUTOFOLLOW }} | |
deploy_hub: | |
name: Deploy Hub | |
runs-on: ubuntu-latest | |
environment: | |
name: prod-fly-io | |
url: https://testnet.shovel.company/ | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: superfly/flyctl-actions/setup-flyctl@master | |
- name: Deploy Hub | |
run: | | |
flyctl deploy --remote-only --ha=false --config hub/fly.toml --dockerfile hub/Dockerfile | |
env: | |
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN_DCN }} |