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