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:
|
before_script:
|
||||||
- echo "Installing the dependencies..."
|
- echo "Installing the dependencies..."
|
||||||
- apk add rsync openssh-client
|
- apk add rsync openssh-client
|
||||||
- mkdir -p ~/.ssh
|
- mkdir -m 700 -p ~/.ssh
|
||||||
- chmod 700 ~/.ssh
|
- echo "$DEPLOY_PRIVATE_KEY" > ~/.ssh/id_rsa
|
||||||
- eval $(ssh-agent -s)
|
- chmod 600 ~/.ssh/id_rsa
|
||||||
- echo "$DEPLOY_PRIVATE_KEY" | tr -d '\r' | ssh-add -
|
|
||||||
script:
|
script:
|
||||||
- rsync -e "ssh -o StrictHostKeyChecking=no" -ciIlprz out/ deploy@devurandom.xyz:~/out/
|
- rsync -e "ssh -o StrictHostKeyChecking=no" -ciIlprz out/ deploy@devurandom.xyz:~/out/
|
||||||
|
|
Loading…
Add table
Reference in a new issue