Skip to content

Commit 65f8f8d

Browse files
committed
Move database password inside a group variable and store it as a secret
1 parent 364455e commit 65f8f8d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Build/azure-pipelines.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ variables:
3636
# Be sure to link this group to this pipeline by selecting the latter -> Edit -> Variables -> Variable Groups!
3737
- group: 'SonarQube'
3838

39+
# Load group containing variables applicable to integration tests.
40+
# This group contains the password to be used when accessing the dockerized database targeted by the integration tests.
41+
# This password is stored as a secret under the name "IntegrationTests.Database.Todo.Password".
42+
- group: 'IntegrationTests'
43+
3944
# Specifies the version of the .NET Core SDK to install and use when running this pipeline.
4045
# All releases can be found here: https://dotnet.microsoft.com/download/dotnet-core.
4146
- name: 'DotNetCore_SDK_Version'
@@ -79,10 +84,6 @@ variables:
7984
- name: 'IntegrationTests.Database.Todo.Username'
8085
value: 'satrapu'
8186

82-
# Represents the password used for accessing the database to be targeted by integration tests
83-
- name: 'IntegrationTests.Database.Todo.Password'
84-
value: 'eS5Sde7cB7MpTvS6V6Tv52HEvX9xtrbb'
85-
8687
# Define multiple jobs, one per supported operating system (Linux, macOS and Windows).
8788
# See more here: https://docs.microsoft.com/en-us/azure/devops/pipelines/process/multiple-phases?tabs=yaml&view=azure-devops.
8889
#

0 commit comments

Comments
 (0)