-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
79 lines (71 loc) · 1.65 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
include:
- template: 'Workflows/MergeRequest-Pipelines.gitlab-ci.yml'
- local: '.gitlab-ci/cache.yml'
- local: '.gitlab-ci/prepare-env.yml'
- local: '.gitlab-ci/build-and-test.yml'
- local: '.gitlab-ci/package.yml'
- local: '.gitlab-ci/upload.yml'
- local: '.gitlab-ci/release.yml'
- local: '.gitlab-ci/docker_build.yml'
stages:
- test
- deploy
- package
- upload
- release
variables:
PACKAGE_REGISTRY_URL: ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/std_detector_buffer/${CI_COMMIT_TAG}
BUILT_DOCKER_IMAGE_VERSION: "1.1.0"
USED_DOCKER_IMAGE_VERSION: "1.0.0"
test_project:
stage: test
extends: [ .prepare_env, .cache, .build_and_test ]
tags: [ sf-docker ]
parallel:
matrix:
- DOCKER_IMAGE: [ "centos8" ]
rules:
- when: always
package_project:
stage: package
extends: [ .prepare_env, .cache, .package ]
tags: [ sf-docker ]
parallel:
matrix:
- DOCKER_IMAGE: [ "centos8" ]
upload_project:
stage: upload
extends: [ .upload ]
tags: [ sf-docker ]
needs:
- job: package_project
parallel:
matrix:
- DOCKER_IMAGE: [ "centos8" ]
artifacts: true
release_project:
stage: release
extends: [ .release ]
tags: [ sf-docker ]
needs:
- job: upload_project
docker_deploy:
stage: test
extends: [ .docker_build ]
pages:
stage: deploy
image: node:15.12-alpine3.13
tags: [ sf-docker ]
script:
- cd website/std-daq-doc
- yarn install
- yarn build
- mv ./build ${CI_PROJECT_DIR}/public
artifacts:
paths:
- public
rules:
- if: '$CI_COMMIT_BRANCH == "master"'
changes:
- "website/**/*"
- when: never