Skip to content

updated workflow name #3

updated workflow name

updated workflow name #3

name: Azure Container Apps CI/CD
# When this action will be executed
on:
# Automatically trigger it when detected changes in repo
push:
branches:
[ main ]
paths:
- '**'
- '.github/workflows/dab-aisearch-dab-api-AutoDeployTrigger-1665f6f8-94fb-4b78-a946-353d785a29b5.yml'
# Allow manual trigger
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
permissions:
id-token: write #This is required for requesting the OIDC JWT Token
contents: read #Required when GH token is used to authenticate with private repo
steps:
- name: Checkout to the branch
uses: actions/checkout@v2
- name: Azure Login
uses: azure/login@v2
with:
client-id: ${{ secrets.DABAISEARCHDABAPI_AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.DABAISEARCHDABAPI_AZURE_TENANT_ID }}
subscription-id: ${{ secrets.DABAISEARCHDABAPI_AZURE_SUBSCRIPTION_ID }}
- name: Build and push container image to registry
uses: azure/container-apps-deploy-action@v2
with:
appSourcePath: ${{ github.workspace }}/dab
_dockerfilePathKey_: _dockerfilePath_
_targetLabelKey_: _targetLabel_
registryUrl: acrdabaisearch2025.azurecr.io
registryUsername: ${{ secrets.DABAISEARCHDABAPI_REGISTRY_USERNAME }}
registryPassword: ${{ secrets.DABAISEARCHDABAPI_REGISTRY_PASSWORD }}
containerAppName: dab-aisearch-dab-api
resourceGroup: dm-sql-aisearch
imageToBuild: acrdabaisearch2025.azurecr.io/dab-aisearch-dab-api:${{ github.sha }}
_buildArgumentsKey_: |
_buildArgumentsValues_