forked from Seagate/cortx-monitor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
65 lines (47 loc) · 1.41 KB
/
.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Globals ----------------------------------------------------------------- {{{1
#
variables:
GIT_DEPTH: 1 # clone only the current commit
GIT_STRATEGY: clone # make a fresh `git clone` of the repo for every new CI job
GIT_SUBMODULE_STRATEGY: normal # init and check out submodules
CENTOS_RELEASE: cortx
M0_VG_NO_SYMLINKS: 'true'
WORKSPACE_NAME: "${CI_PROJECT_NAME}${CI_PIPELINE_ID}"
WORKSPACE_DIR: "/home/gitlab-runner/workspaces/${CI_PROJECT_NAME}${CI_PIPELINE_ID}"
stages:
- build
before_script:
- date -u -Isec
- git --no-pager log -1 --pretty=fuller
- printenv
after_script:
- date -u -Isec
# Build ------------------------------------------------------------------- {{{1
#
build:
stage: build
tags: [ docker-build ]
except: [ dev, tags ]
script: |
time ./jenkins/build.sh
# Docker images ----------------------------------------------------------- {{{1
#
docker:rebuild-images:
stage: build
tags: [ docker-image-build ]
when: manual
except: [ schedules ]
variables:
DOCKER_IMAGE_TAG: 7
script:
- make -C docker/ docker-image-$DOCKER_IMAGE_TAG
- make -C docker/ push tag="${DOCKER_IMAGE_TAG}*"
docker:rebuild-images:76:
extends: docker:rebuild-images
variables:
DOCKER_IMAGE_TAG: '7.6'
docker:rebuild-images:cortx:
extends: docker:rebuild-images
variables:
DOCKER_IMAGE_TAG: cortx
# vim: foldmethod=marker shiftwidth=2 tabstop=2 expandtab