This commit is contained in:
parent
1c1ab65a80
commit
1c792e488f
19
.drone.yml
19
.drone.yml
@ -20,13 +20,18 @@ steps:
|
|||||||
SSH_KEY:
|
SSH_KEY:
|
||||||
from_secret: SSH_KEY
|
from_secret: SSH_KEY
|
||||||
commands:
|
commands:
|
||||||
- apt-get install iputils-ping -y
|
- echo "test" >> text.txt
|
||||||
- ping ya.ru
|
- eval $(ssh-agent -s)
|
||||||
# - echo "test" >> text.txt
|
- echo "$SSH_KEY" | ssh-add -
|
||||||
# - eval $(ssh-agent -s)
|
- mkdir -p ~/.ssh
|
||||||
# - echo "$SSH_KEY" | ssh-add -
|
- chmod 700 ~/.ssh
|
||||||
# - mkdir -p ~/.ssh
|
- echo "test" >> test.txt
|
||||||
# - chmod 700 ~/.ssh
|
- 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
|
# - ssh-keyscan -t rsa git.struchkov.dev >> ~/.ssh/known_hosts
|
||||||
# - chmod 644 ~/.ssh/known_hosts
|
# - chmod 644 ~/.ssh/known_hosts
|
||||||
# - echo "$GPG_PRIVATE_KEY" >> gpg.key
|
# - echo "$GPG_PRIVATE_KEY" >> gpg.key
|
||||||
|
Loading…
Reference in New Issue
Block a user