Update 2 files
- /deployments/staging/docker-compose.yaml - /.gitlab-ci.yml
This commit is contained in:
parent
588fd03772
commit
fdee3a86c9
@ -1,42 +1,23 @@
|
|||||||
include:
|
include:
|
||||||
- project: "devops/pena-continuous-integration"
|
- project: "devops/pena-continuous-integration"
|
||||||
file: "/templates/docker/build-template.gitlab-ci.yml"
|
file: "/templates/docker/build-template.gitlab-ci.yml"
|
||||||
- project: "devops/pena-continuous-integration"
|
|
||||||
file: "/templates/docker/clean-template.gitlab-ci.yml"
|
|
||||||
- project: "devops/pena-continuous-integration"
|
- project: "devops/pena-continuous-integration"
|
||||||
file: "/templates/docker/deploy-template.gitlab-ci.yml"
|
file: "/templates/docker/deploy-template.gitlab-ci.yml"
|
||||||
stages:
|
stages:
|
||||||
- clean
|
|
||||||
- build
|
- build
|
||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
clear-old-images:
|
|
||||||
tags:
|
|
||||||
- frontbuild
|
|
||||||
extends: .clean_template
|
|
||||||
variables:
|
|
||||||
STAGING_BRANCH: "main"
|
|
||||||
PRODUCTION_BRANCH: "main"
|
|
||||||
image:
|
|
||||||
name: docker/compose:1.28.0
|
|
||||||
entrypoint: [""]
|
|
||||||
before_script:
|
|
||||||
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
|
||||||
- docker images
|
|
||||||
script:
|
|
||||||
- docker system prune -af
|
|
||||||
build-app:
|
build-app:
|
||||||
tags:
|
tags:
|
||||||
- frontbuild
|
- frontbuild
|
||||||
extends: .build_template
|
extends: .build_template
|
||||||
variables:
|
variables:
|
||||||
DOCKER_BUILD_PATH: "./Dockerfile"
|
DOCKER_BUILD_PATH: "./Dockerfile"
|
||||||
STAGING_BRANCH: "main"
|
STAGING_BRANCH: "staging"
|
||||||
PRODUCTION_BRANCH: "main"
|
PRODUCTION_BRANCH: "main"
|
||||||
|
|
||||||
deploy-to-staging:
|
deploy-to-staging:
|
||||||
extends: .deploy_template
|
extends: .deploy_template
|
||||||
variables:
|
tags:
|
||||||
DEPLOY_TO: "staging"
|
- front
|
||||||
BRANCH: "main"
|
- staging
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@ services:
|
|||||||
respondent:
|
respondent:
|
||||||
container_name: respondent
|
container_name: respondent
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
image: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG.$CI_PIPELINE_ID
|
image: $CI_REGISTRY_IMAGE/staging:$CI_COMMIT_REF_SLUG.$CI_PIPELINE_ID
|
||||||
networks:
|
networks:
|
||||||
- marketplace_penahub_frontend
|
- marketplace_penahub_frontend
|
||||||
hostname: respondent
|
hostname: respondent
|
||||||
|
Loading…
Reference in New Issue
Block a user