From bee956c7d78a0c5f354eaa9d06b09ca1d1feda4c Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Sun, 18 Dec 2022 14:23:50 +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 | 32 ++++++++++++++++++++++---------- 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/.drone.yml b/.drone.yml index 33ef220..2461a8f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -21,16 +21,16 @@ steps: from_secret: SSH_KEY commands: - 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 + # - 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 @@ -39,6 +39,18 @@ steps: # - gpg --pinentry-mode loopback --passphrase $GPG_PASSPHRASE --import gpg.key # - mvn --settings maven-settings.xml -T 1C -U release:clean release:prepare release:perform --batch-mode + - name: push + image: appleboy/drone-git-push + pull: always + settings: + branch: master + commit: true + commit_message: "test" + remote: "git@git.struchkov.dev:222/Godfather-Bots/godfather.git" + environment: + GIT_PUSH_SSH_KEY: + from_secret: SSH_KEY + trigger: branch: - master