Skip to content

Commit

Permalink
added sandbox.yml to create github actions to deploy the app.
Browse files Browse the repository at this point in the history
  • Loading branch information
adebayoolabintan committed Sep 23, 2022
1 parent 0e0db8a commit 5e80919
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflow/sandbox.yml
Original file line number Diff line number Diff line change
@@ -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'

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -136,3 +136,5 @@ appsettings.json
/data/
**/*.settings.json
**/local.settings*
/.vs/slnx.sqlite
/.vs/coronavirus-dashboard-api-v2-server/v16/.suo

0 comments on commit 5e80919

Please sign in to comment.