A
A
Anton2018-09-11 13:36:33
GitLab
Anton, 2018-09-11 13:36:33

How does docker find the image if I build "$CI_REGISTRY_IMAGE/$CI_PROJECT_NAME... and connect to "$CI_PROJECT_NAME"-"$CI_PIPELINE_ID...?

Good afternoon!
Please tell
me How docker finds the image if I build "$CI_REGISTRY_IMAGE/$CI_PROJECT_NAME/$CI_JOB_NAME:$CI_COMMIT_REF_SLUG" and connect to "$CI_PROJECT_NAME"-"$CI_PIPELINE_ID"-"$CI_JOB_NAME"?
Gitlab-ci.yaml here https://gitlab.com/anton_patsev/gs-actuator-servic...
docker does tag one, and exec does not by tag

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton, 2018-09-11
Patsev @chemtech

seems to understand. missed this line
- docker run --name "$CI_PROJECT_NAME"-"$CI_PIPELINE_ID"-"$CI_JOB_NAME" --link "$CI_PROJECT_NAME"-db-"$CI_PIPELINE_ID"-"$CI_JOB_NAME":db -d "$CI_REGISTRY_IMAGE /$CI_PROJECT_NAME/$CI_JOB_NAME:$CI_COMMIT_REF_SLUG" java -jar gs-actuator-service-0.1.0.jar
here it changes the name so to speak

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question