diff --git a/.github/workflow/sandbox.yml b/.github/workflow/sandbox.yml new file mode 100644 index 0000000..d0cafc7 --- /dev/null +++ b/.github/workflow/sandbox.yml @@ -0,0 +1,30 @@ +name: Deploy APIv2 to Sandbox Environment + +on: + push: + branches: + - sandbox + +jobs: + deploy: + runs-on: ubuntu-latest + name: Deploy APIv2 to Sandbox Environment + environment: sandbox + +## declares credentials for Azure Container Registry + steps: + - name: Login to Azure Container Registry + uses: azure/docker-login@v1 + with: + login-server: c19dashacrprod.azurecr.io + username: ${{ secrets.REGISTRY_USERNAME }} + password: ${{ secrets.REGISTRY_PASSWORD }} + + + - name: Deploy Container to Azure App Services + uses: azure/webapps-deploy@v2 + with: + app-name: 'c19dashsbuksfe01apiv2server' + publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }} + images: 'c19dashacrprod.azurecr.io/apiv2server:26909-development' + \ No newline at end of file diff --git a/.gitignore b/.gitignore index c08cfd9..4af853d 100644 --- a/.gitignore +++ b/.gitignore @@ -136,3 +136,5 @@ appsettings.json /data/ **/*.settings.json **/local.settings* +/.vs/slnx.sqlite +/.vs/coronavirus-dashboard-api-v2-server/v16/.suo