Skip to content

Commit 3fe8c20

Browse files
committed
ci: add github actions
1 parent 148ce47 commit 3fe8c20

File tree

3 files changed

+56
-0
lines changed

3 files changed

+56
-0
lines changed

.github/workflows/az_acr_push.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: 'ACR: Docker Push'
2+
3+
on:
4+
workflow_dispatch:
5+
6+
push:
7+
branches:
8+
- "**"
9+
tags-ignore:
10+
- "**"
11+
12+
jobs:
13+
call-az-acr-push:
14+
uses: code-kern-ai/cicd-deployment-scripts/.github/workflows/az_acr_push.yml@dev
15+
secrets: inherit

.github/workflows/k8s_deploy.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: 'K8: Prepare Deployment' # rename
2+
3+
on:
4+
# workflow_dispatch:
5+
release:
6+
types: [prereleased]
7+
pull_request:
8+
branches:
9+
- dev
10+
types: [closed]
11+
12+
# Special permissions required for OIDC authentication
13+
permissions:
14+
id-token: write
15+
contents: read
16+
actions: read
17+
18+
jobs:
19+
call-k8-release:
20+
uses: code-kern-ai/cicd-deployment-scripts/.github/workflows/k8s_release.yml@dev
21+
if: github.event_name == 'pull_request' && github.event.pull_request.merged || github.event_name == 'release'
22+
secrets: inherit

.github/workflows/k8s_test.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: 'K8: Test'
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened]
6+
7+
# Special permissions required for OIDC authentication
8+
permissions:
9+
id-token: write
10+
contents: read
11+
actions: read
12+
13+
14+
jobs:
15+
call-k8-test:
16+
uses: code-kern-ai/cicd-deployment-scripts/.github/workflows/k8s_test.yml@dev
17+
secrets: inherit
18+
with:
19+
test_cmd: 'pytest'

0 commit comments

Comments
 (0)