A Utility for Deploying Docker Containers to Nest Instance
git clone /~https://github.com/arnav-kr/nest-deploy
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
node ./nest-deploy.js project add <path_to_project>
it will add a project entry in ./projects.json
file
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
- copy the .github/workflows/nest.yml file to your repo
- in the environment settings of repo add the
DEPLOY_URL
andDEPLOY_TOKEN
of your project in environment secrets ofnest
environment - 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.
node ./nest-deploy.js help
node ./nest-deploy.js project help
Arnav Kumar @arnav-kr