From 1c792e488fbb1b307dc3d7e421d16fee611b3687 Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Sun, 18 Dec 2022 10:46:13 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B0=D1=81=D1=82=D1=80=D0=BE=D0=B9?= =?UTF-8?q?=D0=BA=D0=B0=20CICD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.drone.yml b/.drone.yml index 3003901..33ef220 100644 --- a/.drone.yml +++ b/.drone.yml @@ -20,13 +20,18 @@ steps: SSH_KEY: from_secret: SSH_KEY commands: - - apt-get install iputils-ping -y - - ping ya.ru - # - echo "test" >> text.txt - # - eval $(ssh-agent -s) - # - echo "$SSH_KEY" | ssh-add - - # - mkdir -p ~/.ssh - # - chmod 700 ~/.ssh + - echo "test" >> text.txt + - eval $(ssh-agent -s) + - echo "$SSH_KEY" | ssh-add - + - mkdir -p ~/.ssh + - chmod 700 ~/.ssh + - echo "test" >> test.txt + - git add --all + - git diff-index --quiet HEAD --ignore-submodules + - git commit -m test + - git remote add deploy ssh://git@git.struchkov.dev:222/Godfather-Bots/godfather.git + - git push deploy HEAD:master + # - ssh-keyscan -t rsa git.struchkov.dev >> ~/.ssh/known_hosts # - chmod 644 ~/.ssh/known_hosts # - echo "$GPG_PRIVATE_KEY" >> gpg.key