diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2355dbd..b4700dc 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,9 +3,13 @@ include: file: "/templates/docker/build-template.gitlab-ci.yml" - project: "devops/pena-continuous-integration" file: "/templates/docker/deploy-template.gitlab-ci.yml" + - project: "devops/pena-continuous-integration" + file: "/templates/docker/service-discovery.gitlab-ci.yml" stages: - build - deploy + - service-discovery + build-app: tags: - frontbuild @@ -30,3 +34,6 @@ deploy-to-prod: tags: - front - prod + +service-discovery: + extends: .sd_artefacts_template diff --git a/deployments/staging/docker-compose.yaml b/deployments/staging/docker-compose.yaml index 202dea9..4e89603 100644 --- a/deployments/staging/docker-compose.yaml +++ b/deployments/staging/docker-compose.yaml @@ -3,6 +3,9 @@ services: respondent: container_name: respondent restart: unless-stopped + labels: + com.pena.domains: s.hbpn.link + com.pena.front_headers: "Access-Control-Allow-Origin $http_origin always" image: $CI_REGISTRY_IMAGE/staging:$CI_COMMIT_REF_SLUG.$CI_PIPELINE_ID hostname: respondent tty: true