old workflow
This commit is contained in:
35
.github/workflows/deploy.yml
vendored
35
.github/workflows/deploy.yml
vendored
@@ -1,35 +0,0 @@
|
|||||||
name: test-and-deploy
|
|
||||||
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
workflow_run:
|
|
||||||
workflows: ["ollama-docker"] # This triggers the deployment after ollama-docker workflow completes
|
|
||||||
types:
|
|
||||||
- completed
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
id-token: write
|
|
||||||
contents: read
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
deploy-azure:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: 'Az CLI login'
|
|
||||||
uses: azure/login@v1
|
|
||||||
with:
|
|
||||||
client-id: ${{ secrets.AZURE_CLIENT_ID }}
|
|
||||||
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
|
|
||||||
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
|
|
||||||
|
|
||||||
- name: 'Run Azure CLI commands'
|
|
||||||
run: |
|
|
||||||
az containerapp up \
|
|
||||||
--name my-container-app \
|
|
||||||
--resource-group my-container-apps \
|
|
||||||
--location centralus \
|
|
||||||
--environment 'my-container-apps' \
|
|
||||||
--image ${{ secrets.DOCKER_HUB_USERNAME }}/ollama-docker:latest \ # Ensure this matches your Docker Hub repo
|
|
||||||
--target-port 80 \
|
|
||||||
--ingress external \
|
|
||||||
--query properties.configuration.ingress.fqdn
|
|
||||||
Reference in New Issue
Block a user