-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (52 loc) · 1.64 KB
/
manual-deploy-prod.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Manual deploy fusion app PROD
on:
workflow_dispatch:
inputs:
appKey:
type: choice
description: Which app to deploy to production
options:
- handover
- mechanical-completion
- swcr
- electrical-consumers
- heat-trace
- loop
- pipetest
- punch
- scopechangerequest
- workorder
- '*'
permissions:
actions: read
checks: write
contents: read
deployments: write
id-token: write
statuses: write
jobs:
deploy-manual-fprd:
runs-on: ubuntu-latest
environment: fprd
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # Required to fetch range
- name: Get fusion token
id: 'get-fusion-token'
uses: ./.github/actions/get-fusion-token
with:
client-id: ${{secrets.AZURE_PROD_CLIENT_ID}}
tenant-id: ${{secrets.AZURE_TENANT_ID}}
resource-id: ${{secrets.AZURE_RESOURCE_PROD_ID}}
- name: PNPM setup
uses: ./.github/actions/pnpm-setup
- 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 ${{ steps.get-fusion-token.outputs.token }} --ai '${{secrets.ai}}' --modelViewerConfig '${{vars.modelViewerConfig}}' --sha '${{github.sha}}'