old workflow

This commit is contained in:
Gormery Kombo Wanjiru
2024-02-27 22:08:36 +01:00
parent 9fe2308217
commit 5556b80994

View File

@@ -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