-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update template: java-postgresql (#2556)
* Use KeyVault replace of passwordless * add spring-boot-starter-validation to adapt spring-data-jpa * update architecture diagram * fix spell issue * update Github Action * terraform update
- Loading branch information
1 parent
ba94dea
commit c4f9589
Showing
19 changed files
with
145 additions
and
188 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 |
---|---|---|
@@ -1,36 +1,50 @@ | ||
on: | ||
workflow_dispatch: | ||
push: | ||
# Run when commits are pushed to mainline branch (main or master) | ||
# Set this to the mainline branch you are using | ||
branches: | ||
- main | ||
- master | ||
|
||
# GitHub Actions workflow to deploy to Azure using azd | ||
# To configure required secrets for connecting to Azure, simply run `azd pipeline config --auth-type client-credentials` | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: mcr.microsoft.com/azure-dev-cli-apps:latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install azd | ||
uses: Azure/[email protected] | ||
|
||
- name: Install java | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'microsoft' | ||
java-version: '17' | ||
- run: | | ||
chmod +x ${GITHUB_WORKSPACE}/src/api/mvnw | ||
- name: Log in with Azure | ||
run: | | ||
$info = $Env:AZURE_CREDENTIALS | ConvertFrom-Json -AsHashtable; | ||
Write-Host "::add-mask::$($info.clientSecret)" | ||
azd login ` | ||
azd auth login ` | ||
--client-id "$($info.clientId)" ` | ||
--client-secret "$($info.clientSecret)" ` | ||
--tenant-id "$($info.tenantId)" | ||
shell: pwsh | ||
env: | ||
AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS }} | ||
- name: Install PostgreSQL Command Line Tools | ||
run: | | ||
apt-get update | ||
apt-get install --yes --no-install-recommends postgresql-client | ||
- name: Azure Dev Provision | ||
|
||
- name: Enable terraform alpha feature | ||
run: azd config set alpha.terraform on | ||
|
||
- name: Provision Infrastructure | ||
run: azd provision --no-prompt | ||
env: | ||
AZURE_ENV_NAME: ${{ vars.AZURE_ENV_NAME }} | ||
|
@@ -43,9 +57,9 @@ jobs: | |
RS_STORAGE_ACCOUNT: ${{ vars.RS_STORAGE_ACCOUNT }} | ||
RS_CONTAINER_NAME: ${{ vars.RS_CONTAINER_NAME }} | ||
|
||
- name: Azure Dev Deploy | ||
- name: Deploy Application | ||
run: azd deploy --no-prompt | ||
env: | ||
AZURE_ENV_NAME: ${{ vars.AZURE_ENV_NAME }} | ||
AZURE_LOCATION: ${{ vars.AZURE_LOCATION }} | ||
AZURE_SUBSCRIPTION_ID: ${{ vars.AZURE_SUBSCRIPTION_ID }} | ||
AZURE_SUBSCRIPTION_ID: ${{ vars.AZURE_SUBSCRIPTION_ID }} |
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
35 changes: 0 additions & 35 deletions
35
templates/common/infra/terraform/core/security/passwordless/postgresql/passwordless.tf
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
...es/common/infra/terraform/core/security/passwordless/postgresql/passwordless_variables.tf
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
...s/common/infra/terraform/core/security/passwordless/postgresql/scripts/create_ad_user.sql
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
...mmon/infra/terraform/core/security/passwordless/postgresql/scripts/pg-create-aad-role.ps1
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
...ommon/infra/terraform/core/security/passwordless/postgresql/scripts/pg-create-aad-role.sh
This file was deleted.
Oops, something went wrong.
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.