The deploy sequence on Semaphore consists of the following steps.
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.
Your code will be placed in /home/runner/:project_name.
For a full list of available variables, please see this page.
Any custom configuration files you've added are written to disk.
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 ssh-add ~/.ssh/id_rsa.
These are the commands specified in your server's settings. The current directory is set to /home/runner/:project_name.
Semaphore Docs are open source — Edit on GitHub