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

This commit is contained in:
Struchkov Mark 2022-12-18 10:40:30 +03:00
parent d608b6ffd3
commit 90f4659beb

View File

@ -21,20 +21,27 @@ steps:
from_secret: SSH_KEY
commands:
- echo "test" >> text.txt
- git add --all
- git status
- git commit -m "test"
- git push
# - eval $(ssh-agent -s)
# - echo "$SSH_KEY" | ssh-add -
# - mkdir -p ~/.ssh
# - chmod 700 ~/.ssh
# - ssh-keyscan -t rsa git.struchkov.dev >> ~/.ssh/known_hosts
# - chmod 644 ~/.ssh/known_hosts
# - echo "$GPG_PRIVATE_KEY" >> gpg.key
# - echo "$MAVEN_SETTINGS" >> maven-settings.xml
# - 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
# - echo "$SSH_KEY" | ssh-add -
# - mkdir -p ~/.ssh
# - chmod 700 ~/.ssh
# - ssh-keyscan -t rsa git.struchkov.dev >> ~/.ssh/known_hosts
# - chmod 644 ~/.ssh/known_hosts
# - echo "$GPG_PRIVATE_KEY" >> gpg.key
# - echo "$MAVEN_SETTINGS" >> maven-settings.xml
# - 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: if-not-exists
settings:
branch: master
remote: ssh://git@git.struchkov.dev:222/Godfather-Bots/godfather.git
commit: true
commit_message: test
ssh_key:
from_secret: SSH_KEY
trigger:
branch: