nest-deploy
A Utility for Deploying Docker Containers to Nest Instance
Setup
On Nest
git clone https://github.com/arnav-kr/nest-deploy
cd nest-deploy
node ./nest-deploy.js setup
cd nest-deploy
node ./nest-deploy.js setup
The setup script will add a deploy subdomain entry to ~/Caddyfile, create a systemd service (~/.config/systemd/user/nest-deploy.service), enable and start the service
Add a project using the nest-deploy cli
node ./nest-deploy.js project add <path_to_project>
it will add a project entry in ./projects.json file
list all the projects
node ./nest-deploy.js project list
Note down the Deploy URL and Deploy Token of your project,
Important
Deploy Token is meant to be confidential
On GitHub Repo
- copy the .github/workflows/nest.yml file to your repo
- in the environment settings of repo add the
DEPLOY_URLandDEPLOY_TOKENof your project in environment secrets ofnestenvironment - the deploy action will run whenever code is pushed to main branch and restart the project container running on the nest instance with the latest changes.
Run respective help commands of the cli for more info
node ./nest-deploy.js help
node ./nest-deploy.js project help
Author
Arnav Kumar @arnav-kr