123456789101112131415161718192021222324252627282930313233 |
- name: Deploy app container to Azure
- on:
- push:
- branches: [main, master]
- pull_request:
- branches: [main, master]
- jobs:
- build:
- runs-on: ubuntu-latest
- needs: Build-Docker-Image
- steps:
- - name: "Login via Azure CLI"
- uses: azure/login@v1
- with:
- creds: ${{ secrets.AZURE_CREDENTIALS }}
- - uses: azure/docker-login@v1
- with:
- login-server: ${{env.IMAGE_REGISTRY_URL}}
- username: ${{ github.actor }}
- password: ${{ secrets.GITHUB_TOKEN }}
- - name: Deploy web app container
- uses: azure/webapps-container-deploy@v1
- with:
- app-name: ${{env.AZURE_WEBAPP_NAME}}
- images: ${{env.IMAGE_REGISTRY_URL}}/${{ github.repository }}/${{env.DOCKER_IMAGE_NAME}}:${{ github.sha }}
- - name: Azure logout
- run: |
- az logout
|