CS553_CaseStudy1 / .github /workflows /deploy_azure.yaml
smdbs
fix: add environment variable to deploy_azure workflow
ad6b2f8
Raw History Blame Contribute Delete
944 Bytes
name: deploy_azure
on:
workflow_run:
workflows:
- docker_build_and_push
types:
- completed
# to run this workflow manually from the Actions tab
workflow_dispatch:
permissions:
id-token: write
contents: read
jobs:
deploy:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Azure login
uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
- name: Deploy to Azure
uses: azure/container-apps-deploy-action@v2
with:
containerAppName: cs553
resourceGroup: NetworkWatcherRG
registryUrl: docker.io
imageToDeploy: smdbs/cs553:cs4
targetPort: 7860
environmentVariables: HF_TOKEN=${{ secrets.HF_INF_TOKEN }}