Skip to content
Snippets Groups Projects
Commit b8607ce4 authored by Benguria Elguezabal, Gorka's avatar Benguria Elguezabal, Gorka
Browse files

y1 baseline

parent 6f1ec845
No related branches found
No related tags found
No related merge requests found
stages:
- build
- deploy
- stop
# - debug
variables:
GIT_SUBMODULE_STRATEGY: normal
.common_variables:
variables:
TZ: Madrid
SERVER_HOST: sh.piacere.esilab.org
HTTPS_PORT: 8445
SMTP_USER_EMAIL: piacere@esilab.org
PROJECT_NAME: piacere-sh
GIT_SUBMODULES: init
COMPOSE_FILE: "docker-compose.yaml:docker-compose-dev.yaml:docker-compose-traefik-tecnalia-selfsigned.yaml:docker-compose-expose.yaml"
.main:
extends:
- .common_variables
variables:
# these variables take precedence over .env
# CERTIFICATE_SIGNING_KEY_PASSPHRASE and ADMIN_PASSWORD defined in variables at settings/ci_cd
COMPOSE_PROJECT_NAME: piacere-sh
COMPOSE_PROJECT_VERSION: main
ADD_DEFAULT_CA: "true"
only:
- main
tags:
- docker
- docker-compose
- integration
- piacere-sh
- shell
.build:
script:
- echo "build images"
- docker-compose build --parallel
.deploy:
script:
- echo "Deploy to the environment"
- docker-compose up -d --remove-orphans
.stop:
variables:
GIT_STRATEGY: none
script:
- echo "Stops the environment"
- docker-compose down --remove-orphans
build_main:
stage: build
extends:
- .main
- .build
deploy_main:
stage: deploy
extends:
- .main
- .deploy
environment:
name: main
url: https://$SERVER_HOST:$HTTPS_PORT
on_stop: stop_main
stop_main:
stage: stop
extends:
- .main
- .stop
environment:
name: main
action: stop
when: manual
# job-docker-compose-config:
# stage: debug
# extends:
# - .main
# when: manual
# script:
# - docker-compose config
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment