Commit da318d35 authored by Anton Borisov's avatar Anton Borisov

Update .gitlab-ci.yml

parent e9e1172c
Pipeline #29 failed with stages
in 0 seconds
......@@ -2,30 +2,27 @@ stages:
- build
- deploy2test
variables:
DOCKER_HOST: tcp://docker:2375
DOCKER_DRIVER: overlay2
DOCKER_URL_CUSTOM: git.infra:4567
before_script:
- docker login -u "gitlab-ci-token" -p ${CI_JOB_TOKEN} ${CI_REGISTRY}
build:
stage: build
image: docker:stable
services:
- docker:dind
script:
- docker login -u "gitlab-ci-token" -p ${CI_JOB_TOKEN} ${CI_REGISTRY}
- docker build -t ${CI_REGISTRY}/destream-public/destream-blockchain .
- docker push ${CI_REGISTRY}/destream-public/destream-blockchain
environment:
name: ${CI_COMMIT_REF_NAME}
variables:
DOCKER_HOST: tcp://docker:2375
DOCKER_DRIVER: overlay2
only:
- test
deploy2test:
stage: deploy2test
script:
- docker login -u "gitlab-ci-token" -p ${CI_JOB_TOKEN} ${CI_REGISTRY}
- docker-compose down
- docker-compose up -d
- docker ps
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment