Skip to content

Commit

Permalink
on release hook v2
Browse files Browse the repository at this point in the history
  • Loading branch information
jhivandb committed Aug 24, 2022
1 parent 57b0de9 commit 6c1a846
Showing 1 changed file with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,8 @@ name: Trigger auto deployment for identity-check

# When this action will be executed
on:
# Automatically trigger it when detected changes in repo
push:
branches:
[ master ]
paths:
- '**'
- '.github/workflows/identity-check-AutoDeployTrigger-5e970470-1424-4b3d-8af7-3586d57f928b.yml'
release:
types: [published]

# Allow mannually trigger
workflow_dispatch:
Expand All @@ -35,7 +30,7 @@ jobs:
uses: docker/build-push-action@v2
with:
push: true
tags: gramacheckservices.azurecr.io/gramacheck/identity-check:${{ github.sha }}
tags: gramacheckservices.azurecr.io/gramacheck/identity-check:${{ github.event.release.tag_name }}
file: ./Dockerfile
context: ./

Expand All @@ -57,4 +52,4 @@ jobs:
inlineScript: |
az config set extension.use_dynamic_install=yes_without_prompt
az containerapp registry set -n identity-check -g asgardeo-intern-project --server gramacheckservices.azurecr.io --username ${{ secrets.IDENTITYCHECK_REGISTRY_USERNAME }} --password ${{ secrets.IDENTITYCHECK_REGISTRY_PASSWORD }}
az containerapp update -n identity-check -g asgardeo-intern-project --image gramacheckservices.azurecr.io/gramacheck/identity-check:${{ github.sha }}
az containerapp update -n identity-check -g asgardeo-intern-project --image gramacheckservices.azurecr.io/gramacheck/identity-check:${{ github.event.release.tag_name }}

0 comments on commit 6c1a846

Please sign in to comment.