-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
124 lines (117 loc) · 3.44 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
docker-node-latest:
# Official docker image.
image: docker:23.0.4
stage: build
services:
- docker:23.0.4-dind
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
- docker login -u ${DOCKER_HUB_USER} -p ${DOCKER_HUB_PASS}
script:
- docker build --pull -t "$CI_REGISTRY_IMAGE" -t symbiote/node:latest .
- docker push "$CI_REGISTRY_IMAGE"
- docker push symbiote/node:latest
only:
- master
docker-node-10.16:
# Official docker image.
image: docker:23.0.4
stage: build
services:
- docker:23.0.4-dind
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
- docker login -u ${DOCKER_HUB_USER} -p ${DOCKER_HUB_PASS}
script:
- cd 10.16
- docker build --pull -t "$CI_REGISTRY_IMAGE:10.16" -t symbiote/node:10.16 .
- docker push "$CI_REGISTRY_IMAGE:10.16"
- docker push symbiote/node:10.16
only:
changes:
- 10.16/*
docker-node-12.10:
# Official docker image.
image: docker:23.0.4
stage: build
services:
- docker:23.0.4-dind
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
- docker login -u ${DOCKER_HUB_USER} -p ${DOCKER_HUB_PASS}
script:
- cd 12.10
- docker build --pull -t "$CI_REGISTRY_IMAGE:12.10" -t symbiote/node:12.10 .
- docker push "$CI_REGISTRY_IMAGE:12.10"
- docker push symbiote/node:12.10
only:
changes:
- 12.10/*
docker-node-12.18:
# Official docker image.
image: docker:23.0.4
stage: build
services:
- docker:23.0.4-dind
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
- docker login -u ${DOCKER_HUB_USER} -p ${DOCKER_HUB_PASS}
script:
- cd 12.18
- docker build --pull -t "$CI_REGISTRY_IMAGE:12.18" -t symbiote/node:12.18 .
- docker push "$CI_REGISTRY_IMAGE:12.18"
- docker push symbiote/node:12.18
only:
changes:
- 12.18/*
docker-node-14.17:
# Official docker image.
image: docker:23.0.4
stage: build
services:
- docker:23.0.4-dind
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
- docker login -u ${DOCKER_HUB_USER} -p ${DOCKER_HUB_PASS}
script:
- cd 14.17
- docker build --pull -t "$CI_REGISTRY_IMAGE:14.17" -t symbiote/node:14.17 .
- docker push "$CI_REGISTRY_IMAGE:14.17"
- docker push symbiote/node:14.17
only:
changes:
- 14.17/*
docker-node-16.8:
# Official docker image.
image: docker:23.0.4
stage: build
services:
- docker:23.0.4-dind
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
- docker login -u ${DOCKER_HUB_USER} -p ${DOCKER_HUB_PASS}
script:
- cd 16.8
- docker build --pull -t "$CI_REGISTRY_IMAGE:16.8" -t symbiote/node:16.8 .
- docker push "$CI_REGISTRY_IMAGE:16.8"
- docker push symbiote/node:16.8
only:
changes:
- 16.8/*
docker-node-18.16:
# Official docker image.
image: docker:23.0.4
stage: build
services:
- docker:23.0.4-dind
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
- docker login -u ${DOCKER_HUB_USER} -p ${DOCKER_HUB_PASS}
script:
- cd 18.16
- docker build --pull -t "$CI_REGISTRY_IMAGE:18.16" -t symbiote/node:18.16 .
- docker push "$CI_REGISTRY_IMAGE:18.16"
- docker push symbiote/node:18.16
only:
changes:
- 18.16/*