Commit 83d641ae authored by Anton Borisov's avatar Anton Borisov

Update .gitlab-ci.yml

parent 7243ba94
Pipeline #34 canceled with stages
in 1 minute and 8 seconds
stages:
- build
- test
- deploy2test
- deploy2test_and_tests
build:
stage: build
......@@ -14,8 +13,8 @@ build:
script:
- env
- 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
- docker build -t ${CI_REGISTRY_IMAGE} .
- docker push ${CI_REGISTRY_IMAGE}
environment:
name: ${CI_COMMIT_REF_NAME}
url: https://xvideos.com
......@@ -25,7 +24,7 @@ build:
- buidl1-dind
test:
stage: test
stage: deploy2test_and_tests
image: docker:stable
services:
- docker:dind
......@@ -33,7 +32,7 @@ test:
DOCKER_HOST: tcp://docker:2375
DOCKER_DRIVER: overlay2
script:
- docker build -f Dockerfile-Tests .
- docker build -f Dockerfile-tests .
environment:
name: ${CI_COMMIT_REF_NAME}
url: https://xvideos.com
......@@ -43,7 +42,7 @@ test:
- buidl1-dind
deploy2test:
stage: deploy2test
stage: deploy2test_and_tests
script:
- docker login -u "gitlab-ci-token" -p ${CI_JOB_TOKEN} ${CI_REGISTRY}
- docker-compose down
......
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