From b1331aa8c2f0d182be2376e2321e7ad7ddf13fea Mon Sep 17 00:00:00 2001 From: Anton Vakhrushev Date: Sat, 14 Mar 2020 20:38:48 +0300 Subject: [PATCH] Use sup tool for deploy Fix host --- .circleci/config.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4095950..12b95d9 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -50,13 +50,18 @@ jobs: - checkout - add_ssh_keys - run: apt-get update; apt-get install -yy openssh-client wget - - run: ssh-keyscan "$TARGET_HOST" >> ~/.ssh/known_hosts + - run: ssh-keyscan "vakhrushev.me" >> ~/.ssh/known_hosts # Prepare sup deploy tool - run: wget https://github.com/pressly/sup/releases/download/v0.5.3/sup-linux64 -O sup - run: chmod +x ./sup # Deploy app - run: echo "$YANDEX_CLOUD_DOCKER_REGISTRY_KEY" > registry_key.json - - run: ./sup -env REG_AUTH_FILE=registry_key.json -debug production deploy + - run: | + ./sup \ + -env REG_AUTH_FILE=registry_key.json \ + -env \ + -debug \ + production deploy workflows: version: 2