Mentions légales du service

Skip to content
Snippets Groups Projects
Commit c714cea7 authored by GILLES Sebastien's avatar GILLES Sebastien
Browse files

#131 New attempt to make CI work as expected.

parent 29fa9802
No related branches found
No related tags found
No related merge requests found
Pipeline #947271 failed
......@@ -30,7 +30,8 @@ check_notebooks_empty_outputs:
- docker build -f docker/Dockerfile.${NAME} -t ${NAME} .
# Push the image to the GitLab registry only if the pipeline was triggered by a tag
- |
if [ ! -z ${CI_COMMIT_TAG} ]; then
echo "Push the image to the GitLab registry only if the pipeline was triggered by a tag; if no tag shell error is fully expected here and the reported success of the job is really what is intended."
if [ -z ${CI_COMMIT_TAG+x} ] ; then
docker tag ${NAME} $CI_REGISTRY/$CI_PROJECT_PATH/${NAME}:latest
docker push $CI_REGISTRY/$CI_PROJECT_PATH/${NAME}:latest
docker tag ${NAME} $CI_REGISTRY/$CI_PROJECT_PATH/${NAME}:${CI_COMMIT_TAG}
......
......@@ -10,4 +10,4 @@ ENV USER "dev_cpp"
RUN useradd --create-home ${USER}
USER ${USER}
WORKDIR /home/${USER}/training_cpp
\ No newline at end of file
WORKDIR /home/${USER}/training_cpp
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment