Weekend Project: Setup Github Container Registry and Github Actions for CI/CD with DigitalOcean droplets

For this weekend’s fun project, let’s setup Github Actions and Github Container Registry so we can do CI/CD with our NodeJS project hosted on DigitalOcean. The goal is to have Github Actions create a new Docker image when we push to master, deploy the image to ghcr.io, ssh to the server, download the image and build the container. Create the app/repo Let’s create a new public repo on Github named nodejs-playground, add a simple app to this repo: ...

June 22, 2024 · 5 min

Weekend Project: Deploy multiple Docker containers on a DigitalOcean droplet

Each weekend I want to try out small projects using different tech stacks/technologies. This week let’s deploy a Linux box on DigitalOcean and set it up so we can run multiple Docker containers for future weekend projects. 1. Setup Docker and Nginx Install docker: https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-18-04 Check if docker is running 1 sudo systemctl status docker press q to exit Install nginx https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-18-04 if you run 1 2 sudo ufw allow 'Nginx HTTP' sudo ufw status and it shows Status: inactive - that means the firewall is inactive. Enable the firewall by running ...

June 16, 2024 · 5 min