Skip to content

Commit c5c1aac

Browse files
Create an auto-deploy file
1 parent 9492c24 commit c5c1aac

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Trigger auto deployment for swiftfiddle-runner-functions-61
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/swiftfiddle-runner-functions-61-AutoDeployTrigger-634f05a9-2cb9-413a-8f81-5805d650f15a.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.SWIFTFIDDLERUNNERFUNCTIONS61_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 }}
33+
_dockerfilePathKey_: _dockerfilePath_
34+
_targetLabelKey_: _targetLabel_
35+
registryUrl: docker.io
36+
registryUsername: ${{ secrets.SWIFTFIDDLERUNNERFUNCTIONS61_REGISTRY_USERNAME }}
37+
registryPassword: ${{ secrets.SWIFTFIDDLERUNNERFUNCTIONS61_REGISTRY_PASSWORD }}
38+
containerAppName: swiftfiddle-runner-functions-61
39+
resourceGroup: swiftfiddle
40+
imageToBuild: kishikawakatsumi/swiftfiddle-runner-functions-61:${{ github.sha }}
41+
42+
43+
44+
45+

0 commit comments

Comments
 (0)