From 722e67ac0353a4476e8493ec621e5cd545f203fb Mon Sep 17 00:00:00 2001 From: Russia9 Date: Thu, 14 Apr 2022 01:41:27 +0300 Subject: [PATCH] drone.yml --- .drone.yml | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/.drone.yml b/.drone.yml index 1e11d92..2e8cc0a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -18,20 +18,20 @@ steps: cache_from: - cr.selcloud.ru/russia9/${DRONE_REPO_NAME}/${DRONE_COMMIT_BRANCH}:latest -# - name: deploy -# image: appleboy/drone-ssh -# settings: -# host: -# from_secret: ssh_address -# username: -# from_secret: ssh_username -# key: -# from_secret: ssh_key -# port: 22 -# script_stop: true -# script: -# - docker-compose -f /srv/cw3-offers/docker-compose.yml pull -# - docker-compose -f /srv/cw3-offers/docker-compose.yml up -d -# when: -# branch: -# - master + - name: deploy + image: appleboy/drone-ssh + settings: + host: + from_secret: ssh_address + username: + from_secret: ssh_username + key: + from_secret: ssh_key + port: 22 + script_stop: true + script: + - docker-compose -f /srv/chatwars-offers/docker-compose.yml pull + - docker-compose -f /srv/chatwars-offers/docker-compose.yml up -d + when: + branch: + - master