mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-09 00:00:01 +01:00
removed deploy stage from CI config
This commit is contained in:
parent
39c711ef8f
commit
3d834b3b46
1 changed files with 0 additions and 37 deletions
|
@ -1,7 +1,5 @@
|
|||
variables:
|
||||
GIT_SUBMODULE_STRATEGY: normal
|
||||
DOCKER_COMPOSE_VERSION: 1.14.0
|
||||
PY_DOCKER_VERSION: 2.4.2
|
||||
CI: "true"
|
||||
|
||||
cache:
|
||||
|
@ -16,7 +14,6 @@ cache:
|
|||
stages:
|
||||
- build
|
||||
- test
|
||||
- deploy
|
||||
|
||||
build_job:
|
||||
stage: build
|
||||
|
@ -42,37 +39,3 @@ test_job:
|
|||
- build_job
|
||||
tags:
|
||||
- docker
|
||||
|
||||
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
|
||||
- pip install docker-compose==$DOCKER_COMPOSE_VERSION
|
||||
- pip install -U docker==$PY_DOCKER_VERSION
|
||||
- mkdir -p $DOCKER_CERT_PATH
|
||||
- echo "$DEPLOYMENT_CACERT" > $DOCKER_CERT_PATH/ca.pem
|
||||
- echo "$DEPLOYMENT_CLIENT_CERT" > $DOCKER_CERT_PATH/cert.pem
|
||||
- echo "$DEPLOYMENT_CLIENT_KEY" > $DOCKER_CERT_PATH/key.pem
|
||||
- docker --version
|
||||
- docker-compose --version
|
||||
- docker info
|
||||
script:
|
||||
- docker-compose pull
|
||||
- docker-compose build --no-cache
|
||||
- docker-compose up -d
|
||||
after_script:
|
||||
- docker-compose rm -f
|
||||
image: docker:17
|
||||
dependencies:
|
||||
- build_job
|
||||
tags:
|
||||
- docker
|
||||
|
|
Loading…
Add table
Reference in a new issue