Skip to content

Commit

Permalink
Move database password inside a group variable and store it as a secret
Browse files Browse the repository at this point in the history
  • Loading branch information
satrapu committed Dec 26, 2019
1 parent 364455e commit 65f8f8d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Build/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ variables:
# Be sure to link this group to this pipeline by selecting the latter -> Edit -> Variables -> Variable Groups!
- group: 'SonarQube'

# Load group containing variables applicable to integration tests.
# This group contains the password to be used when accessing the dockerized database targeted by the integration tests.
# This password is stored as a secret under the name "IntegrationTests.Database.Todo.Password".
- group: 'IntegrationTests'

# Specifies the version of the .NET Core SDK to install and use when running this pipeline.
# All releases can be found here: https://dotnet.microsoft.com/download/dotnet-core.
- name: 'DotNetCore_SDK_Version'
Expand Down Expand Up @@ -79,10 +84,6 @@ variables:
- name: 'IntegrationTests.Database.Todo.Username'
value: 'satrapu'

# Represents the password used for accessing the database to be targeted by integration tests
- name: 'IntegrationTests.Database.Todo.Password'
value: 'eS5Sde7cB7MpTvS6V6Tv52HEvX9xtrbb'

# Define multiple jobs, one per supported operating system (Linux, macOS and Windows).
# See more here: https://docs.microsoft.com/en-us/azure/devops/pipelines/process/multiple-phases?tabs=yaml&view=azure-devops.
#
Expand Down

0 comments on commit 65f8f8d

Please sign in to comment.