Commit fb8c6ff 1 parent a5d06ec commit fb8c6ff Copy full SHA for fb8c6ff
File tree 1 file changed +17
-3
lines changed
1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -15,21 +15,35 @@ services:
15
15
stages :
16
16
- build
17
17
18
- build-featureflag :
18
+ . build-service :
19
19
tags :
20
20
- sts-k8s-xl-no-agent-runner
21
21
stage : build
22
22
image : ${DOCKER_PROXY_URL}/docker:20-git
23
23
script :
24
24
- echo "${quay_password}" | docker login --username=${quay_user} --password-stdin quay.io
25
25
- echo "${artifactory_password}" | docker login --username=${artifactory_user} --password-stdin artifactory.tooling.stackstate.io
26
- - DST_TAG="${OPENTELEMETRY_DEMO_VERSION}-${CI_COMMIT_SHORT_SHA}-featureflagservice "
26
+ - DST_TAG="${OPENTELEMETRY_DEMO_VERSION}-${CI_COMMIT_SHORT_SHA}-${SERVICE} "
27
27
# fix for https://github.com/docker/buildx/issues/493
28
28
- docker run --privileged --rm artifactory.tooling.stackstate.io/docker-virtual/tonistiigi/binfmt --install all
29
29
- docker buildx create --name builder --use --bootstrap
30
- - docker buildx build --label "published-by=${CI_JOB_URL}" --platform linux/amd64,linux/arm64 --file "$CI_PROJECT_DIR/src/featureflagservice /Dockerfile" --tag "${DST_REPOSITORY}:${DST_TAG}" --push "$CI_PROJECT_DIR"
30
+ - docker buildx build --label "published-by=${CI_JOB_URL}" --platform linux/amd64,linux/arm64 --file "$CI_PROJECT_DIR/src/${SERVICE} /Dockerfile" --tag "${DST_REPOSITORY}:${DST_TAG}" --push "$CI_PROJECT_DIR"
31
31
retry :
32
32
max : 2
33
33
when :
34
34
- always
35
35
36
+ build-featureflag :
37
+ extends : .build-service
38
+ variables :
39
+ SERVICE : featureflagservice
40
+
41
+ build-adservice :
42
+ extends : .build-service
43
+ variables :
44
+ SERVICE : adservice
45
+
46
+ build-frauddetection :
47
+ extends : .build-service
48
+ variables :
49
+ SERVICE : frauddetectionservice
You can’t perform that action at this time.
0 commit comments