|
59 | 59 | description: Whether to perform an upgrade |
60 | 60 | type: boolean |
61 | 61 | default: false |
| 62 | + stackhpc_cloud_tests_version: |
| 63 | + description: Git version of https://github.com/stackhpc/stackhpc-cloud-tests to use for testing |
| 64 | + type: string |
| 65 | + default: main |
| 66 | + repository: |
| 67 | + description: SKC repository to checkout (convenience for external CI) |
| 68 | + type: string |
| 69 | + default: ${{ github.repository }} |
| 70 | + github_ref: |
| 71 | + description: Git ref to checkout (convenience for external CI) |
| 72 | + type: string |
| 73 | + default: ${{ github.ref }} |
62 | 74 | secrets: |
63 | 75 | KAYOBE_VAULT_PASSWORD: |
64 | 76 | required: true |
|
94 | 106 | - name: Checkout ${{ inputs.upgrade && 'previous release' || 'current' }} config |
95 | 107 | uses: actions/checkout@v4 |
96 | 108 | with: |
97 | | - ref: ${{ inputs.upgrade && env.PREVIOUS_BRANCH || github.ref }} |
| 109 | + repository: ${{ inputs.repository }} |
| 110 | + ref: ${{ inputs.upgrade && env.PREVIOUS_BRANCH || inputs.github_ref }} |
98 | 111 | submodules: true |
99 | 112 |
|
100 | 113 | - name: Output Kayobe image |
@@ -367,6 +380,8 @@ jobs: |
367 | 380 | - name: Checkout current release config |
368 | 381 | uses: actions/checkout@v4 |
369 | 382 | with: |
| 383 | + repository: ${{ inputs.repository }} |
| 384 | + ref: ${{ inputs.github_ref }} |
370 | 385 | submodules: true |
371 | 386 | clean: false |
372 | 387 | if: inputs.upgrade |
@@ -448,7 +463,7 @@ jobs: |
448 | 463 | -v $(pwd)/sot-results:/stack/sot-results \ |
449 | 464 | -e KAYOBE_ENVIRONMENT -e KAYOBE_VAULT_PASSWORD -e KAYOBE_AUTOMATION_SSH_PRIVATE_KEY \ |
450 | 465 | $KAYOBE_IMAGE \ |
451 | | - /stack/kayobe-automation-env/src/kayobe-config/.automation/pipeline/playbook-run.sh '$KAYOBE_CONFIG_PATH/ansible/stackhpc-openstack-tests.yml' |
| 466 | + /stack/kayobe-automation-env/src/kayobe-config/.automation/pipeline/playbook-run.sh '$KAYOBE_CONFIG_PATH/ansible/stackhpc-openstack-tests.yml' -e sot_version=${{ inputs.stackhpc_cloud_tests_version }} |
452 | 467 | env: |
453 | 468 | KAYOBE_AUTOMATION_SSH_PRIVATE_KEY: ${{ steps.ssh_key.outputs.ssh_key }} |
454 | 469 |
|
|
0 commit comments