Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
GILLES Sebastien
GettingStartedWithModernCpp
Commits
d5b44a6e
Commit
d5b44a6e
authored
May 12, 2021
by
GILLES Sebastien
Browse files
#16 Gitlab-CI: change to a build commanded by Gitlab-CI interface.
parent
1a434a6c
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
d5b44a6e
...
...
@@ -7,22 +7,23 @@ build_docker:
stage
:
build
retry
:
2
only
:
refs
:
-
master
-
web
script
:
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
docker build -f docker/Dockerfile -t $CI_REGISTRY/$CI_PROJECT_PATH/xeus-cling:latest .
# Latest is always generated but not pushed if ${UPDATE_LATEST_TAG} is not "True"
-
docker build -f docker/Dockerfile -t $CI_REGISTRY/$CI_PROJECT_PATH/xeus-cling:${TAG} -t $CI_REGISTRY/$CI_PROJECT_PATH/xeus-cling:latest .
-
docker container prune
-
docker push $CI_REGISTRY/$CI_PROJECT_PATH/xeus-cling:latest
-
if [ "${UPDATE_LATEST_TAG}" == "True" ]; then docker push $CI_REGISTRY/$CI_PROJECT_PATH/xeus-cling:latest; fi
build_docker_full
:
stage
:
build
retry
:
2
only
:
refs
:
-
master
-
web
script
:
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
docker build -f docker/Dockerfile_full -t $CI_REGISTRY/$CI_PROJECT_PATH/xeus-cling-and-compilers:latest .
# Latest is always generated but not pushed if ${UPDATE_LATEST_TAG} is not "True"
-
docker build -f docker/Dockerfile_full -t $CI_REGISTRY/$CI_PROJECT_PATH/xeus-cling-and-compilers:${TAG} -t $CI_REGISTRY/$CI_PROJECT_PATH/xeus-cling-and-compilers:latest .
-
docker container prune
-
docker push $CI_REGISTRY/$CI_PROJECT_PATH/xeus-cling-and-compilers:latest
\ No newline at end of file
-
if [ "${UPDATE_LATEST_TAG}" == "True" ]; then docker push $CI_REGISTRY/$CI_PROJECT_PATH/xeus-cling-and-compilers:latest; fi
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment