Enable sandbox mode with CICD deply strategy

This commit is contained in:
Josepablo Cruz Baas
2026-03-28 21:18:37 +00:00
parent 40d2d9624c
commit 8fd5b4b1bc
4 changed files with 102 additions and 20 deletions

View File

@@ -1,30 +1,54 @@
stages:
- build
- upload
- deploy
variables:
PIPELINE_WORK_DIR: "./"
DOCKERFILE_PATH: "./"
BUILD_NAME: "enruta_web_dashboard"
CONTAINER_NAME: "enruta-web_dashboard"
VITE_API_URL: "https://api.etaviaporte.com/api"
PUBLIC_PORT: 8000
PRIVATE_PORT: 8000
build-job:
stage: build
script:
- . ./scripts/ci_functions.sh
- build_static
- build_production
artifacts:
paths:
- $PIPELINE_WORK_DIR/$BUILD_NAME.zip
expire_in: 1 week
only:
- master
deploy-job:
stage: deploy
script:
- . ./scripts/ci_functions.sh
- deploy
- deploy_production
only:
- master
build-sandbox-job:
stage: build
script:
- . ./scripts/ci_functions.sh
- build_sandbox
only:
- develop
upload-sandbox-job:
stage: upload
script:
- . ./scripts/ci_functions.sh
- upload_sandbox
only:
- develop
deploy-sandbox-job:
stage: deploy
script:
- . ./scripts/ci_functions.sh
- deploy_sandbox
only:
- develop