Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(golang): added output variable siteName to be used as appName #20

Merged
merged 1 commit into from
Feb 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Exceptions are acceptable depending on the circumstances (critical bug fixes tha
- added step to create and delete firewall rule to run migrations
- added the missing configuration to Azure DevOps deployment with JS
- added a new step to replace the environment variables contained inside the `yaml` file
- added a script into the Golang `delivery` to get the new `siteName` variable

### Changed

Expand Down
6 changes: 5 additions & 1 deletion azure-devops/golang/stages/40-delivery/arm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,13 @@ stages:
else
echo "No Goose migration files found. Skipping Goose installation and migration."
fi
- script: |
siteName=$(echo $(OUTPUTS.siteName.value) | tr -d '"')
echo "##vso[task.setvariable variable=siteName]$siteName"
displayName: 'Getting siteName Variable'
- task: 'AzureFunctionApp@1'
inputs:
appName: '$(ENVIRONMENT)-fn-$(AZM_FUNCTION_NAME)-$(AZM_LOCATION)'
appName: '$(siteName)'
appType: 'functionAppLinux'
azureSubscription: '$(AZM_SERVICE_CONNECTION)'
package: '$(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip'
Expand Down