Skip to content
Snippets Groups Projects
Commit f1421673 authored by Prada Sarasola, Miguel's avatar Prada Sarasola, Miguel
Browse files

Add initial deployment steps

parent 43173a04
Branches
No related tags found
1 merge request!16Deploy image build
......@@ -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
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment