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 setupThe 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 listNote 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_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.
node ./nest-deploy.js helpnode ./nest-deploy.js project helpArnav Kumar @arnav-kr
