Skip to content

Commit

Permalink
ci: add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
andhreljaKern committed Jul 1, 2024
1 parent 8ebd6f7 commit 21c6ef9
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/az_acr_push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: 'ACR: Docker Push'

on:
workflow_dispatch:

push:
branches:
- "**"
tags-ignore:
- "**"

jobs:
call-az-acr-push:
uses: code-kern-ai/cicd-deployment-scripts/.github/workflows/az_acr_push.yml@dev
secrets: inherit
22 changes: 22 additions & 0 deletions .github/workflows/k8s_deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: 'K8: Prepare Deployment' # rename

on:
# workflow_dispatch:
release:
types: [prereleased]
pull_request:
branches:
- dev
types: [closed]

# Special permissions required for OIDC authentication
permissions:
id-token: write
contents: read
actions: read

jobs:
call-k8-release:
uses: code-kern-ai/cicd-deployment-scripts/.github/workflows/k8s_release.yml@dev
if: github.event_name == 'pull_request' && github.event.pull_request.merged || github.event_name == 'release'
secrets: inherit
19 changes: 19 additions & 0 deletions .github/workflows/k8s_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: 'K8: Test'

on:
pull_request:
types: [opened, synchronize, reopened]

# Special permissions required for OIDC authentication
permissions:
id-token: write
contents: read
actions: read


jobs:
call-k8-test:
uses: code-kern-ai/cicd-deployment-scripts/.github/workflows/k8s_test.yml@dev
secrets: inherit
with:
test_cmd: 'pytest'

0 comments on commit 21c6ef9

Please sign in to comment.