Skip to content

Commit

Permalink
Pass namespace of the lease to the reusable workflow
Browse files Browse the repository at this point in the history
Signed-off-by: João Pereira <[email protected]>
  • Loading branch information
joaopapereira authored and a-b committed Oct 25, 2024
1 parent 4a16286 commit d3fcf31
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/tests-integration-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ on:
lease-id:
required: true
type: string
lease-namespace:
required: false
type: string
gitRef:
type: string
default: ${{github.event.workflow_run.head_sha}}
Expand Down Expand Up @@ -70,6 +73,7 @@ jobs:
- name: Install Tools
env:
account_token: ${{ secrets.SHEPHERD_SERVICE_ACCOUNT_TOKEN }}
namespace: ${{ inputs.lease-namespace || vars.POOL_NAMESPACE || 'tas-devex' }}
run: |
go version
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/tests-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ jobs:
name: Integration
gitRef: ${{needs.get-sha.outputs.gitRef}}
lease-id: ${{ needs.claim-env.outputs.leaseid }}
lease-namespace: ${{ inputs.lease_namespace }}
nodes: ${{ inputs.nodes }}
secrets: inherit

Expand All @@ -281,6 +282,7 @@ jobs:
name: Integration client creds
gitRef: ${{needs.get-sha.outputs.gitRef}}
lease-id: ${{ needs.claim-env.outputs.leaseid }}
lease-namespace: ${{ inputs.lease_namespace }}
secrets: inherit

run-cats-cf-env:
Expand All @@ -298,6 +300,7 @@ jobs:
name: cats
gitRef: ${{needs.get-sha.outputs.gitRef}}
lease-id: ${{ needs.claim-env.outputs.leaseid }}
lease-namespace: ${{ inputs.lease_namespace }}
secrets: inherit

unclaim-env:
Expand Down

0 comments on commit d3fcf31

Please sign in to comment.