Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
fix azure pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
dj-nitehawk committed Jul 20, 2021
1 parent 50c7eda commit 5f24715
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ variables:

steps:
- script: |
wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo apt-key add -
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0.list
sudo apt-get update
sudo apt-get install -y mongodb-org
mkdir $(System.DefaultWorkingDirectory)/mongodb
mkdir $(System.DefaultWorkingDirectory)/mongodb/log
mongod --fork --replSet 'MyRep' --dbpath $(System.DefaultWorkingDirectory)/mongodb --logpath $(System.DefaultWorkingDirectory)/mongodb/log/mongod.log
mongosh --eval "rs.initiate()"
workingDirectory: '$(System.DefaultWorkingDirectory)'
displayName: 'Install MongoDB'
wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo apt-key add -
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0.list
sudo apt-get update
sudo apt-get install -y mongodb-org
mkdir $(System.DefaultWorkingDirectory)/mongodb
mkdir $(System.DefaultWorkingDirectory)/mongodb/log
mongod --fork --replSet 'MyRep' --dbpath $(System.DefaultWorkingDirectory)/mongodb --logpath $(System.DefaultWorkingDirectory)/mongodb/log/mongod.log
mongosh --eval "rs.initiate()"
workingDirectory: '$(System.DefaultWorkingDirectory)'
displayName: 'Install MongoDB'

- task: UseDotNet@2
displayName: 'Use .Net Core SDK 5.x'
Expand Down

0 comments on commit 5f24715

Please sign in to comment.