Commit 20acae32 authored by GILLES Sebastien's avatar GILLES Sebastien

#1501 Attempt to automate the deployment of the Docker images at each release.

parent 27f0bd6f
Pipeline #110758 failed with stage
in 1 minute and 7 seconds
......@@ -9,7 +9,6 @@ build_ubuntu_gcc_debug_several_shared_libraries:
COMPILER: "gcc"
MODE: "debug"
LIB_NATURE: "shared"
OS: "ubuntu"
IS_ONLY_ONE_LIB: "False"
check_ubuntu_gcc_debug_several_shared_libraries:
......@@ -25,7 +24,6 @@ check_ubuntu_gcc_debug_several_shared_libraries:
COMPILER: "gcc"
MODE: "debug"
LIB_NATURE: "shared"
OS: "ubuntu"
IS_ONLY_ONE_LIB: "False"
......@@ -40,7 +38,6 @@ build_ubuntu_gcc_release_one_static_library:
COMPILER: "gcc"
MODE: "release"
LIB_NATURE: "static"
OS: "ubuntu"
IS_ONLY_ONE_LIB: "True"
check_ubuntu_gcc_release_one_static_library:
......@@ -56,7 +53,6 @@ check_ubuntu_gcc_release_one_static_library:
COMPILER: "gcc"
MODE: "release"
LIB_NATURE: "static"
OS: "ubuntu"
IS_ONLY_ONE_LIB: "True"
......@@ -71,7 +67,6 @@ build_fedora_gcc_debug_one_shared_library:
COMPILER: "gcc"
MODE: "debug"
LIB_NATURE: "shared"
OS: "fedora"
IS_ONLY_ONE_LIB: "True"
check_fedora_gcc_debug_one_shared_library:
......@@ -87,7 +82,6 @@ check_fedora_gcc_debug_one_shared_library:
COMPILER: "gcc"
MODE: "debug"
LIB_NATURE: "shared"
OS: "fedora"
IS_ONLY_ONE_LIB: "True"
......@@ -102,7 +96,6 @@ build_fedora_gcc_release_several_static_libraries:
COMPILER: "gcc"
MODE: "release"
LIB_NATURE: "static"
OS: "fedora"
IS_ONLY_ONE_LIB: "False"
check_fedora_gcc_release_several_static_libraries:
......@@ -118,7 +111,6 @@ check_fedora_gcc_release_several_static_libraries:
COMPILER: "gcc"
MODE: "release"
LIB_NATURE: "static"
OS: "fedora"
IS_ONLY_ONE_LIB: "False"
......@@ -133,7 +125,6 @@ build_fedora_clang_debug_several_shared_libraries:
COMPILER: "clang"
MODE: "debug"
LIB_NATURE: "shared"
OS: "fedora"
IS_ONLY_ONE_LIB: "False"
check_fedora_clang_debug_several_shared_libraries:
......@@ -149,7 +140,6 @@ check_fedora_clang_debug_several_shared_libraries:
COMPILER: "clang"
MODE: "debug"
LIB_NATURE: "shared"
OS: "fedora"
IS_ONLY_ONE_LIB: "False"
......@@ -164,7 +154,6 @@ build_fedora_clang_release_one_static_library:
COMPILER: "clang"
MODE: "release"
LIB_NATURE: "static"
OS: "fedora"
IS_ONLY_ONE_LIB: "True"
check_fedora_clang_release_one_static_library:
......@@ -180,5 +169,4 @@ check_fedora_clang_release_one_static_library:
COMPILER: "clang"
MODE: "release"
LIB_NATURE: "static"
OS: "fedora"
IS_ONLY_ONE_LIB: "True"
......@@ -6,6 +6,7 @@ stages:
- valgrind
- analysis
- generate_sonarqube
- deploy_docker_images
# As suggested by https://blog.sparksuite.com/7-ways-to-speed-up-gitlab-ci-cd-times-29f60aab69f9
......
.deploy_docker: &deploy_docker
stage: deploy_docker_images
# only:
# - master
image: registry.gitlab.inria.fr/morefem/thirdpartycompilationfactory/${OS}-${COMPILER}-${MODE}
script:
- DOCKER_BUILDKIT=1 docker build -t registry.gitlab.inria.fr/morefem/corelibrary/morefem/${OS}-${COMPILER}-${MODE} --progress=plain -f Docker/Dockerfile --build-arg os=${OS} --build-arg mode=${MODE} --build-arg compiler=${COMPILER} --build-arg is_single_library=False --build-arg library_type=shared .
- docker push registry.gitlab.inria.fr/morefem/corelibrary/morefem/${OS}-${COMPILER}-${MODE}
deploy_fedora_clang_release:
extends: .deploy_docker
variables:
OS: "fedora"
COMPILER: "clang"
MODE: "release"
......@@ -5,7 +5,8 @@ include:
# - local: '/ExternalTools/Gitlab-CI/doxygen.yml'
# - local: '/ExternalTools/Gitlab-CI/valgrind.yml'
# - local: '/ExternalTools/Gitlab-CI/verrou.yml' #1496 - not ready
- local: '/ExternalTools/Gitlab-CI/analysis.yml'
# - local: '/ExternalTools/Gitlab-CI/analysis.yml'
- local: '/ExternalTools/Gitlab-CI/deploy_docker_images.yml'
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment