-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a453b62
commit 50a8daa
Showing
5 changed files
with
189 additions
and
0 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,50 @@ | ||
# Node.js with Angular | ||
# Build a Node.js project that uses Angular. | ||
# Add steps that analyze code, save build artifacts, deploy, and more: | ||
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript | ||
|
||
trigger: | ||
- stage | ||
|
||
pool: | ||
vmImage: ubuntu-latest | ||
|
||
steps: | ||
- task: NodeTool@0 | ||
inputs: | ||
versionSpec: '18.x' | ||
displayName: 'Install Node.js' | ||
|
||
- script: | | ||
npm install | ||
npx nx run front-office:build:azure-sit | ||
npx nx run back-office:build:azure-sit | ||
displayName: 'npm install and build the apps' | ||
|
||
- task: ArchiveFiles@2 | ||
inputs: | ||
rootFolderOrFile: '$(System.DefaultWorkingDirectory)/dist/apps/front-office' | ||
includeRootFolder: false | ||
archiveType: 'zip' | ||
archiveFile: '$(Build.ArtifactStagingDirectory)/sit/front-office/$(Build.BuildId).zip' | ||
replaceExistingArchive: true | ||
|
||
- task: ArchiveFiles@2 | ||
inputs: | ||
rootFolderOrFile: '$(System.DefaultWorkingDirectory)/dist/apps/back-office' | ||
includeRootFolder: false | ||
archiveType: 'zip' | ||
archiveFile: '$(Build.ArtifactStagingDirectory)/sit/back-office/$(Build.BuildId).zip' | ||
replaceExistingArchive: true | ||
|
||
- task: PublishBuildArtifacts@1 | ||
inputs: | ||
PathtoPublish: '$(Build.ArtifactStagingDirectory)/sit/front-office/$(Build.BuildId).zip' | ||
ArtifactName: 'sit-front-office' | ||
publishLocation: 'Container' | ||
|
||
- task: PublishBuildArtifacts@1 | ||
inputs: | ||
PathtoPublish: '$(Build.ArtifactStagingDirectory)/sit/back-office/$(Build.BuildId).zip' | ||
ArtifactName: 'sit-back-office' | ||
publishLocation: 'Container' |
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
52 changes: 52 additions & 0 deletions
52
apps/back-office/src/environments/environment.azure.sit.ts
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,52 @@ | ||
import { AuthConfig } from 'angular-oauth2-oidc'; | ||
import { theme } from '../themes/default/default.uat'; | ||
import { sharedEnvironment } from './environment.shared'; | ||
import { Environment } from './environment.type'; | ||
|
||
/** | ||
* Authentification configuration | ||
*/ | ||
const authConfig: AuthConfig = { | ||
issuer: | ||
'https://login.microsoftonline.com/f610c0b7-bd24-4b39-810b-3dc280afb590/v2.0', | ||
redirectUri: 'https://ems-safe-sit.who.int/backoffice/', | ||
postLogoutRedirectUri: 'https://ems-safe-sit.who.int/backoffice/auth', | ||
clientId: '021202ac-d23b-4757-83e3-f6ecde12266b', | ||
scope: 'openid profile email offline_access', | ||
responseType: 'code', | ||
showDebugInformation: true, | ||
strictDiscoveryDocumentValidation: false, | ||
}; | ||
|
||
/** | ||
* Environment file for local development. | ||
*/ | ||
export const environment: Environment = { | ||
...sharedEnvironment, | ||
production: true, | ||
apiUrl: 'https://ems-safe-sit.who.int/api', | ||
subscriptionApiUrl: 'wss://ems-safe-sit.who.int/api', | ||
frontOfficeUri: 'https://ems-safe-sit.who.int/', | ||
backOfficeUri: 'https://ems-safe-sit.who.int/backoffice/', | ||
module: 'backoffice', | ||
availableLanguages: ['en'], | ||
authConfig, | ||
esriApiKey: | ||
'AAPKf2bae9b3f32943e2a8d58b0b96ffea3fj8Vt8JYDt1omhzN_lONXPRHN8B89umU-pA9t7ze1rfCIiiEVXizYEiFRFiVrl6wg', | ||
theme, | ||
availableWidgets: [ | ||
'donut-chart', | ||
'line-chart', | ||
'bar-chart', | ||
'column-chart', | ||
'pie-chart', | ||
'grid', | ||
'text', | ||
'summaryCard', | ||
], | ||
sentry: { | ||
environment: 'testing', | ||
dns: 'https://da63b46285f94315b2d6f8e9c69d7c8c@o4505563078918144.ingest.sentry.io/4505563106312192', | ||
tracePropagationTargets: ['ems-safe-test.who.int'], | ||
}, | ||
}; |
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
37 changes: 37 additions & 0 deletions
37
apps/front-office/src/environments/environment.azure.sit.ts
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,37 @@ | ||
import { AuthConfig } from 'angular-oauth2-oidc'; | ||
import { theme } from '../themes/default/default.uat'; | ||
import { sharedEnvironment } from './environment.shared'; | ||
import { Environment } from './environment.type'; | ||
|
||
/** Authentication configuration of the module. */ | ||
const authConfig: AuthConfig = { | ||
issuer: | ||
'https://login.microsoftonline.com/f610c0b7-bd24-4b39-810b-3dc280afb590/v2.0', | ||
redirectUri: 'https://ems-safe-sit.who.int/', | ||
postLogoutRedirectUri: 'https://ems-safe-sit.who.int/auth', | ||
clientId: '021202ac-d23b-4757-83e3-f6ecde12266b', | ||
scope: 'openid profile email offline_access', | ||
responseType: 'code', | ||
showDebugInformation: true, | ||
strictDiscoveryDocumentValidation: false, | ||
}; | ||
|
||
/** Environment configuration */ | ||
export const environment: Environment = { | ||
...sharedEnvironment, | ||
production: true, | ||
apiUrl: 'https://ems-safe-sit.who.int/api', | ||
subscriptionApiUrl: 'wss://ems-safe-sit.who.int/api', | ||
frontOfficeUri: 'https://ems-safe-sit.who.int/', | ||
backOfficeUri: 'https://ems-safe-sit.who.int/backoffice/', | ||
availableLanguages: ['en'], | ||
authConfig, | ||
esriApiKey: | ||
'AAPKf2bae9b3f32943e2a8d58b0b96ffea3fj8Vt8JYDt1omhzN_lONXPRHN8B89umU-pA9t7ze1rfCIiiEVXizYEiFRFiVrl6wg', | ||
theme, | ||
sentry: { | ||
environment: 'testing', | ||
dns: 'https://da63b46285f94315b2d6f8e9c69d7c8c@o4505563078918144.ingest.sentry.io/4505563106312192', | ||
tracePropagationTargets: ['ems-safe-test.who.int'], | ||
}, | ||
}; |