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: ...@@ -2,30 +2,27 @@ stages:
- build - build
- deploy2test - 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: build:
stage: build stage: build
image: docker:stable image: docker:stable
services: services:
- docker:dind - docker:dind
script: script:
- docker login -u "gitlab-ci-token" -p ${CI_JOB_TOKEN} ${CI_REGISTRY}
- docker build -t ${CI_REGISTRY}/destream-public/destream-blockchain . - docker build -t ${CI_REGISTRY}/destream-public/destream-blockchain .
- docker push ${CI_REGISTRY}/destream-public/destream-blockchain - docker push ${CI_REGISTRY}/destream-public/destream-blockchain
environment: environment:
name: ${CI_COMMIT_REF_NAME} name: ${CI_COMMIT_REF_NAME}
variables:
DOCKER_HOST: tcp://docker:2375
DOCKER_DRIVER: overlay2
only: only:
- test - test
deploy2test: deploy2test:
stage: deploy2test stage: deploy2test
script: script:
- docker login -u "gitlab-ci-token" -p ${CI_JOB_TOKEN} ${CI_REGISTRY}
- docker-compose down - docker-compose down
- docker-compose up -d - docker-compose up -d
- docker ps - 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