Skip to content

Instantly share code, notes, and snippets.

@augusteo
Created March 19, 2017 02:15
Show Gist options
  • Save augusteo/f8496a3dbe0ee4232836a0022cebb7c5 to your computer and use it in GitHub Desktop.
Save augusteo/f8496a3dbe0ee4232836a0022cebb7c5 to your computer and use it in GitHub Desktop.
image: augusteo/centos-rsync-openssh
before_script:
- eval $(ssh-agent -s)
- ssh-add <(echo "$SSH_PRIVATE_KEY")
- mkdir -p ~/.ssh
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
staging-deployment:
stage: deploy
script:
- rsync -hrvz files/* root@yourhost.com:/var/www/html/
only:
- dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment