Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
Agiliza
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
evologica
Agiliza
Commits
eae9c315
Commit
eae9c315
authored
Sep 09, 2021
by
Rafael
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adiciona jobs do cliente e agente homolog no CI
parent
215a01cb
Pipeline
#7963
passed with stage
in 2 minutes and 34 seconds
Changes
3
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
76 additions
and
4 deletions
+76
-4
.gitlab-ci.yml
.gitlab-ci.yml
+74
-2
staging.json
cli/web/agente/config/staging.json
+1
-1
staging.json
cli/web/cliente/config/staging.json
+1
-1
No files found.
.gitlab-ci.yml
View file @
eae9c315
...
...
@@ -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:
...
...
cli/web/agente/config/staging.json
View file @
eae9c315
{
"API_URL"
:
"http://1
72.16.17.3
:8080"
,
"API_URL"
:
"http://1
92.168.0.65
:8080"
,
"APP_NAME_BROKER"
:
"@agiliza-dev/agente"
,
"APP_NAME_CUSTOMER"
:
"@agiliza-dev/cliente"
,
"SESSION_KEY_BROKER"
:
"@agiliza-dev/agente"
,
...
...
cli/web/cliente/config/staging.json
View file @
eae9c315
{
"API_URL"
:
"http://1
72.16.17.3
:8080"
,
"API_URL"
:
"http://1
92.168.0.65
:8080"
,
"APP_NAME_BROKER"
:
"@agiliza-dev/agente"
,
"APP_NAME_CUSTOMER"
:
"@agiliza-dev/cliente"
,
"SESSION_KEY_BROKER"
:
"@agiliza-dev/agente"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment