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: stages:
- build - build
- test - deploy2test_and_tests
- deploy2test
build: build:
stage: build stage: build
...@@ -14,8 +13,8 @@ build: ...@@ -14,8 +13,8 @@ build:
script: script:
- env - env
- docker login -u "gitlab-ci-token" -p ${CI_JOB_TOKEN} ${CI_REGISTRY} - 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_IMAGE} .
- docker push ${CI_REGISTRY}/destream-public/destream-blockchain - docker push ${CI_REGISTRY_IMAGE}
environment: environment:
name: ${CI_COMMIT_REF_NAME} name: ${CI_COMMIT_REF_NAME}
url: https://xvideos.com url: https://xvideos.com
...@@ -25,7 +24,7 @@ build: ...@@ -25,7 +24,7 @@ build:
- buidl1-dind - buidl1-dind
test: test:
stage: test stage: deploy2test_and_tests
image: docker:stable image: docker:stable
services: services:
- docker:dind - docker:dind
...@@ -33,7 +32,7 @@ test: ...@@ -33,7 +32,7 @@ test:
DOCKER_HOST: tcp://docker:2375 DOCKER_HOST: tcp://docker:2375
DOCKER_DRIVER: overlay2 DOCKER_DRIVER: overlay2
script: script:
- docker build -f Dockerfile-Tests . - docker build -f Dockerfile-tests .
environment: environment:
name: ${CI_COMMIT_REF_NAME} name: ${CI_COMMIT_REF_NAME}
url: https://xvideos.com url: https://xvideos.com
...@@ -43,7 +42,7 @@ test: ...@@ -43,7 +42,7 @@ test:
- buidl1-dind - buidl1-dind
deploy2test: deploy2test:
stage: deploy2test stage: deploy2test_and_tests
script: script:
- docker login -u "gitlab-ci-token" -p ${CI_JOB_TOKEN} ${CI_REGISTRY} - docker login -u "gitlab-ci-token" -p ${CI_JOB_TOKEN} ${CI_REGISTRY}
- docker-compose down - 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