Definición de entornos de pre y pro para despliegue.

This commit is contained in:
Marcos Garcia Nuñez
2019-11-27 08:09:12 +01:00
parent 9800ba2f4a
commit 93d2e50217

View File

@@ -7,6 +7,7 @@ before_script:
stages: stages:
- build - build
- test - test
- deploy
ci_build: ci_build:
stage: build stage: build
@@ -19,4 +20,24 @@ ci_test:
stage: test stage: test
script: script:
- cd 1.sources/MyHealth - cd 1.sources/MyHealth
#- ant clean all TestUnitarios #- 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