-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
44bc67f
commit f9b57e6
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
...iftfiddle-runner-functions-523-AutoDeployTrigger-780f66ff-f348-4be2-8be2-bf1f6ed7c472.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Trigger auto deployment for swiftfiddle-runner-functions-523 | ||
|
||
# When this action will be executed | ||
on: | ||
# Automatically trigger it when detected changes in repo | ||
push: | ||
branches: | ||
[ main ] | ||
paths: | ||
- '**' | ||
- '.github/workflows/swiftfiddle-runner-functions-523-AutoDeployTrigger-780f66ff-f348-4be2-8be2-bf1f6ed7c472.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@v1 | ||
with: | ||
creds: ${{ secrets.SWIFTFIDDLERUNNERFUNCTIONS523_AZURE_CREDENTIALS }} | ||
|
||
- name: Build and push container image to registry | ||
uses: azure/container-apps-deploy-action@v2 | ||
with: | ||
appSourcePath: ${{ github.workspace }} | ||
registryUrl: swiftfiddle.azurecr.io | ||
registryUsername: ${{ secrets.SWIFTFIDDLERUNNERFUNCTIONS523_REGISTRY_USERNAME }} | ||
registryPassword: ${{ secrets.SWIFTFIDDLERUNNERFUNCTIONS523_REGISTRY_PASSWORD }} | ||
containerAppName: swiftfiddle-runner-functions-523 | ||
resourceGroup: swiftfiddle | ||
imageToBuild: swiftfiddle.azurecr.io/swiftfiddle-runner-functions-523:${{ github.sha }} | ||
|
||
|
||
|
||
|
||
|