Skip to content

Commit 4843b9b

Browse files
authored
Added parameters to AIO and image build workflows to be reused by external CI (#1454)
1 parent 1f73ff1 commit 4843b9b

File tree

2 files changed

+20
-5
lines changed

2 files changed

+20
-5
lines changed

.github/workflows/stackhpc-all-in-one.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,18 @@ on:
5959
description: Whether to perform an upgrade
6060
type: boolean
6161
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 }}
6274
secrets:
6375
KAYOBE_VAULT_PASSWORD:
6476
required: true
@@ -94,7 +106,8 @@ jobs:
94106
- name: Checkout ${{ inputs.upgrade && 'previous release' || 'current' }} config
95107
uses: actions/checkout@v4
96108
with:
97-
ref: ${{ inputs.upgrade && env.PREVIOUS_BRANCH || github.ref }}
109+
repository: ${{ inputs.repository }}
110+
ref: ${{ inputs.upgrade && env.PREVIOUS_BRANCH || inputs.github_ref }}
98111
submodules: true
99112

100113
- name: Output Kayobe image
@@ -367,6 +380,8 @@ jobs:
367380
- name: Checkout current release config
368381
uses: actions/checkout@v4
369382
with:
383+
repository: ${{ inputs.repository }}
384+
ref: ${{ inputs.github_ref }}
370385
submodules: true
371386
clean: false
372387
if: inputs.upgrade
@@ -448,7 +463,7 @@ jobs:
448463
-v $(pwd)/sot-results:/stack/sot-results \
449464
-e KAYOBE_ENVIRONMENT -e KAYOBE_VAULT_PASSWORD -e KAYOBE_AUTOMATION_SSH_PRIVATE_KEY \
450465
$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 }}
452467
env:
453468
KAYOBE_AUTOMATION_SSH_PRIVATE_KEY: ${{ steps.ssh_key.outputs.ssh_key }}
454469

etc/kayobe/ansible/stackhpc-openstack-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
- stackhpc-openstack-tests
66
vars:
77
sot_venv: "{{ virtualenv_path }}/sot-venv"
8-
sot_repo: https://github.com/stackhpc/stackhpc-openstack-tests
9-
sot_version: v0.0.1
8+
sot_repo: https://github.com/stackhpc/stackhpc-cloud-tests
9+
sot_version: main
1010
sot_timeout: 30
1111
results_path_local: "{{ lookup('env', 'HOME') }}/sot-results"
1212
tasks:
@@ -66,7 +66,7 @@
6666
{{ sot_venv }}/bin/py.test
6767
--html={{ results_tmpdir.path }}/stackhpc-openstack-tests.html
6868
--self-contained-html
69-
--pyargs stackhpc_openstack_tests
69+
--pyargs stackhpc_cloud_tests
7070
--timeout {{ sot_timeout }}
7171
-vv
7272
environment:

0 commit comments

Comments
 (0)