deploying go to a vpn ubuntu server with github and ssl
Deploy a go application to a small server with SSL support and Github as CI/CD
Setup user and home
adduser web
usermod -aG sudo webInstall NGINX & Letsencrypt
sudo apt-get update
sudo apt-get install nginx
sudo ufw allow 'Nginx HTTP'
sudo apt-get install certbot python3-certbot-nginx
sudo certbot --nginxInstall systemd service
Deploy with Github Action
Generate SSH key for deployment
add generated public key to server
Add secrets
Github workflow
Last updated