• deploy.sh

    #!/bin/sh
    
    echo $SSH_PRIVATE_KEY > /tmp/key.pem && chmod 600 /tmp/key.pem
    cd ${CI_WORKSPACE} 
             
    rsync -avL --progress -e "ssh -i /tmp/key.pem" \
                ~/Sites/my_site/* \ 
                root@$INSTANCE:/var/www/html
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment