CI/molecule: use common vars as well and simplify run (#13520)

The molecule_run.sh isn't really needed since the switch to gitlab-ci
matrix runs.

Also use the inventory variables pattern for kata-containers.
This commit is contained in:
Max Gautier
2026-09-17 09:09:23 +00:00
committed by GitHub
parent bd20622a16
commit 66f8da3f04
9 changed files with 40 additions and 45 deletions
+3 -7
View File
@@ -1,5 +1,5 @@
---
.molecule:
molecule:
tags: [ffci]
rules: # run on ci-short as well
- if: $CI_COMMIT_BRANCH =~ /^pr-.*$/
@@ -13,7 +13,8 @@
needs:
- pipeline-image
script:
- ./tests/scripts/molecule_run.sh
- cd roles/$ROLE
- molecule test --all -- --extra-vars @${CI_PROJECT_DIR}/tests/common_vars.yml
after_script:
- rm -fr molecule_logs
- mkdir -p molecule_logs
@@ -23,11 +24,6 @@
when: always
paths:
- molecule_logs/
molecule:
extends: .molecule
script:
- ./tests/scripts/molecule_run.sh -i $ROLE
parallel:
matrix:
- ROLE: