File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Trigger auto deployment for addressdata-app
2+
3+ # When this action will be executed
4+ on :
5+ # Automatically trigger it when detected changes in repo
6+ push :
7+ branches :
8+ [ main ]
9+ paths :
10+ - ' **'
11+ - ' .github/workflows/addressdata-app-AutoDeployTrigger-97565f4e-b488-43b4-bd79-af6dc76a766b.yml'
12+
13+ # Allow manual trigger
14+ workflow_dispatch :
15+
16+ jobs :
17+ build-and-deploy :
18+ runs-on : ubuntu-latest
19+
20+ steps :
21+ - name : Checkout to the branch
22+ uses : actions/checkout@v2
23+
24+ - name : Azure Login
25+ uses : azure/login@v2
26+ with :
27+ creds : ${{ secrets.ADDRESSDATAAPP_AZURE_CREDENTIALS }}
28+
29+ - name : Build and push container image to registry
30+ uses : azure/container-apps-deploy-action@v2
31+ with :
32+ appSourcePath : ${{ github.workspace }}/src
33+ _dockerfilePathKey_ : _dockerfilePath_
34+ _targetLabelKey_ : _targetLabel_
35+ registryUrl : containerplace.azurecr.io
36+ registryUsername : ${{ secrets.ADDRESSDATAAPP_REGISTRY_USERNAME }}
37+ registryPassword : ${{ secrets.ADDRESSDATAAPP_REGISTRY_PASSWORD }}
38+ containerAppName : addressdata-app
39+ resourceGroup : addressdata-rg
40+ imageToBuild : containerplace.azurecr.io/addressdata-app:${{ github.sha }}
41+
42+
43+
44+
45+
You can’t perform that action at this time.
0 commit comments