Skip to content

Commit

Permalink
feat(workflows): Introduce reusable workflows
Browse files Browse the repository at this point in the history
To have elegant prod/staging deploy it is preferable to
split one giant workflow into reusable workflows.
This PR lay beginning of this.

Signed-off-by: Denys Fedoryshchenko <[email protected]>
  • Loading branch information
nuclearcat committed Aug 13, 2024
1 parent 2025a96 commit 91289e4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/docker_images.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
name: 'Compiler and misc docker images build'
name: 'Reusable workflow compiler and misc docker images build'

on:
workflow_dispatch:
workflow_call:
inputs:
GIT_REPO:
type: string
description: 'Repo (owner/repo)'
required: true
default: 'kernelci/kernelci-core'
GIT_BRANCH:
type: string
description: 'Branch'
required: true
default: 'main'
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: 'Staging deploy'

on:
workflow_dispatch:

jobs:
call-docker-build:
uses: ./.github/workflows/docker_images.yml
with:
GIT_REPO: 'kernelci/kernelci-core'
GIT_BRANCH: 'staging.kernelci.org'

0 comments on commit 91289e4

Please sign in to comment.