Commit eae9c315 authored by Rafael's avatar Rafael

Adiciona jobs do cliente e agente homolog no CI

parent 215a01cb
Pipeline #7963 passed with stage
in 2 minutes and 34 seconds
......@@ -48,6 +48,22 @@ variables:
variables:
- $CI_COMMIT_TAG =~ /AppAgente[/]web[/][0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}/
.has_tag_cliente_homolog_web: &has_tag_cliente_homolog_web
stage: deploy
only:
refs:
- tags
variables:
- $CI_COMMIT_TAG =~ /AppClienteHomolog[/]web[/][0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}/
.has_tag_agente_homolog_web: &has_tag_agente_homolog_web
stage: deploy
only:
refs:
- tags
variables:
- $CI_COMMIT_TAG =~ /AppAgenteHomolog[/]web[/][0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}/
#################################################################################################
# WEB APP BUILD #
#################################################################################################
......@@ -56,7 +72,7 @@ variables:
before_script:
- cd cli/web/cliente
- yarn
- yarn build
- yarn build:staging
artifacts:
name: dist
paths:
......@@ -67,7 +83,7 @@ variables:
before_script:
- cd cli/web/agente
- yarn
- yarn build
- yarn build:staging
artifacts:
name: dist
paths:
......@@ -87,6 +103,43 @@ deploy_app_agente_web:
<<: *build_app_agente_web
script:
- cp -R dist ~/services/agiliza/agente
.build_app_cliente_homolog_web: &build_app_cliente_homolog_web
before_script:
- cd cli/web/cliente
- yarn
- yarn build
artifacts:
name: dist
paths:
- cli/web/cliente/dist
expire_in: 2 weeks
.build_app_agente_homolog_web: &build_app_agente_homolog_web
before_script:
- cd cli/web/agente
- yarn
- yarn build
artifacts:
name: dist
paths:
- cli/web/agente/dist
expire_in: 2 weeks
deploy_app_cliente_homolog_web:
<<: *web
<<: *has_tag_cliente_homolog_web
<<: *build_app_cliente_homolog_web
script:
- cp -R dist ~/services/agilizaHomolog/cliente
deploy_app_agente_homolog_web:
<<: *web
<<: *has_tag_agente_homolog_web
<<: *build_app_agente_homolog_web
script:
- cp -R dist ~/services/agilizaHomolog/agente
#################################################################################################
# DEPLOY #
#################################################################################################
......@@ -108,9 +161,28 @@ deploy_app_agente:
- docker stop AgilizaAgente
- docker rm AgilizaAgente
- docker-compose up -d
deploy_app_cliente_homolog:
<<: *web
<<: *has_tag_cliente_homolog_web
script:
- cd ~/services/agilizaHomolog/cliente
- docker stop AgilizaClienteHomolog
- docker rm AgilizaClienteHomolog
- docker-compose up -d
deploy_app_agente_homolog:
<<: *web
<<: *has_tag_agente_homolog_web
script:
- cd ~/services/agilizaHomolog/agente
- docker stop AgilizaAgenteHomolog
- docker rm AgilizaAgenteHomolog
- docker-compose up -d
#################################################################################################
# BADGES #
#################################################################################################
# generate_badges:
# stage: badges
# tags:
......
{
"API_URL": "http://172.16.17.3:8080",
"API_URL": "http://192.168.0.65:8080",
"APP_NAME_BROKER": "@agiliza-dev/agente",
"APP_NAME_CUSTOMER": "@agiliza-dev/cliente",
"SESSION_KEY_BROKER": "@agiliza-dev/agente",
......
{
"API_URL": "http://172.16.17.3:8080",
"API_URL": "http://192.168.0.65:8080",
"APP_NAME_BROKER": "@agiliza-dev/agente",
"APP_NAME_CUSTOMER": "@agiliza-dev/cliente",
"SESSION_KEY_BROKER": "@agiliza-dev/agente",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment