-
Notifications
You must be signed in to change notification settings - Fork 14
70 lines (62 loc) · 3.26 KB
/
deploy_client-demo_portal.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
58
59
60
61
62
63
64
65
66
67
68
69
70
# See: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
name: 'Deploy [demo] Interface: Portal'
env:
workingDirectory: interfaces/Portal
permissions:
actions: read
on:
workflow_call:
secrets:
AZURE_STATIC_WEB_APPS_API_TOKEN_AMBITIOUS_WATER_00DCCC603:
required: true
workflow_dispatch:
jobs:
build_and_deploy:
name: Build and Deploy Job
runs-on: ubuntu-latest
environment: 'client-demo'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build Interface
id: build
uses: ./.github/actions/build-interface
with:
interfacePath: ${{ env.workingDirectory }}
envIcon: 'AAABAAEAEBAQAAEABAAoAQAAFgAAACgAAAAQAAAAIAAAAAEABAAAAAAAgAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAFCPkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABERAAAAAAAAEREAAAAAAAAREQAAAAAAABERAAAAABEREREREQAAERERERERAAAREREREREAABEREREREQAAAAAREQAAAAAAABERAAAAAAAAEREAAAAAAAAREQAAAAAAAAAAAAAAAAAAAAAAAAD//wAA//8AAPw/AAD8PwAA/D8AAPw/AADAAwAAwAMAAMADAADAAwAA/D8AAPw/AAD8PwAA/D8AAP//AAD//wAA'
envContentSecurityPolicy: >-
connect-src 'self' https://demo.121.global https://westeurope-5.in.applicationinsights.azure.com https://westeurope.livediagnostics.monitor.azure.com https://login.microsoftonline.com;
form-action https://demo.121.global;
frame-src blob: 'self' https://app.powerbi.com https://login.microsoftonline.com;
frame-ancestors 'self' https://flex.twilio.com;
env:
NG_ENV_NAME: 'Demo'
NG_LOCALES: ${{ vars.NG_LOCALES }}
NG_DEFAULT_LOCALE: ${{ vars.NG_DEFAULT_LOCALE }}
NG_URL_121_SERVICE_API: 'https://demo.121.global/api'
USE_SSO_AZURE_ENTRA: ${{ vars.USE_SSO_AZURE_ENTRA }}
AZURE_ENTRA_CLIENT_ID: ${{ vars.AZURE_ENTRA_CLIENT_ID }}
AZURE_ENTRA_TENANT_ID: ${{ vars.AZURE_ENTRA_TENANT_ID }}
AZURE_ENTRA_URL: ${{ vars.AZURE_ENTRA_URL }}
NG_AI_IKEY: '2aad0652-5b2a-4c01-8533-e1416879c7ac'
NG_AI_ENDPOINT: 'https://westeurope-5.in.applicationinsights.azure.com/'
APPLICATIONINSIGHTS_CONNECTION_STRING: 'InstrumentationKey=2aad0652-5b2a-4c01-8533-e1416879c7ac;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/'
# More information on Static Web App workflow configurations,
# See: https://aka.ms/swaworkflowconfig
- name: Deploy to Azure Static Web App
id: deploy_to_aswa
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_AMBITIOUS_WATER_00DCCC603 }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
action: 'upload'
config_file_location: '${{ env.workingDirectory }}/'
app_location: '${{ env.workingDirectory }}/www'
output_location: ''
skip_app_build: true
skip_api_build: true
- name: Finish
run: |
echo "Build version: ${{ steps.build.outputs.build_version }}" >> $GITHUB_STEP_SUMMARY
echo "Preview: <${{ steps.deploy_to_aswa.outputs.static_web_app_url }}>" >> $GITHUB_STEP_SUMMARY