This commit is contained in:
parent
1c1ab65a80
commit
1c792e488f
19
.drone.yml
19
.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
|
||||
|
Loading…
Reference in New Issue
Block a user