All Projects → willrstern → example-deployment

willrstern / example-deployment

Licence: other
No description, website, or topics provided.

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
shell
77523 projects
ApacheConf
554 projects

Continuous Deployment with SemaphoreCI

Create an SSH key

ssh-keygen -C semaphore
  • save it as ~/.ssh/id_rsa.semaphore
  • don't give it a password

Setup your server

  • paste the contents of your ~/.ssh/id_rsa.semaphore.pub to your server's ~/.ssh/authorized_keys file:
  • on your machine:
cat ~/.ssh/id_rsa.semaphore.pub | pbcopy
  • on the server: echo "" >> ~/.ssh/authorized_keys
  • clone your git repo to be the html directory on your server
git clone https://<yourtoken>@github.com/willrstern/example-deployment.git html

Setup Semaphore

  • create a new project
  • setup test command (or just do echo ok if you don't have tests)
  • setup a server
  • add these 2 deployment commands
ssh-keyscan -H -p 22 45.55.153.229 >> ~/.ssh/known_hosts
ssh [email protected] 'bash -s' < deploy.sh
  • paste the contents of ~/.ssh/id_rsa.semaphore as your private key
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].