Skip to content

Commit

Permalink
Merge pull request #3913 from tloncorp/promote-9-12
Browse files Browse the repository at this point in the history
ops: promote dev again
  • Loading branch information
arthyn authored Sep 12, 2024
2 parents 3e6fce1 + 7824bfa commit 061130e
Show file tree
Hide file tree
Showing 13 changed files with 57 additions and 342 deletions.
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

0 comments on commit 061130e

Please sign in to comment.