mirror of
https://github.com/mrrpnya/lipu-sona.git
synced 2025-02-13 16:44:39 +00:00
replaced ssh-agent with a file (also thx to @0x0a_fox)
This commit is contained in:
parent
f23fc4841c
commit
25ea49e28a
1 changed files with 3 additions and 4 deletions
|
@ -27,9 +27,8 @@ deploy-job: # This job runs in the deploy stage.
|
|||
before_script:
|
||||
- echo "Installing the dependencies..."
|
||||
- apk add rsync openssh-client
|
||||
- mkdir -p ~/.ssh
|
||||
- chmod 700 ~/.ssh
|
||||
- eval $(ssh-agent -s)
|
||||
- echo "$DEPLOY_PRIVATE_KEY" | tr -d '\r' | ssh-add -
|
||||
- mkdir -m 700 -p ~/.ssh
|
||||
- echo "$DEPLOY_PRIVATE_KEY" > ~/.ssh/id_rsa
|
||||
- chmod 600 ~/.ssh/id_rsa
|
||||
script:
|
||||
- rsync -e "ssh -o StrictHostKeyChecking=no" -ciIlprz out/ deploy@devurandom.xyz:~/out/
|
||||
|
|
Loading…
Add table
Reference in a new issue