Настройка CICD
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Struchkov Mark 2022-12-18 10:46:13 +03:00
parent 1c1ab65a80
commit 1c792e488f

View File

@ -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