Skip to content

Commit 5a7d00f

Browse files
Create an auto-deploy file
1 parent 0a14e3c commit 5a7d00f

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Trigger auto deployment for ragpgpy1-rn5pyrt7ct-ca
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/ragpgpy1-rn5pyrt7ct-ca-AutoDeployTrigger-470b45d2-75dc-4f4f-bf14-dde901b82711.yml'
12+
13+
# Allow manual trigger
14+
workflow_dispatch:
15+
16+
jobs:
17+
build-and-deploy:
18+
runs-on: ubuntu-latest
19+
permissions:
20+
id-token: write #This is required for requesting the OIDC JWT Token
21+
contents: read #Required when GH token is used to authenticate with private repo
22+
23+
steps:
24+
- name: Checkout to the branch
25+
uses: actions/checkout@v2
26+
27+
- name: Azure Login
28+
uses: azure/login@v1
29+
with:
30+
client-id: ${{ secrets.RAGPGPY1RN5PYRT7CTCA_AZURE_CLIENT_ID }}
31+
tenant-id: ${{ secrets.RAGPGPY1RN5PYRT7CTCA_AZURE_TENANT_ID }}
32+
subscription-id: ${{ secrets.RAGPGPY1RN5PYRT7CTCA_AZURE_SUBSCRIPTION_ID }}
33+
34+
- name: Build and push container image to registry
35+
uses: azure/container-apps-deploy-action@v2
36+
with:
37+
appSourcePath: ${{ github.workspace }}
38+
_dockerfilePathKey_: _dockerfilePath_
39+
registryUrl: ragpgpy1rn5pyrt7ctpmaregistry.azurecr.io
40+
registryUsername: ${{ secrets.RAGPGPY1RN5PYRT7CTCA_REGISTRY_USERNAME }}
41+
registryPassword: ${{ secrets.RAGPGPY1RN5PYRT7CTCA_REGISTRY_PASSWORD }}
42+
containerAppName: ragpgpy1-rn5pyrt7ct-ca
43+
resourceGroup: ResourceGroup1
44+
imageToBuild: ragpgpy1rn5pyrt7ctpmaregistry.azurecr.io/ragpgpy1-rn5pyrt7ct-ca:${{ github.sha }}
45+
_buildArgumentsKey_: |
46+
_buildArgumentsValues_
47+
48+

0 commit comments

Comments
 (0)