From f1421673a6175f0774c45db757cb2675793b0c3f Mon Sep 17 00:00:00 2001 From: Miguel Prada <miguel.prada@tecnalia.com> Date: Mon, 11 Feb 2019 09:40:39 +0100 Subject: [PATCH] Add initial deployment steps --- .gitlab-industrial-ci-kinetic-no-rosinstall.yml | 13 +++++++++++++ .gitlab-industrial-ci-kinetic-with-rosinstall.yml | 13 +++++++++++++ 2 files changed, 26 insertions(+) diff --git a/.gitlab-industrial-ci-kinetic-no-rosinstall.yml b/.gitlab-industrial-ci-kinetic-no-rosinstall.yml index a6ef310..3a0ffdc 100644 --- a/.gitlab-industrial-ci-kinetic-no-rosinstall.yml +++ b/.gitlab-industrial-ci-kinetic-no-rosinstall.yml @@ -35,6 +35,19 @@ industrial_ci_kinetic: except: - tags +industrial_ci_kinetic_deploy: + extends: .industrial_ci_kinetic + variables: + AFTER_SCRIPT: "wget -q -O - https://git.code.tecnalia.com/tecnalia_robotics-public/gitlab_templates/raw/deploy-image-build/scripts/pre-deploy-cleanup.bash | bash" + after_script: + - cd $(mktemp -d) + - wget https://git.code.tecnalia.com/tecnalia_robotics-public/gitlab_templates/raw/deploy-image-build/deploy/Dockerfile + - wget https://git.code.tecnalia.com/tecnalia_robotics-public/gitlab_templates/raw/deploy-image-build/deploy/ros_entrypoint.bash + - docker build -t ${CI_PROJECT_NAME}:${CI_COMMIT_REF_NAME} . + - docker push ${CI_PROJECT_NAME}:${CI_COMMIT_REF_NAME} + only: + - tags + ########################################################## ## Simple check for basic Python syntax errors; this is much less thorough than ## other options like pylint, but much faster and less strict diff --git a/.gitlab-industrial-ci-kinetic-with-rosinstall.yml b/.gitlab-industrial-ci-kinetic-with-rosinstall.yml index 85e80b6..04c1f1b 100644 --- a/.gitlab-industrial-ci-kinetic-with-rosinstall.yml +++ b/.gitlab-industrial-ci-kinetic-with-rosinstall.yml @@ -37,6 +37,19 @@ industrial_ci_kinetic: except: - tags +industrial_ci_kinetic_deploy: + extends: .industrial_ci_kinetic + variables: + AFTER_SCRIPT: "wget -q -O - https://git.code.tecnalia.com/tecnalia_robotics-public/gitlab_templates/raw/deploy-image-build/scripts/pre-deploy-cleanup.bash | bash" + after_script: + - cd $(mktemp -d) + - wget https://git.code.tecnalia.com/tecnalia_robotics-public/gitlab_templates/raw/deploy-image-build/deploy/Dockerfile + - wget https://git.code.tecnalia.com/tecnalia_robotics-public/gitlab_templates/raw/deploy-image-build/deploy/ros_entrypoint.bash + - docker build -t ${CI_PROJECT_NAME}:${CI_COMMIT_REF_NAME} . + - docker push ${CI_PROJECT_NAME}:${CI_COMMIT_REF_NAME} + only: + - tags + ########################################################## ## Simple check for basic Python syntax errors; this is much less thorough than ## other options like pylint, but much faster and less strict -- GitLab