Skip to content

Commit

Permalink
ci: add prerelease docker build workflow (#73)
Browse files Browse the repository at this point in the history
* ci: add prerelease docker build workflow

* ci(fix): add gh release publish job

* ci(fix): az acr release syntax error

* ci(fix): add permission scopes
  • Loading branch information
andhreljaKern authored Sep 6, 2024
1 parent 5f40e1f commit ac78127
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions .github/workflows/az_acr_release.yml
Original file line number Diff line number Diff line change
@@ -2,12 +2,34 @@ name: 'ACR: Docker Release Images'

on:
workflow_dispatch:


release:
types: [prereleased]
push:
branches:
- "dev"


permissions:
id-token: write
contents: read
actions: read

jobs:
call-gh-validate-release:
if: github.event_name == 'release'
uses: code-kern-ai/cicd-deployment-scripts/.github/workflows/gh_validate_release.yml@dev
secrets: inherit

call-az-acr-release:
needs: [call-gh-validate-release]
if: always() && !failure()
uses: code-kern-ai/cicd-deployment-scripts/.github/workflows/az_acr_release.yml@dev
secrets: inherit
secrets: inherit

call-gh-release:
needs: [call-az-acr-release]
if: github.event_name == 'release' && !failure()
uses: code-kern-ai/cicd-deployment-scripts/.github/workflows/gh_release.yml@dev
secrets: inherit
with:
deployment_status: "success"

0 comments on commit ac78127

Please sign in to comment.