-
Notifications
You must be signed in to change notification settings - Fork 4
/
.gitlab-ci.yml
46 lines (40 loc) · 1.22 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
stages:
- build
- tag
include:
- project: 'cms-analysis/general/container-image-ci-templates'
file:
- 'kaniko-image.gitlab-ci.yml'
- 'skopeo.gitlab-ci.yml'
variables:
CONTEXT_DIR: ""
DOCKER_FILE_NAME: "Dockerfile"
GIT_SUBMODULE_STRATEGY: recursive
PUSH_IMAGE: "true"
ACCELERATED_IMAGE: "true"
BUILD_ARGS: ""
SCAN_IMAGE: "false"
.build_docker_template:
extends: .build_kaniko
only:
- pushes
- master
build_docker_lxplus_el9:
extends: .build_docker_template
variables:
BUILD_ARGS: "FROM_IMAGE=gitlab-registry.cern.ch/batch-team/dask-lxplus/lxdask-al9:latest CLUSTER=lxplus-el9"
REGISTRY_IMAGE_PATH: ${CI_REGISTRY_IMAGE}:lxplus-el9-${CI_COMMIT_SHORT_SHA}
build_docker_lxplus_el9_latest:
extends: .tag_skopeo
rules:
- if: '$CI_COMMIT_REF_NAME == "master"'
variables:
IMAGE_ORIGIN_TAG: ${CI_REGISTRY_IMAGE}:lxplus-el9-${CI_COMMIT_SHORT_SHA}
IMAGE_DESTINATION_TAG: ${CI_REGISTRY_IMAGE}:lxplus-el9-latest
build_docker_lxplus_tagged:
extends: .tag_skopeo
rules:
- if: $CI_COMMIT_TAG
variables:
IMAGE_ORIGIN_TAG: ${CI_REGISTRY_IMAGE}:lxplus-el9-${CI_COMMIT_SHORT_SHA}
IMAGE_DESTINATION_TAG: ${CI_REGISTRY_IMAGE}:lxplus-el9-${CI_COMMIT_TAG}