-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci-package.yml
64 lines (58 loc) · 1.18 KB
/
.gitlab-ci-package.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
.retag:
stage: package
image: docker.io/regclient/regctl:v0.3-alpine
variables:
GIT_STRATEGY: none
needs:
- set-vars
before_script:
- export REG_HOST=${INTERNAL_REG%/*}
- >
echo "{\"hosts\":{\"${REG_HOST}\":{\"tls\":\"enabled\",\"hostname\":
\"${REG_HOST}\",\"user\":\"${IMAGE_REGISTRY_USER}\",\"pass\":
\"${IMAGE_REGISTRY_PASS}\"}}}" >> /home/appuser/.regctl/config.json
script:
- >
regctl --verbosity debug image copy
"${IMAGE_NAME}-unverified" "${IMAGE_NAME}"
- regctl --verbosity debug tag delete "${IMAGE_NAME}-unverified"
ckan-retag:
needs:
- ckan-scan
extends:
- .triggers
- .retag
variables:
IMAGE_NAME: ${CKAN_IMAGE}
proxy-retag:
needs:
- proxy-scan
extends:
- .triggers
- .retag
variables:
IMAGE_NAME: ${PROXY_IMAGE}
db-retag:
needs:
- db-scan
extends:
- .triggers
- .retag
variables:
IMAGE_NAME: ${DB_IMAGE}
solr-retag:
needs:
- solr-scan
extends:
- .triggers
- .retag
variables:
IMAGE_NAME: ${SOLR_IMAGE}
solr-init-retag:
needs:
- solr-init-scan
extends:
- .triggers
- .retag
variables:
IMAGE_NAME: ${SOLR_INIT_IMAGE}