-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
70 lines (65 loc) · 2.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
image: docker:20.10
services:
- docker:20.10-dind
stages:
- build
build-testing:
stage: build
except:
- release-4.4
- release-4.5
- release-4.6
tags:
- docker
variables:
DOCKER_BUILDKIT: 1
IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker build -t ${IMAGE_TAG} --progress=plain --secret id=CRYOSPARC_LICENSE_ID .
- docker push ${IMAGE_TAG}
build-release-4.4:
stage: build
only:
- release-4.4
tags:
- docker
variables:
DOCKER_BUILDKIT: 1
CRYOSPARC_VERSION: 4.4.1
IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker build -t ${CI_REGISTRY_IMAGE}:${CRYOSPARC_VERSION} -t ${IMAGE_TAG} -t ${CI_REGISTRY_IMAGE}:latest --progress=plain --secret id=CRYOSPARC_LICENSE_ID --build-arg="CRYOSPARC_VERSION=${CRYOSPARC_VERSION}" .
- docker push $IMAGE_TAG
- docker push ${CI_REGISTRY_IMAGE}:${CRYOSPARC_VERSION}
build-release-4.5:
stage: build
only:
- release-4.5
tags:
- docker
variables:
DOCKER_BUILDKIT: 1
CRYOSPARC_VERSION: 4.5.3
IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker build -t ${CI_REGISTRY_IMAGE}:${CRYOSPARC_VERSION} -t ${IMAGE_TAG} -t ${CI_REGISTRY_IMAGE}:latest --progress=plain --secret id=CRYOSPARC_LICENSE_ID --build-arg="CRYOSPARC_VERSION=${CRYOSPARC_VERSION}" .
- docker push $IMAGE_TAG
- docker push ${CI_REGISTRY_IMAGE}:${CRYOSPARC_VERSION}
build-release-4.6:
stage: build
only:
- release-4.6
tags:
- docker
variables:
DOCKER_BUILDKIT: 1
CRYOSPARC_VERSION: 4.6.2
IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker build -t ${CI_REGISTRY_IMAGE}:${CRYOSPARC_VERSION} -t ${IMAGE_TAG} -t ${CI_REGISTRY_IMAGE}:latest --progress=plain --secret id=CRYOSPARC_LICENSE_ID --build-arg="CRYOSPARC_VERSION=${CRYOSPARC_VERSION}" .
- docker push $IMAGE_TAG
- docker push ${CI_REGISTRY_IMAGE}:${CRYOSPARC_VERSION}