-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added sandbox.yml to create github actions to deploy the app.
- Loading branch information
1 parent
0e0db8a
commit 5e80919
Showing
2 changed files
with
32 additions
and
0 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,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' | ||
|
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