Update .gitlab-ci.yml file

This commit is contained in:
Slava
2024-03-11 21:56:05 +00:00
parent 8bb91f2eda
commit 07cf937141

View File

@@ -49,20 +49,18 @@ job:
image: 'alpine'
only:
- master
variables:
SSH_PRIVATE_KEY: "$SSH_PRIVATE_KEY"
cache:
paths:
- '~/.ssh'
- '/usr/bin'
before_script:
- echo "$SSH_PRIVATE_KEY"
- echo $SSH_PRIVATE_KEY
- apk add openssh-client > /dev/null
- eval $(ssh-agent -s)
# - chmod 400 "$SSH_ARIVATE_KEY"
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- cp "$SSH_PRIVATE_KEY" ~/.ssh/id_rsa
- cp $SSH_PRIVATE_KEY ~/.ssh/id_rsa
- ssh-add ~/.ssh/id_rsa
- ssh $BOT_HOST -y