workflows 597 B

123456789101112131415161718192021222324
  1. name: Deploy app container to Azure
  2. runs-on: ubuntu-latest
  3. needs: Build-Docker-Image
  4. steps:
  5. - name: "Login via Azure CLI"
  6. uses: azure/login@v1
  7. with:
  8. creds: ${{ secrets.AZURE_CREDENTIALS }}
  9. - uses: azure/docker-login@v1
  10. with:
  11. login-server: ${{env.IMAGE_REGISTRY_URL}}
  12. username: ${{ github.actor }}
  13. password: ${{ secrets.GITHUB_TOKEN }}
  14. - name: Deploy web app container
  15. uses: azure/webapps-container-deploy@v1
  16. with:
  17. app-name: ${{env.AZURE_WEBAPP_NAME}}
  18. images: ${{env.IMAGE_REGISTRY_URL}}/${{ github.repository }}/${{env.DOCKER_IMAGE_NAME}}:${{ github.sha }}
  19. - name: Azure logout
  20. run: |
  21. az logout