Skip to content

Commit

Permalink
Fix staging web deploy (#7332)
Browse files Browse the repository at this point in the history
  • Loading branch information
sliptype authored Jan 25, 2024
1 parent e19666f commit 0bdf871
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 9 deletions.
1 change: 1 addition & 0 deletions .circleci/src/commands/@web-commands.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ web-deploy-cloudflare:
- run:
name: Move build
command: |
cd packages/web
mv build-<< parameters.build-type >> build
mv build-ssr-<< parameters.build-type >> build-ssr
- run:
Expand Down
8 changes: 4 additions & 4 deletions .circleci/src/jobs/@web-jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ web-deploy-staging-s3:
web-deploy-staging-cloudflare:
working_directory: ~/audius-protocol
docker:
- image: cimg/python:3.7.12-node
- image: cimg/node:18.17
steps:
- web-deploy-cloudflare:
build-type: staging
Expand All @@ -178,7 +178,7 @@ web-deploy-staging-cloudflare:
web-deploy-release-candidate:
working_directory: ~/audius-protocol
docker:
- image: cimg/python:3.7.12-node
- image: cimg/node:18.17
steps:
- web-deploy-cloudflare:
build-type: production
Expand All @@ -189,7 +189,7 @@ web-deploy-release-candidate:
web-deploy-staging-release-candidate:
working_directory: ~/audius-protocol
docker:
- image: cimg/python:3.7.12-node
- image: cimg/node:18.17
steps:
- web-deploy-cloudflare:
build-type: staging
Expand Down Expand Up @@ -226,7 +226,7 @@ web-deploy-production-s3:
web-deploy-production-cloudflare:
working_directory: ~/audius-protocol
docker:
- image: cimg/python:3.7.12-node
- image: cimg/node:18.17
steps:
- web-deploy-cloudflare:
build-type: production
Expand Down
20 changes: 20 additions & 0 deletions .circleci/src/workflows/web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ jobs:
- Vercel
requires:
- web-init

- web-build-ssr-staging:
context:
- Vercel
requires:
- web-init

- web-build-production:
context:
- Vercel
Expand All @@ -36,6 +43,15 @@ jobs:
branches:
only: /(^release.*)$/

- web-build-ssr-production:
context:
- Vercel
requires:
- web-init
filters:
branches:
only: /(^release.*)$/

- web-test-staging:
context: Audius Client
requires:
Expand All @@ -55,6 +71,7 @@ jobs:
- slack-secrets
requires:
- web-build-staging
- web-build-ssr-staging
filters:
branches:
only: /^main$/
Expand All @@ -64,6 +81,7 @@ jobs:
requires:
- web-init
- web-build-production
- web-build-ssr-production
filters:
branches:
only: /(^release.*)$/
Expand All @@ -73,6 +91,7 @@ jobs:
requires:
- web-init
- web-build-staging
- web-build-ssr-staging
filters:
branches:
only: /(^release.*)$/
Expand All @@ -82,6 +101,7 @@ jobs:
type: approval
requires:
- web-build-production
- web-build-ssr-production
filters:
branches:
only: /(^release.*)$/
Expand Down
6 changes: 1 addition & 5 deletions packages/web/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
"extends": ["//"],
"pipeline": {
"build": {
"outputs": [
"build-development/**",
"build-staging/**",
"build-production/**"
],
"outputs": ["build/**", "build-ssr/**"],
"dependsOn": ["^build"],
"outputMode": "new-only"
},
Expand Down

0 comments on commit 0bdf871

Please sign in to comment.