Spaces:
Build error
Build error
Download .github/workflows/deploy_azure.yaml from smdbs/CS553_CaseStudy1: direct link, hf CLI and curl.
- Browser
- Download file 944 Bytes
-
https://huggingface.co/spaces/smdbs/CS553_CaseStudy1/resolve/main/.github/workflows/deploy_azure.yaml
- Command line
-
hf download hf://spaces/smdbs/CS553_CaseStudy1/.github/workflows/deploy_azure.yaml
-
curl -L -o deploy_azure.yaml https://huggingface.co/spaces/smdbs/CS553_CaseStudy1/resolve/main/.github/workflows/deploy_azure.yaml
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 }} |