diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 7dfd8f0025b36415738c240ee52e7a839d523af1..0000000000000000000000000000000000000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,87 +0,0 @@ -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