-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.gitlab-ci.yml
84 lines (74 loc) · 2 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
80
81
82
83
84
# include all templates in https://gitlab.cern.ch/cms-cactus/ops/auto-devops/-/tree/0.2.3
include:
- project: cms-cactus/ops/auto-devops
ref: 0.2.3
file: presets/blank-slate.yml
# disable CI checkout of oms/aggregationapi
variables:
GIT_SUBMODULE_STRATEGY: none
stages:
- 🛠️ setup
- 🏗️ build
- 🐞 test
- 📦 publish
- 🚀 deploy
- 💣 cleanup
builder image:
extends: .auto_devops_docker_builder_autotag_onchange
stage: 🛠️ setup
variables:
DOCKERFILE: builder.Dockerfile
CONTEXT_FOLDER: .gitlab/ci
NAME: builder
build:RPMs:
image: $CI_REGISTRY_IMAGE/builder:$CI_COMMIT_REF_NAME-latest
stage: 🏗️ build
variables:
FF_KUBERNETES_HONOR_ENTRYPOINT: 1
script:
- make
artifacts:
paths:
- rpms
publish:docker:
extends: .auto_devops_docker_builder_autotag
stage: 📦 publish
variables:
BUILD_ARG_CI_COMMIT_REF_NAME: $CI_COMMIT_REF_NAME
publish:RPMs:
stage: 📦 publish
extends: .auto_devops_upload_yum_repo_eos_template
variables:
LOCAL_FOLDER: rpms/python39
CERNBOX_FOLDER: /eos/user/c/cactus/www/cactus/release/cms-tsg-fog/ratemon/$CI_COMMIT_REF_SLUG/python39/$CI_COMMIT_SHA/alma9_x86_64/
# deploy:test:
# stage: 🚀 deploy
# extends: .auto_devops_k8s_basic_deployment
# variables:
# HTTP_PORT: 8085
# environment:
# on_stop: cleanup:test
# cleanup:test:
# stage: 💣 cleanup
# extends: .auto_devops_k8s_basic_deployment_stop
# dependencies: ["deploy:test"]
# trigger this job by manually creating a pipeline with your P5 credentials
deploy:P5:
stage: 🚀 deploy
extends: .auto_devops_p5_dropbox_push
rules:
# omit if user did not supply P5 credentials
- if: $P5_USER == null || $P5_PASS == null
when: never
# only when tagged
- if: $PACKAGE_VER_PATCH || $CI_COMMIT_TAG
when: manual
allow_failure: false
- when: never
variables:
LOCAL_FOLDER: rpms/python39
DROPBOX_OS: el9
DROPBOX_ZONE: cms
DROPBOX_NAME: ratemon
SSH_USERNAME: $P5_USER
SSH_PASS: $P5_PASS