-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
91 additions
and
367 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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
on: push | ||
name: Build Application | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
dotnet: ['6.0.x'] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup dotnet | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: ${{ matrix.dotnet }} | ||
|
||
- name: Build solution | ||
run: dotnet build -c Release | ||
|
||
- name: Start mongo-container | ||
run: docker-compose -f "docker-compose.yml" up -d | ||
|
||
- name: Test solution and upload code coverage | ||
run: | | ||
chmod +x test.sh | ||
./test.sh |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
on: | ||
push: | ||
tags: | ||
- '*' | ||
name: Build and deploy | ||
jobs: | ||
build-and-deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Azure Login | ||
uses: azure/login@v1 | ||
with: | ||
creds: ${{ secrets.AZURE_CREDENTIALS }} | ||
allow-no-subscriptions: true | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
|
||
- name: Azure CLI script | ||
uses: azure/CLI@v1 | ||
with: | ||
azcliversion: 2.30.0 | ||
inlineScript: | | ||
export TAG=${{github.ref_name}} | ||
az config set extension.use_dynamic_install=yes_without_prompt | ||
export IOT_HUB_NAME=${{secrets.AZURE_IOT_HUB_NAME}} | ||
export IOT_DEVICE_NAME=${{secrets.AZURE_IOT_DEVICE_NAME}} | ||
export IOT_DEVICE_METHOD_NAME=${{secrets.AZURE_IOT_DEVICE_METHOD_NAME}} | ||
chmod +x ./invoke-deployment.sh | ||
./invoke-deployment.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
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,11 +1,7 @@ | ||
#!/usr/bin/env bash | ||
function authenticate() { | ||
az login --service-principal -u ${SERVICE_PRINCIPAL_USER} -p ${SERVICE_PRINCIPAL_PASSWORD} --tenant ${SERVICE_PRINCIPAL_TENANT} | ||
} | ||
|
||
function invoke() { | ||
az iot hub invoke-device-method -n ${IOT_HUB_NAME} -d ${IOT_DEVICE_NAME} --mn ${IOT_DEVICE_METHOD_NAME} --mp '{ "tag": "'${TRAVIS_TAG}'" }' --to 60 | ||
az iot hub invoke-device-method -n ${IOT_HUB_NAME} -d ${IOT_DEVICE_NAME} --mn ${IOT_DEVICE_METHOD_NAME} --mp '{ "tag": "'${TAG}'" }' --to 60 | ||
} | ||
|
||
authenticate | ||
invoke |
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
28 changes: 0 additions & 28 deletions
28
src/Covid19Api.Mongo.Migrator/Abstractions/DatabaseMigration.cs
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
src/Covid19Api.Mongo.Migrator/Configuration/CountryAggregatesStartConfiguration.cs
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
src/Covid19Api.Mongo.Migrator/Configuration/GlobalAggregatesStartConfiguration.cs
This file was deleted.
Oops, something went wrong.
38 changes: 0 additions & 38 deletions
38
src/Covid19Api.Mongo.Migrator/Covid19Api.Mongo.Migrator.csproj
This file was deleted.
Oops, something went wrong.
52 changes: 0 additions & 52 deletions
52
src/Covid19Api.Mongo.Migrator/Migrations/CountryAggregatesMigration.cs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.