GitLab upgraded to 13.6.1-ee.0 - changelog: https://gitlab.com/gitlab-org/gitlab/blob/master/CHANGELOG-EE.md

.gitlab-ci.yml 1.93 KB
Newer Older
MarkusTeufelberger's avatar
MarkusTeufelberger committed
1
---
ant31's avatar
ant31 committed
2 3
stages:
  - unit-tests
Antoine Legrand's avatar
Antoine Legrand committed
4
  - deploy-part1
5
  - moderator
Antoine Legrand's avatar
Antoine Legrand committed
6
  - deploy-part2
7
  - deploy-part3
Antoine Legrand's avatar
Antoine Legrand committed
8
  - deploy-special
ant31's avatar
ant31 committed
9 10

variables:
11
  KUBESPRAY_VERSION: v2.14.1
ant31's avatar
ant31 committed
12
  FAILFASTCI_NAMESPACE: 'kargo-ci'
13
  GITLAB_REPOSITORY: 'kargo-ci/kubernetes-sigs-kubespray'
14
  ANSIBLE_FORCE_COLOR: "true"
15 16 17 18 19 20
  MAGIC: "ci check this"
  TEST_ID: "$CI_PIPELINE_ID-$CI_BUILD_ID"
  CI_TEST_VARS: "./tests/files/${CI_JOB_NAME}.yml"
  GS_ACCESS_KEY_ID: $GS_KEY
  GS_SECRET_ACCESS_KEY: $GS_SECRET
  CONTAINER_ENGINE: docker
21
  SSH_USER: root
22 23 24
  GCE_PREEMPTIBLE: "false"
  ANSIBLE_KEEP_REMOTE_FILES: "1"
  ANSIBLE_CONFIG: ./tests/ansible.cfg
25
  ANSIBLE_INVENTORY: ./inventory/sample/${CI_JOB_NAME}-${BUILD_NUMBER}.ini
26 27 28
  IDEMPOT_CHECK: "false"
  RESET_CHECK: "false"
  UPGRADE_TEST: "false"
29
  MITOGEN_ENABLE: "false"
30
  ANSIBLE_LOG_LEVEL: "-vv"
31 32
  RECOVER_CONTROL_PLANE_TEST: "false"
  RECOVER_CONTROL_PLANE_TEST_GROUPS: "etcd[2:],kube-master[1:]"
ant31's avatar
ant31 committed
33 34

before_script:
35
  - ./tests/scripts/rebase.sh
36 37
  - update-alternatives --install /usr/bin/python python /usr/bin/python3 1
  - python -m pip install -r tests/requirements.txt
MarkusTeufelberger's avatar
MarkusTeufelberger committed
38
  - mkdir -p /.ssh
ant31's avatar
ant31 committed
39 40 41

.job: &job
  tags:
42
    - packet
43
  image: quay.io/kubespray/kubespray:$KUBESPRAY_VERSION
44
  artifacts:
45
    when: always
46 47
    paths:
      - cluster-dump/
ant31's avatar
ant31 committed
48

49
.testcases: &testcases
ant31's avatar
ant31 committed
50
  <<: *job
51
  before_script:
52
    - update-alternatives --install /usr/bin/python python /usr/bin/python3 1
53
    - ./tests/scripts/rebase.sh
54
    - ./tests/scripts/testcases_prepare.sh
ant31's avatar
ant31 committed
55
  script:
56
    - ./tests/scripts/testcases_run.sh
57
  after_script:
58
    - chronic ./tests/scripts/testcases_cleanup.sh
59

60
# For failfast, at least 1 job must be defined in .gitlab-ci.yml
Antoine Legrand's avatar
Antoine Legrand committed
61 62
# Premoderated with manual actions
ci-authorized:
63
  extends: .job
Antoine Legrand's avatar
Antoine Legrand committed
64 65 66 67
  stage: moderator
  script:
    - /bin/sh scripts/premoderator.sh
  except: ['triggers', 'master']
Maxime Guyot's avatar
Maxime Guyot committed
68 69
  # Disable ci moderator
  only: []
Antoine Legrand's avatar
Antoine Legrand committed
70

71 72
include:
  - .gitlab-ci/lint.yml
Maxime Guyot's avatar
Maxime Guyot committed
73
  - .gitlab-ci/shellcheck.yml
74
  - .gitlab-ci/terraform.yml
75
  - .gitlab-ci/packet.yml
76
  - .gitlab-ci/vagrant.yml