Skip to content

Commit 4c8bb83

Browse files
Add GitHub Actions (#39)
* ci: add CODEOWNERS * ci: add github actions * ci: skip running az_acr_push on dev push * ci: empty commit * ci: run empty
1 parent 80f2d8c commit 4c8bb83

File tree

4 files changed

+58
-0
lines changed

4 files changed

+58
-0
lines changed

.github/workflows/az_acr_push.yml

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

.github/workflows/k8s_deploy.yml

Lines changed: 22 additions & 0 deletions
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

Lines changed: 19 additions & 0 deletions
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'

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.github/ @code-kern-ai/devops-admin @code-kern-ai/dev-admin

0 commit comments

Comments
 (0)