Skip to content

Commit 785b101

Browse files
Create an auto-deploy file
1 parent ece8c0e commit 785b101

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Trigger auto deployment for swiftfiddle-runner-functions-603
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-603-AutoDeployTrigger-197eaa39-f796-4928-82b2-63eaf4921b54.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@v1
26+
with:
27+
creds: ${{ secrets.SWIFTFIDDLERUNNERFUNCTIONS603_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+
registryUrl: docker.io
35+
registryUsername: ${{ secrets.SWIFTFIDDLERUNNERFUNCTIONS603_REGISTRY_USERNAME }}
36+
registryPassword: ${{ secrets.SWIFTFIDDLERUNNERFUNCTIONS603_REGISTRY_PASSWORD }}
37+
containerAppName: swiftfiddle-runner-functions-603
38+
resourceGroup: swiftfiddle
39+
imageToBuild: kishikawakatsumi/swiftfiddle-runner-functions-603:${{ github.sha }}
40+
41+
42+
43+
44+

0 commit comments

Comments
 (0)