Skip to content

Create dependabot.yml #2

Create dependabot.yml

Create dependabot.yml #2

name: Trigger auto deployment for conapp-webapp-demo-dev
# When this action will be executed
on:
# Automatically trigger it when detected changes in repo
push:
branches:
[ main ]
paths:
- '**'
- '.github/workflows/conapp-webapp-demo-dev-AutoDeployTrigger-b6815a6b-c92f-42db-90bf-f904b533e7df.yml'
# Allow manual trigger
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout to the branch
uses: actions/checkout@v2
- name: Azure Login
uses: azure/login@v1
with:
creds: ${{ secrets.CONAPPWEBAPPDEMODEV_AZURE_CREDENTIALS }}
- name: Build and push container image to registry
uses: azure/container-apps-deploy-action@v2
with:
appSourcePath: ${{ github.workspace }}
registryUrl: testtd.azurecr.io
registryUsername: ${{ secrets.CONAPPWEBAPPDEMODEV_REGISTRY_USERNAME }}
registryPassword: ${{ secrets.CONAPPWEBAPPDEMODEV_REGISTRY_PASSWORD }}
containerAppName: conapp-webapp-demo-dev
resourceGroup: rg-demo-dev
imageToBuild: testtd.azurecr.io/conapp-webapp-demo-dev:${{ github.sha }}