Skip to content

Commit

Permalink
Added azure_webapp.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mbuchoff committed Sep 9, 2023
1 parent 42fde60 commit 6890038
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/azure_webapp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Linux Container Node Workflow

on: [push]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: azure/docker-login@v1
with:
login-server: mycontainer.azurecr.io
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- run: |
docker build . -t mycontainer.azurecr.io/myapp:${{ github.sha }}
docker push mycontainer.azurecr.io/myapp:${{ github.sha }}
- uses: azure/webapps-deploy@v2
with:
app-name: 'myapp'
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
images: 'mycontainer.azurecr.io/myapp:${{ github.sha }}'

0 comments on commit 6890038

Please sign in to comment.