The deploy sequence on Semaphore consists of the following steps.
Checkout revision from GitHub
When a build is finished in case of automatic deployment, or when a manual deploy is launched, your repository is initialized to the revision specified in the corresponding build.
Your repository along with its dependencies will, in most cases, be retrieved from cache. For more information, please see this page.
Start build VM
Copy code to VM
Your code will be placed in
Export all environment variables
For a full list of available variables, please see this page.
Write custom files
Any custom configuration files you’ve added are written to disk.
SSH key initialization
This is executed in case the deploy is using an SSH keypair (Capistrano or Generic method). Your key is saved to
~/.ssh/id_rsa and initialized with
Run your deploy commands
These are the commands specified in your server’s settings. The current directory is set to