Remove federated type #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Docker Image to Azure Function | |
on: | |
push: | |
paths: | |
- '021-GithubActionDockerImageFunctionCD/**' | |
workflow_dispatch: # Allows manual triggering of the workflow | |
permissions: | |
id-token: write | |
contents: read | |
jobs: | |
deploy: | |
name: Deploy to Azure Function | |
runs-on: ubuntu-latest | |
steps: | |
# Step 1: Log in to Azure | |
- name: Log in to Azure | |
uses: azure/login@v2 | |
with: | |
client-id: ${{ secrets.AZURE_CLIENT_ID }} | |
tenant-id: ${{ secrets.AZURE_TENANT_ID }} | |
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} | |
# Step 2: Deploy the Docker image to Azure Function | |
- name: Deploy to Azure Function | |
run: | | |
az functionapp config container set \ | |
--name ${{ vars.FUNCTION_APP_NAME }} \ | |
--resource-group ${{ vars.RESOURCE_GROUP_NAME }} \ | |
--docker-custom-image-name ${{ vars.IMAGE_NAME }}:${{ vars.IMAGE_TAG }} |