-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: applications breaking in production (#689)
- Loading branch information
1 parent
4ec9c2f
commit b9e9236
Showing
4 changed files
with
1,315 additions
and
1,019 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Manual deploy fusion app | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
appKey: | ||
type: string | ||
description: Which app to deploy to test | ||
permissions: write-all | ||
jobs: | ||
deploy-manual-fprd: | ||
runs-on: ubuntu-latest | ||
environment: fprd | ||
steps: | ||
- name: 'Login to Azure' | ||
uses: azure/login@v1 | ||
with: | ||
client-id: ${{ secrets.AZURE_PROD_CLIENT_ID }} | ||
tenant-id: ${{ secrets.AZURE_TENANT_ID }} | ||
allow-no-subscriptions: true | ||
|
||
- name: 'Obtain token for upload' | ||
shell: bash | ||
run: echo "FUSION_TOKEN=$(az account get-access-token --resource '${{ secrets.AZURE_RESOURCE_PROD_ID }}' | jq '.accessToken')" >> $GITHUB_ENV | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # Required to fetch range | ||
|
||
- name: Install Dependencies | ||
run: npm i -g pnpm typescript && pnpm i | ||
|
||
- name: Build monorepo | ||
run: npx turbo run build --filter=${{inputs.appKey}} | ||
|
||
- name: 'Deploy affected apps to Fusion FPRD env' | ||
shell: bash | ||
env: | ||
#Runs out of memory when bundling more apps otherwise even though concurrency is 1 | ||
NODE_OPTIONS: '--max_old_space_size=4096' | ||
run: npx turbo run fprd:deploy --filter=${{inputs.appKey}} --concurrency 1 -- --token ${{ env.FUSION_TOKEN }} |
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
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
Oops, something went wrong.