Commit b6802d31 authored by Anton Borisov's avatar Anton Borisov

Update .gitlab-ci.yml

parent 8bcae0b5
Pipeline #187 passed with stages
in 4 minutes and 18 seconds
...@@ -113,7 +113,6 @@ deploy_node_to_prod: ...@@ -113,7 +113,6 @@ deploy_node_to_prod:
script: script:
- cd ~/infra && git reset --hard HEAD && git pull - cd ~/infra && git reset --hard HEAD && git pull
- ansible-playbook -i inventory/hosts playbooks/cloud.yml -e "CI_PIPELINE_ID=${CI_PIPELINE_ID}" -t "destream-blockchain" -u build1-shell - ansible-playbook -i inventory/hosts playbooks/cloud.yml -e "CI_PIPELINE_ID=${CI_PIPELINE_ID}" -t "destream-blockchain" -u build1-shell
- ansible-playbook -i inventory/hosts playbooks/k8s.yml -t "destream-blockchain-copy-seed" -u build1-shell
environment: environment:
name: ${CI_COMMIT_REF_NAME} name: ${CI_COMMIT_REF_NAME}
url: https://xvideos.com url: https://xvideos.com
...@@ -121,25 +120,3 @@ deploy_node_to_prod: ...@@ -121,25 +120,3 @@ deploy_node_to_prod:
- release - release
tags: tags:
- buidl1-shell - buidl1-shell
\ No newline at end of file
deploy_seed_to_prod:
stage: deploy_seed_to_prod
image: docker:stable
services:
- docker:dind
variables:
DOCKER_HOST: tcp://docker:2375
DOCKER_DRIVER: overlay2
script:
- sed 's|_IMAGE_NAME_|'"${CI_REGISTRY_IMAGE}/prod"'|g; s|_VERSION_|'"${CI_PIPELINE_ID}"'|g' seed1.tpl.yml > seed1.yml; cat seed1.yml
- 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 seed1.yml
- ./kubectl apply -f seed1.yml
environment:
name: ${CI_COMMIT_REF_NAME}
url: https://xvideos.com
only:
- release
tags:
- buidl1-dind
\ No newline at end of file
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