Skip to content

Commit 54e8365

Browse files
committed
Add kolla ansible checkout if service-group is used
1 parent 0d93609 commit 54e8365

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

.github/workflows/stackhpc-container-image-build.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,21 @@ jobs:
154154
with:
155155
path: src/kayobe-config
156156

157+
- name: Get Kolla-Ansible version
158+
id: get-kolla-ansible-version
159+
run: |
160+
output=$(grep -wrh stackhpc_kolla_ansible_source_version: src/kayobe-config/etc/kayobe/ | head -1 | awk {'print $2'})
161+
echo kolla_ansible_version=$output | tee -a "$GITHUB_OUTPUT"
162+
if: inputs.service-group
163+
164+
- name: Checkout Kolla-Ansible
165+
uses: actions/checkout@v6
166+
with:
167+
repository: stackhpc/kolla-ansible
168+
ref: ${{ steps.get-kolla-ansible-version.outputs.kolla_ansible_version }}
169+
path: src/kolla-ansible
170+
if: inputs.service-group
171+
157172
- name: Make sure dockerd is running and test Docker
158173
run: |
159174
docker ps

0 commit comments

Comments
 (0)