Skip to content
Snippets Groups Projects
Commit 9ac1f6d2 authored by George Sedov's avatar George Sedov
Browse files

Update .gitlab-ci.yml file

parent e26f6f7e
No related branches found
No related tags found
No related merge requests found
......@@ -96,13 +96,12 @@ build-services-docker:
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- services="broker authorizer discovery receiver file-transfer"
- >
for service in $services
do
for service in $services; do
service_dir=${service//"-"/"_"}
# read the dependency list if exists
[[ -f $CI_PROJECT_DIR/build/${service_dir}/dependencies ]] && DEPENDENCY_LIBS=$(<$CI_PROJECT_DIR/build/${service_dir}/dependencies) || DEPENDENCY_LIBS=''
IFS='' /kaniko/executor --cache=false --context $CI_PROJECT_DIR/build/${service_dir} --dockerfile $CI_PROJECT_DIR/build/${service_dir}/Dockerfile --destination $CI_REGISTRY_IMAGE/asapo-dev-${service}:${CI_COMMIT_SHORT_SHA} --build-args "CI_REGISTRY_IMAGE='${CI_REGISTRY_IMAGE}'" --build-args "DEPENDENCY_LIBS='${DEPENDENCY_LIBS}'"
done
done
tags:
- kubernetes-executor
rules:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment