generated from DTS-STN/next-template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge develop to main for latest release (#988)
* collaps result summary in mobile * title language fix * changed date to 1900 to match error message * Checking in tests * force white background on select * check benefit exists * just to check deployment * update title * final test fixes. * update * change reference to ALWS * change year to 1899 * initial commit * Update build-and-push-dev.yml * Update build-and-push-prod.yml * Update build-and-push-dev.yml * Update build-and-push-prod.yml * fixing trigger and cleanup * fix:updated rates for Q1 2024 * updated links and border color on focus * fix:updated rates for Q1 2024 * fix: removed excess packages * Adding pipeline secrets * Use fieldDefinition instead of categoryMapping * Adding values for variables, removing unused secrets * ADO 134595: Refactor benefitHandler (#960) * Undoing previous commit, cleaning up the variable names * Using a new service principal * July 2013 OAS deferral (#945) Co-authored-by: VeroBr0~ <[email protected]> Co-authored-by: Veronique B <[email protected]> * updated link anchor for footer * update width * update * Adding the NEXT_AUTH_SECRET variable * Adding the EXPOSE instruction for the proper port of this app * Revert "Q124 rate update" * removing an underscore (#971) * Pipeline underscore (#972) * removing an underscore * testing new home var * Pipeline underscore2 (#974) testing new home var * Fix 143948 * fix for failing tests * Pipeline updates (#977) * Updating pipelines * Updating pipelines * Pipeline underscore (#973) * removing an underscore * testing new home var * testing new home var * clarify comment * Pipeline updates (#978) * Updating pipelines * Updating pipelines * Fixing a docker tag problem --------- Co-authored-by: Jeremy Kennedy <[email protected]> Co-authored-by: Marco <[email protected]> * added condition for partner legal status * updated dev yml * hotfix typo * Remove leading space in message, fix for 40 years not displaying * added params to current result benefit handler * super hotfix * Merge main (#989) * Updating pipelines * Fixing pipeline files * merge main --------- Co-authored-by: shawn320 <[email protected]> Co-authored-by: MarcoGoC <[email protected]> Co-authored-by: Maxim Lam <[email protected]> Co-authored-by: Marco <[email protected]> Co-authored-by: Adam <[email protected]> Co-authored-by: Maxim Lam <[email protected]> Co-authored-by: Adam Andrews <[email protected]> Co-authored-by: “Patrick“ <[email protected]> Co-authored-by: VeroBr0~ <[email protected]> Co-authored-by: Veronique B <[email protected]> Co-authored-by: Jeremy Kennedy <[email protected]>
- Loading branch information
1 parent
7d98631
commit cd2284e
Showing
47 changed files
with
2,070 additions
and
726 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,98 @@ | ||
trigger: | ||
- none | ||
|
||
pr: develop | ||
|
||
variables: | ||
azure.servicePrincipal: '' | ||
webapp.name: '' | ||
webapp.resourceGroup: '' | ||
webapp.slotName: null | ||
azureContainerRegistry.name: '' | ||
azureContainerRegistry.repository: '' | ||
azureContainerRegistry.domain: '' | ||
azureContainerRegistry.tag: '' | ||
System.Debug: false | ||
|
||
steps: | ||
- task: Docker@2 | ||
inputs: | ||
containerRegistry: '$(azureContainerRegistry.name)' | ||
repository: '$(azureContainerRegistry.repository)' | ||
command: 'login' | ||
- script: 'docker pull $(azureContainerRegistry.domain)/$(azureContainerRegistry.repository):latest' | ||
displayName: Pull latest for layer caching | ||
continueOnError: true | ||
|
||
- task: Docker@2 | ||
displayName: 'Build image' | ||
inputs: | ||
containerRegistry: '$(azureContainerRegistry.name)' | ||
repository: '$(azureContainerRegistry.repository)' | ||
command: 'build' | ||
Dockerfile: '**/Dockerfile' | ||
tags: | | ||
$(azureContainerRegistry.tag) | ||
latest | ||
arguments: | | ||
--cache-from $(azureContainerRegistry.domain)/$(azureContainerRegistry.repository):latest | ||
- task: Docker@2 | ||
displayName: 'Push image' | ||
inputs: | ||
containerRegistry: '$(azureContainerRegistry.name)' | ||
repository: '$(azureContainerRegistry.repository)' | ||
command: 'push' | ||
tags: | | ||
$(azureContainerRegistry.tag) | ||
latest | ||
- task: PowerShell@2 | ||
displayName: 'Decide which AppService slot to put this preview in' | ||
inputs: | ||
targetType: 'inline' | ||
script: | | ||
[int] $slotNumber = $(System.PullRequest.PullRequestId) % 4 | ||
Write-Host "Generated slot number:" | ||
Write-Host "$slotNumber" | ||
Write-Host "From PRID" | ||
Write-Host "$(System.PullRequest.PullRequestId)" | ||
Write-Host "##vso[task.setvariable variable=webapp.slotName]$slotNumber" | ||
- task: AzureCLI@2 | ||
displayName: 'Create new slot in App Service' | ||
inputs: | ||
azureSubscription: $(azure.servicePrincipal) | ||
scriptType: 'bash' | ||
scriptLocation: 'inlineScript' | ||
inlineScript: | | ||
az webapp deployment slot create \ | ||
--name $(webapp.name) \ | ||
--resource-group $(webapp.resourceGroup) \ | ||
--slot pr-preview-$(webapp.slotName) \ | ||
--configuration-source $(webapp.name) | ||
az webapp identity assign \ | ||
-g $(webapp.resourceGroup) \ | ||
-n $(webapp.name) \ | ||
--slot pr-preview-$(webapp.slotName) \ | ||
--identities /subscriptions/400c5730-25f5-4ee6-a933-8b289b9ccb0d/resourcegroups/rg-dts-id-shared/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id-SCLabs-Shared | ||
- task: AzureCLI@2 | ||
displayName: 'Deploy pr image to new slot' | ||
inputs: | ||
azureSubscription: $(azure.servicePrincipal) | ||
scriptType: 'bash' | ||
scriptLocation: 'inlineScript' | ||
inlineScript: | | ||
az webapp config container set \ | ||
--docker-custom-image-name $(azureContainerRegistry.domain)/$(azureContainerRegistry.repository):$(azureContainerRegistry.tag) \ | ||
--name $(webapp.name) \ | ||
--slot pr-preview-$(webapp.slotName) \ | ||
--resource-group $(webapp.resourceGroup) | ||
- task: GitHubComment@0 | ||
displayName: 'Post a comment with a link to the new PR preview' | ||
inputs: | ||
gitHubConnection: "Adam'sGitHub-9/15/2023" | ||
repositoryName: '$(Build.Repository.Name)' | ||
comment: 'Check out a preview of your pull request here: https://$(webapp.name)-pr-preview-$(webapp.slotName).azurewebsites.net' |
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
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
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.