Antoine Legrand
2 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
19 additions and
3 deletions
-
.gitlab-ci/molecule.yml
-
.gitlab-ci/vagrant.yml
|
|
@ -3,14 +3,17 @@ |
|
|
|
tags: [ffci-vm-med] |
|
|
|
only: [/^pr-.*$/] |
|
|
|
except: ['triggers'] |
|
|
|
image: quay.io/kubespray/vm-kubespray-ci:v6 |
|
|
|
image: quay.io/kubespray/vm-kubespray-ci:v13 |
|
|
|
services: [] |
|
|
|
stage: deploy-part1 |
|
|
|
needs: [] |
|
|
|
# - ci-not-authorized |
|
|
|
variables: |
|
|
|
VAGRANT_DEFAULT_PROVIDER: "libvirt" |
|
|
|
VAGRANT_HOME: "$CI_PROJECT_DIR/.vagrant.d" |
|
|
|
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" |
|
|
|
before_script: |
|
|
|
- mkdir -p $VAGRANT_HOME |
|
|
|
- groups |
|
|
|
- python3 -m venv citest |
|
|
|
- source citest/bin/activate |
|
|
@ -29,10 +32,15 @@ |
|
|
|
when: always |
|
|
|
paths: |
|
|
|
- molecule_logs/ |
|
|
|
cache: |
|
|
|
key: $CI_JOB_NAME_SLUG |
|
|
|
paths: |
|
|
|
- .vagrant.d/boxes |
|
|
|
- .cache/pip |
|
|
|
policy: pull-push # TODO: change to "pull" when not on main |
|
|
|
|
|
|
|
# CI template for periodic CI jobs |
|
|
|
# Enabled when PERIODIC_CI_ENABLED var is set |
|
|
|
|
|
|
|
.molecule_periodic: |
|
|
|
only: |
|
|
|
variables: |
|
|
|
|
|
@ -10,10 +10,12 @@ |
|
|
|
KUBESPRAY_VAGRANT_CONFIG: tests/files/${CI_JOB_NAME}.rb |
|
|
|
DOCKER_NAME: vagrant |
|
|
|
VAGRANT_ANSIBLE_TAGS: facts |
|
|
|
VAGRANT_HOME: "$CI_PROJECT_DIR/.vagrant.d" |
|
|
|
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" |
|
|
|
tags: [ffci-vm-large] |
|
|
|
# only: [/^pr-.*$/] |
|
|
|
# except: ['triggers'] |
|
|
|
image: quay.io/kubespray/vm-kubespray-ci:v6 |
|
|
|
image: quay.io/kubespray/vm-kubespray-ci:v13 |
|
|
|
services: [] |
|
|
|
before_script: |
|
|
|
- echo $USER |
|
|
@ -27,6 +29,12 @@ |
|
|
|
- ./tests/scripts/vagrant_clean.sh |
|
|
|
script: |
|
|
|
- ./tests/scripts/testcases_run.sh |
|
|
|
cache: |
|
|
|
key: $CI_JOB_NAME_SLUG |
|
|
|
paths: |
|
|
|
- .vagrant.d/boxes |
|
|
|
- .cache/pip |
|
|
|
policy: pull-push # TODO: change to "pull" when not on main |
|
|
|
|
|
|
|
vagrant_ubuntu20-calico-dual-stack: |
|
|
|
stage: deploy-extended |
|
|
|