Create an auto-deploy file
This commit is contained in:
+45
@@ -0,0 +1,45 @@
|
|||||||
|
name: Trigger auto deployment for soc-langgraph
|
||||||
|
|
||||||
|
# When this action will be executed
|
||||||
|
on:
|
||||||
|
# Automatically trigger it when detected changes in repo
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
[ main ]
|
||||||
|
paths:
|
||||||
|
- '**'
|
||||||
|
- '.github/workflows/soc-langgraph-AutoDeployTrigger-8da827fe-9ed7-4486-9cd8-27218fe5d593.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@v2
|
||||||
|
with:
|
||||||
|
creds: ${{ secrets.SOCLANGGRAPH_AZURE_CREDENTIALS }}
|
||||||
|
|
||||||
|
- name: Build and push container image to registry
|
||||||
|
uses: azure/container-apps-deploy-action@v2
|
||||||
|
with:
|
||||||
|
appSourcePath: ${{ github.workspace }}/langgraph
|
||||||
|
_dockerfilePathKey_: _dockerfilePath_
|
||||||
|
_targetLabelKey_: _targetLabel_
|
||||||
|
registryUrl: socsocacr.azurecr.io
|
||||||
|
registryUsername: ${{ secrets.SOCLANGGRAPH_REGISTRY_USERNAME }}
|
||||||
|
registryPassword: ${{ secrets.SOCLANGGRAPH_REGISTRY_PASSWORD }}
|
||||||
|
containerAppName: soc-langgraph
|
||||||
|
resourceGroup: Operation
|
||||||
|
imageToBuild: socsocacr.azurecr.io/soc-langgraph:${{ github.sha }}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user