Mentions légales du service

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

#130 Fix bash syntax in Yaml.

parent 496bc14f
No related branches found
No related tags found
No related merge requests found
Pipeline #943386 failed
...@@ -29,7 +29,7 @@ check_notebooks_empty_outputs: ...@@ -29,7 +29,7 @@ check_notebooks_empty_outputs:
- docker build -f docker/Dockerfile.${NAME} -t ${NAME} . - docker build -f docker/Dockerfile.${NAME} -t ${NAME} .
# Push the image to the GitLab registry only if the pipeline was triggered by a tag # Push the image to the GitLab registry only if the pipeline was triggered by a tag
- | - |
if [ ! -z ${CI_COMMIT_TAG} ] if [ ! -z ${CI_COMMIT_TAG} ]; then
if [ $CI_COMMIT_TAG -ne '' ]; then if [ $CI_COMMIT_TAG -ne '' ]; then
docker tag ${NAME} $CI_REGISTRY/$CI_PROJECT_PATH/${NAME}:latest docker tag ${NAME} $CI_REGISTRY/$CI_PROJECT_PATH/${NAME}:latest
docker push $CI_REGISTRY/$CI_PROJECT_PATH/${NAME}:latest docker push $CI_REGISTRY/$CI_PROJECT_PATH/${NAME}:latest
......
...@@ -10,5 +10,4 @@ ENV USER "dev_cpp" ...@@ -10,5 +10,4 @@ ENV USER "dev_cpp"
RUN useradd --create-home ${USER} RUN useradd --create-home ${USER}
USER ${USER} USER ${USER}
WORKDIR /home/${USER}/training_cpp WORKDIR /home/${USER}/training_cpp
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment