Skip to content

Build and deploy container app to Azure Web App - ollama-docker #53

Build and deploy container app to Azure Web App - ollama-docker

Build and deploy container app to Azure Web App - ollama-docker #53

# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions
name: Build and deploy container app to Azure Web App - ollama-docker
on:
workflow_dispatch:
workflow_run:
workflows: ["ollama-docker"] # This triggers the deployment after ollama-docker workflow completes
types:
- completed
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: 'production'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
steps:
- name: Deploy to Azure Web App
id: deploy-to-webapp
uses: azure/webapps-deploy@v2
with:
app-name: 'ollama-docker'
slot-name: 'production'
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_08E3A555EDB44342ACE847844A9FBCBF }}
images: 'index.docker.io/${{ secrets.AZUREAPPSERVICE_CONTAINERUSERNAME_4216062F7E1E4503954D1228672732B6 }}/ollama-docker:commit-${{ github.sha }}'