diff --git a/.github/workflows/cluster-ci.yml b/.github/workflows/cluster-ci.yml index 59fb105..e533cef 100644 --- a/.github/workflows/cluster-ci.yml +++ b/.github/workflows/cluster-ci.yml @@ -2,6 +2,9 @@ name: Transpire Module CI on: workflow_call: + inputs: + module_name: + type: string secrets: OCF_CLUSTER_DEPLOY_KEY: required: true @@ -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: | diff --git a/.github/workflows/module-ci.yml b/.github/workflows/module-ci.yml index 7359a24..81e29e6 100644 --- a/.github/workflows/module-ci.yml +++ b/.github/workflows/module-ci.yml @@ -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 }}