forked from mavilleg/azurecontainerapps-helloworld
-
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
97c58d9
commit 5d359c5
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
...hub/workflows/sk-container-app-AutoDeployTrigger-b566ba3d-0a1d-46d7-a604-9b86c0137fa1.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 sk-container-app | ||
|
||
# When this action will be executed | ||
on: | ||
# Automatically trigger it when detected changes in repo | ||
push: | ||
branches: | ||
[ main ] | ||
paths: | ||
- '**' | ||
- '.github/workflows/sk-container-app-AutoDeployTrigger-b566ba3d-0a1d-46d7-a604-9b86c0137fa1.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.SKCONTAINERAPP_AZURE_CREDENTIALS }} | ||
|
||
- name: Build and push container image to registry | ||
uses: azure/container-apps-deploy-action@v2 | ||
with: | ||
appSourcePath: ${{ github.workspace }} | ||
registryUrl: skacaregistry.azurecr.io | ||
registryUsername: ${{ secrets.SKCONTAINERAPP_REGISTRY_USERNAME }} | ||
registryPassword: ${{ secrets.SKCONTAINERAPP_REGISTRY_PASSWORD }} | ||
containerAppName: sk-container-app | ||
resourceGroup: rg-dev-ACA-sk | ||
imageToBuild: skacaregistry.azurecr.io/sk-container-app:${{ github.sha }} | ||
|
||
|
||
|
||
|
||
|