Commit e50014f3 authored by Sergei Zubov's avatar Sergei Zubov

Merge branch 'test' into 'release'

Test

See merge request !2
parents 73573c27 c9e7d9a4
Pipeline #748 failed with stages
in 17 seconds
...@@ -7,9 +7,11 @@ stages: ...@@ -7,9 +7,11 @@ stages:
- deploy_node_to_prod - deploy_node_to_prod
- deploy_seed_to_prod - deploy_seed_to_prod
variables:
DOCKER_DRIVER: overlay2
build_dev: build_dev:
stage: build_dev stage: build_dev
image: docker:stable
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 build -t ${CI_REGISTRY_IMAGE}/dev:${CI_PIPELINE_ID} . - docker build -t ${CI_REGISTRY_IMAGE}/dev:${CI_PIPELINE_ID} .
...@@ -24,7 +26,6 @@ build_dev: ...@@ -24,7 +26,6 @@ build_dev:
build_test: build_test:
stage: build_test stage: build_test
image: docker:stable
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 build -t ${CI_REGISTRY_IMAGE}/test:${CI_PIPELINE_ID} . - docker build -t ${CI_REGISTRY_IMAGE}/test:${CI_PIPELINE_ID} .
...@@ -39,12 +40,6 @@ build_test: ...@@ -39,12 +40,6 @@ build_test:
build_prod: build_prod:
stage: build_prod stage: build_prod
image: docker:stable
services:
- docker:dind
variables:
DOCKER_HOST: tcp://docker:2375
DOCKER_DRIVER: overlay2
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 build -t ${CI_REGISTRY_IMAGE}/prod:${CI_PIPELINE_ID} . - docker build -t ${CI_REGISTRY_IMAGE}/prod:${CI_PIPELINE_ID} .
...@@ -59,13 +54,11 @@ build_prod: ...@@ -59,13 +54,11 @@ build_prod:
deploy_to_test: deploy_to_test:
stage: deploy_to_test stage: deploy_to_test
image: docker:stable
script: script:
- sed 's|_IMAGE_NAME_|'"${CI_REGISTRY_IMAGE}/test"'|g; s|_VERSION_|'"${CI_PIPELINE_ID}"'|g' app.tpl.yml > app.yml; cat app.yml - sed 's|_IMAGE_NAME_|'"${CI_REGISTRY_IMAGE}/test"'|g; s|_VERSION_|'"${CI_PIPELINE_ID}"'|g' app.tpl.yml > app.yml; cat app.yml
- wget https://storage.googleapis.com/kubernetes-release/release/v1.13.3/bin/linux/amd64/kubectl && chmod +x ./kubectl - wget https://storage.googleapis.com/kubernetes-release/release/v1.13.3/bin/linux/amd64/kubectl && chmod +x ./kubectl
- wget https://github.com/garethr/kubeval/releases/download/0.7.3/kubeval-linux-amd64.tar.gz && tar xvf kubeval-linux-amd64.tar.gz && ./kubeval app.yml - wget https://github.com/garethr/kubeval/releases/download/0.7.3/kubeval-linux-amd64.tar.gz && tar xvf kubeval-linux-amd64.tar.gz && ./kubeval app.yml
- ./kubectl apply -f app.yml - ./kubectl apply -f app.yml
# allow_failure: true
environment: environment:
name: ${CI_COMMIT_REF_NAME} name: ${CI_COMMIT_REF_NAME}
url: https://xvideos.com url: https://xvideos.com
...@@ -76,7 +69,6 @@ deploy_to_test: ...@@ -76,7 +69,6 @@ deploy_to_test:
run_test: run_test:
stage: run_tests stage: run_tests
image: docker:stable
script: script:
- docker build -f Dockerfile-tests . - docker build -f Dockerfile-tests .
allow_failure: true allow_failure: true
......
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