Skip to content

A Utility for Deploying Docker Containers to Nest Instance

License

Notifications You must be signed in to change notification settings

arnav-kr/nest-deploy

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Nest Deploy

nest-deploy

A Utility for Deploying Docker Containers to Nest Instance

GitHub

Setup

On Nest

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

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

  1. copy the .github/workflows/nest.yml file to your repo
  2. in the environment settings of repo add the DEPLOY_URL and DEPLOY_TOKEN of your project in environment secrets of nest environment
  3. 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

LICENSE

AGPL-3.0