Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ops: promote dev again #3913

Merged
merged 11 commits into from
Sep 12, 2024
86 changes: 0 additions & 86 deletions .github/workflows/deploy-canary-talk.yml

This file was deleted.

90 changes: 46 additions & 44 deletions .github/workflows/deploy-canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ on:
default: staging
push:
branches:
- 'staging'
- "staging"
env:
tag: ${{ github.event.inputs.tag || 'staging' }}
jobs:
build-frontend:
runs-on: ubuntu-latest
name: 'Build Frontend'
name: "Build Frontend"
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -30,15 +30,14 @@ jobs:
- recursive: true
args: [--frozen-lockfile]
- working-directory: ./apps/tlon-web
run:
pnpm build
run: pnpm build
- uses: actions/upload-artifact@v3
with:
name: 'ui-dist'
path: apps/tlon-web/dist
name: "ui-dist"
path: apps/tlon-web/dist
build-new-frontend:
runs-on: ubuntu-latest
name: 'Build New Frontend'
name: "Build New Frontend"
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -53,35 +52,34 @@ jobs:
- recursive: true
args: [--frozen-lockfile]
- working-directory: ./apps/tlon-web-new
run:
pnpm build:alpha
run: pnpm build:alpha
- uses: actions/upload-artifact@v3
with:
name: 'ui-dist-new'
path: apps/tlon-web-new/dist
name: "ui-dist-new"
path: apps/tlon-web-new/dist
glob:
runs-on: ubuntu-latest
name: 'Make a glob'
needs: build-new-frontend
name: "Make a glob"
needs: build-frontend
steps:
- uses: actions/checkout@v3
with:
ref: ${{ env.tag }}
- uses: actions/download-artifact@v3
with:
name: 'ui-dist'
name: "ui-dist"
path: apps/tlon-web/dist
- id: 'auth'
uses: 'google-github-actions/auth@v1'
- id: "auth"
uses: "google-github-actions/auth@v1"
with:
credentials_json: '${{ secrets.GCP_SERVICE_KEY }}'
- name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v1'
- name: 'glob'
credentials_json: "${{ secrets.GCP_SERVICE_KEY }}"
- name: "Set up Cloud SDK"
uses: "google-github-actions/setup-gcloud@v1"
- name: "glob"
uses: ./.github/actions/glob
with:
folder: 'apps/tlon-web/dist/*'
docket: 'desk/desk.docket-0'
folder: "apps/tlon-web/dist/*"
docket: "desk/desk.docket-0"
- name: Commit and Push Glob
run: |
git config --global user.name github-actions
Expand All @@ -94,26 +92,26 @@ jobs:
git push
glob-new:
runs-on: ubuntu-latest
name: 'Make a glob for new frontend'
needs: build-frontend-new
name: "Make a glob for new frontend"
needs: build-new-frontend
steps:
- uses: actions/checkout@v3
with:
ref: ${{ env.tag }}
- uses: actions/download-artifact@v3
with:
name: 'ui-dist-new'
name: "ui-dist-new"
path: apps/tlon-web-new/dist
- id: 'auth'
uses: 'google-github-actions/auth@v1'
- id: "auth"
uses: "google-github-actions/auth@v1"
with:
credentials_json: '${{ secrets.GCP_SERVICE_KEY }}'
- name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v1'
- name: 'glob'
credentials_json: "${{ secrets.GCP_SERVICE_KEY }}"
- name: "Set up Cloud SDK"
uses: "google-github-actions/setup-gcloud@v1"
- name: "glob"
uses: ./.github/actions/glob
with:
folder: 'apps/tlon-web-new/dist/*'
folder: "apps/tlon-web-new/dist/*"
docket: "tm-alpha-desk/desk.docket-0"
- name: Commit and Push Glob
run: |
Expand All @@ -133,16 +131,18 @@ jobs:
- uses: actions/checkout@v3
with:
ref: ${{ env.tag }}
- id: 'auth'
uses: 'google-github-actions/auth@v1'
- id: "auth"
uses: "google-github-actions/auth@v1"
with:
credentials_json: '${{ secrets.GCP_SERVICE_KEY }}'
- name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v1'
credentials_json: "${{ secrets.GCP_SERVICE_KEY }}"
- name: "Set up Cloud SDK"
uses: "google-github-actions/setup-gcloud@v1"
- id: deploy
name: Deploy
run:
./.github/helpers/deploy.sh tloncorp/tlon-apps groups binnec-dozzod-marnus us-central1-a mainnet-tlon-other-2d ${{ env.tag }}
./.github/helpers/deploy.sh tloncorp/tlon-apps groups
binnec-dozzod-marnus us-central1-a mainnet-tlon-other-2d ${{ env.tag
}}
env:
SSH_SEC_KEY: ${{ secrets.GCP_SSH_SEC_KEY }}
SSH_PUB_KEY: ${{ secrets.GCP_SSH_PUB_KEY }}
Expand All @@ -155,16 +155,18 @@ jobs:
- uses: actions/checkout@v3
with:
ref: ${{ env.tag }}
- id: 'auth'
uses: 'google-github-actions/auth@v1'
- id: "auth"
uses: "google-github-actions/auth@v1"
with:
credentials_json: '${{ secrets.GCP_SERVICE_KEY }}'
- name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v1'
credentials_json: "${{ secrets.GCP_SERVICE_KEY }}"
- name: "Set up Cloud SDK"
uses: "google-github-actions/setup-gcloud@v1"
- id: deploy
name: Deploy
run:
./.github/helpers/deploy.sh tloncorp/tlon-apps tm-alpha binnec-dozzod-marnus us-central1-a mainnet-tlon-other-2d ${{ env.tag }}
./.github/helpers/deploy.sh tloncorp/tlon-apps tm-alpha
binnec-dozzod-marnus us-central1-a mainnet-tlon-other-2d ${{ env.tag
}}
env:
SSH_SEC_KEY: ${{ secrets.GCP_SSH_SEC_KEY }}
SSH_PUB_KEY: ${{ secrets.GCP_SSH_PUB_KEY }}
Expand Down
42 changes: 0 additions & 42 deletions .github/workflows/deploy-external-talk.yml

This file was deleted.

28 changes: 0 additions & 28 deletions .github/workflows/deploy-internal-talk.yml

This file was deleted.

28 changes: 0 additions & 28 deletions .github/workflows/deploy-livenet-talk.yml

This file was deleted.

Loading
Loading