From 93d2e50217952c31a981818f88a2f129c27ce60e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Garcia=20Nu=C3=B1ez?= Date: Wed, 27 Nov 2019 08:09:12 +0100 Subject: [PATCH] =?UTF-8?q?Definici=C3=B3n=20de=20entornos=20de=20pre=20y?= =?UTF-8?q?=20pro=20para=20despliegue.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 66ccf66..ffd4b72 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,6 +7,7 @@ before_script: stages: - build - test + - deploy ci_build: stage: build @@ -19,4 +20,24 @@ ci_test: stage: test script: - cd 1.sources/MyHealth - #- ant clean all TestUnitarios \ No newline at end of file + #- ant clean all TestUnitarios + +deploy_pre: + stage: deploy + script: + - echo "Despliegue al servidor de PRE" + cp 1.sources/MyHealth/dist/MyHealth.ear ${JBOSS_HOME}/standalone/deployments/ + + environment: + name: pre + url: https://localhost:8080/MyHealth + +deploy_pro: + stage: deploy + script: + - echo "Despliegue al servidor de PRO" + cp 1.sources/MyHealth/dist/MyHealth.ear ${JBOSS_HOME}/standalone/deployments/ + + environment: + name: pro + url: https://localhost:8080/MyHealth \ No newline at end of file