diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 57d8f40f95f82cee807eba2379d145769c544697..80e711bd9fd88ba987f934a74e92c68b22c91cf0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,22 +1,21 @@ variables: GIT_SUBMODULE_STRATEGY: normal + CI: "true" + COMPOSE_TLS_VERSION: "TLSv1_2" + DOCKER_HOST: "$DEPLOYMENT_HOST" + DOCKER_TLS_VERIFY: "1" + DOCKER_CERT_PATH: "certs" DOCKER_COMPOSE_VERSION: 1.14.0 PY_DOCKER_VERSION: 2.4.2 - CI: "true" stages: - deploy -deploy: +review: stage: deploy only: - develop environment: review - variables: - COMPOSE_TLS_VERSION: "TLSv1_2" - DOCKER_HOST: "$DEPLOYMENT_HOST" - DOCKER_TLS_VERIFY: "1" - DOCKER_CERT_PATH: "certs" before_script: - apk add --no-cache py-pip - pip install --upgrade pip @@ -36,7 +35,11 @@ deploy: after_script: - docker-compose rm -f image: docker:17 - dependencies: - - build_job tags: - docker + +#production: +# stage: deploy: +# only: +# - master +# environment: production