Commit c63d476d authored by Rafael's avatar Rafael

Corrige arquivo de CI

parent de8aa8ef
Pipeline #7948 failed with stage
in 4 minutes and 22 seconds
...@@ -2,8 +2,8 @@ stages: ...@@ -2,8 +2,8 @@ stages:
- deploy - deploy
variables: variables:
LC_ALL: 'en_US.UTF-8' LC_ALL: "en_US.UTF-8"
LANG: 'en_US.UTF-8' LANG: "en_US.UTF-8"
.has_no_tags: &has_no_tags .has_no_tags: &has_no_tags
only: only:
...@@ -48,23 +48,6 @@ variables: ...@@ -48,23 +48,6 @@ variables:
variables: variables:
- $CI_COMMIT_TAG =~ /AppAgente[/]web[/][0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}/ - $CI_COMMIT_TAG =~ /AppAgente[/]web[/][0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}/
.has_tag_api_internal: &has_tag_api_internal
stage: deploy
only:
refs:
- tags
variables:
- $CI_COMMIT_TAG =~ /api[/][0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}/
.has_tag_server: &has_tag_server
stage: deploy
only:
refs:
- tags
variables:
- $CI_COMMIT_TAG =~ /srv[/][0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}/
################################################################################################# #################################################################################################
# WEB APP BUILD # # WEB APP BUILD #
################################################################################################# #################################################################################################
...@@ -72,7 +55,7 @@ variables: ...@@ -72,7 +55,7 @@ variables:
.build_app_cliente_web: &build_app_cliente_web .build_app_cliente_web: &build_app_cliente_web
before_script: before_script:
- cd cli/web/cliente - cd cli/web/cliente
- yarn - yarn
- yarn build - yarn build
artifacts: artifacts:
name: dist name: dist
...@@ -83,42 +66,40 @@ variables: ...@@ -83,42 +66,40 @@ variables:
- rm node_modules - rm node_modules
- rm dist - rm dist
.build_app_agente_web: &build_app_agente_web
deploy_app_cliente_web: before_script:
<<: *has_tag_cliente_web - cd cli/web/agente
<<: *web - yarn
<<: *build_app_cliente_web - yarn build
script:
- cp -R cli/web/cliente/dist ~/services/agiliza/cliente
artifacts: artifacts:
name: dist name: dist
paths: paths:
- cli/web/cliente/dist - cli/web/agente/dist
expire_in: 2 weeks expire_in: 2 weeks
after_script: after_script:
- rm node_modules - rm node_modules
- rm dist - rm dist
.build_app_agente_web: &build_app_agente_web deploy_app_cliente_web:
before_script: <<: *has_tag_cliente_web
- cd cli/web/agente <<: *web
- yarn <<: *build_app_cliente_web
- yarn build script:
- cp -R cli/web/cliente/dist ~/services/agiliza/cliente
artifacts: artifacts:
name: dist name: dist
paths: paths:
- cli/web/agente/dist - cli/web/cliente/dist
expire_in: 2 weeks expire_in: 2 weeks
after_script: after_script:
- rm node_modules - rm node_modules
- rm dist - rm dist
deploy_app_agente_web:
deploy_app_cliente_web: <<: *web
<<: *web <<: *has_tag_agente_web
<<: *has_tag_agente_web
<<: *build_app_agente_web <<: *build_app_agente_web
script: script:
- cp -R cli/web/cliente/dist ~/services/agiliza/cliente - cp -R cli/web/cliente/dist ~/services/agiliza/cliente
artifacts: artifacts:
name: dist name: dist
...@@ -128,9 +109,6 @@ deploy_app_cliente_web: ...@@ -128,9 +109,6 @@ deploy_app_cliente_web:
after_script: after_script:
- rm node_modules - rm node_modules
- rm dist - rm dist
################################################################################################# #################################################################################################
# BADGES # # BADGES #
################################################################################################# #################################################################################################
......
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