Skip to content

Commit 440a309

Browse files
ci: add prerelease docker build workflow (#69)
* 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
1 parent 83a6100 commit 440a309

File tree

1 file changed

+25
-3
lines changed

1 file changed

+25
-3
lines changed

.github/workflows/az_acr_release.yml

+25-3
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,34 @@ name: 'ACR: Docker Release Images'
22

33
on:
44
workflow_dispatch:
5-
5+
6+
release:
7+
types: [prereleased]
68
push:
79
branches:
810
- "dev"
9-
11+
12+
permissions:
13+
id-token: write
14+
contents: read
15+
actions: read
16+
1017
jobs:
18+
call-gh-validate-release:
19+
if: github.event_name == 'release'
20+
uses: code-kern-ai/cicd-deployment-scripts/.github/workflows/gh_validate_release.yml@dev
21+
secrets: inherit
22+
1123
call-az-acr-release:
24+
needs: [call-gh-validate-release]
25+
if: always() && !failure()
1226
uses: code-kern-ai/cicd-deployment-scripts/.github/workflows/az_acr_release.yml@dev
13-
secrets: inherit
27+
secrets: inherit
28+
29+
call-gh-release:
30+
needs: [call-az-acr-release]
31+
if: github.event_name == 'release' && !failure()
32+
uses: code-kern-ai/cicd-deployment-scripts/.github/workflows/gh_release.yml@dev
33+
secrets: inherit
34+
with:
35+
deployment_status: "success"

0 commit comments

Comments
 (0)