Skip to content

Commit

Permalink
feat: build cluster incrementally
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-ni committed Apr 23, 2024
1 parent b8fc69f commit 80575d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/cluster-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Transpire Module CI

on:
workflow_call:
inputs:
module_name:
type: string
secrets:
OCF_CLUSTER_DEPLOY_KEY:
required: true
Expand All @@ -16,7 +19,7 @@ jobs:
repository: ocf/kubernetes

- name: Build cluster repository
run: transpire object build _out
run: transpire object build _out ${{ inputs.module_name != '' && format('--module {0}', inputs.module_name) || '' }}

- name: Push cluster repository
run: |
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/module-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,7 @@ jobs:
if: always()
needs: build-images
uses: ocf/transpire/.github/workflows/cluster-ci.yml@main
with:
module_name: ${{ inputs.module_name }}
secrets:
OCF_CLUSTER_DEPLOY_KEY: ${{ secrets.OCF_CLUSTER_DEPLOY_KEY }}

0 comments on commit 80575d2

Please sign in to comment.