Skip to content

Instantly share code, notes, and snippets.

@macghriogair
Created August 31, 2018 14:53
Show Gist options
  • Select an option

  • Save macghriogair/e1c30002e08475760f7e682a8d75486c to your computer and use it in GitHub Desktop.

Select an option

Save macghriogair/e1c30002e08475760f7e682a8d75486c to your computer and use it in GitHub Desktop.
[Deploy LXC + Git] deploy revision via remote script execution #lxc #deploy #git #semaphore #ci
ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no <USER>@<HOST> lxc exec <CONTAINER_NAME> -- sudo -u www-data -I <PATH-TO-REMOTE-DEPLOY-SH> $REVISION
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment