forked from Kubeinit/kubeinit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
37 lines (34 loc) · 975 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
# The scope can be:
# PERIODIC: a periodic job running in kubeinit.
# PR: a PR job running in kubeinit.
# SUBMARINER: a PR job running in the submariner operator repository.
run-singlenode:
image: fedora
tags:
- kubeinit-ci-singlenode
script:
- echo "./ci/gitlab_ci_trigger.sh singlenode ${JOB_TYPE} ${JOB_LABEL}"
- ./ci/gitlab_ci_trigger.sh singlenode ${JOB_TYPE} ${JOB_LABEL}
only:
variables:
- $CLUSTER_TYPE == "singlenode"
run-multinode:
image: fedora
tags:
- kubeinit-ci-multinode
script:
- echo "./ci/gitlab_ci_trigger.sh multinode ${JOB_TYPE} ${JOB_LABEL}"
- ./ci/gitlab_ci_trigger.sh multinode ${JOB_TYPE} ${JOB_LABEL}
only:
variables:
- $CLUSTER_TYPE == "multinode"
merge-request:
stage: test
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
tags:
- kubeinit-merge-request
script:
- echo "bash -x ./ci/gitlab_merge_request.sh"
- bash -x ./ci/gitlab_merge_request.sh