Automatically Deploy Node.js to Linode using Docker and GitHub Actions - Full Guide

Pubblicato il: 03 marzo 2022
sul canale di: Sebastian Kargl
7,443
281

Hey ^-^
In today's guide I will show you how you can automatically deploy a Node website to Linode using Docker and GitHub Actions. I will take you through the process step by step.
I hope you will learn a lot today and have fun while doing so.
What should I code next? Where do you fellow programmers need help at the moment ^^

---Resources---
-GitHub--
Project Repo: https://github.com/Sebastan12/linode-...
Github Docker Documentation: https://docs.github.com/en/actions/pu...
My Dockerfile: https://github.com/Sebastan12/linode-...
My Dockerpush.yml: https://github.com/Sebastan12/linode-...
Appleboy SSH Action: https://github.com/appleboy/ssh-action
-Git-
Git: https://git-scm.com/
-Hosting--
Linode (♥ Affiliate Link ♥): https://linode.gvw92c.net/SebastianKargl
-Docker-
Docker: https://www.docker.com/
Docker Hub: https://hub.docker.com/
Docker Desktop: https://www.docker.com/products/docke...
-Node-
Node.Js: https://nodejs.org/en/
NPM: is included with Node. js installation
NVM: https://github.com/nvm-sh/nvm
-Express-
Hello World Example: http://expressjs.com/en/starter/hello...
-Editors-
VS Code (free): https://code.visualstudio.com/
WebStorm (payed): https://www.jetbrains.com/webstorm/

Chapters:
00:00 Intro
00:08 Overview of the System
01:08 Showcase of the System
02:23 What you need to follow along
03:10 Do you already have an app?
03:17 Building the Demo Express App
05:22 Setting Up Git
06:00 Creating GitHub Repository
06:12 Adding Remote Origin
06:45 Ceating a Linode
08:42 Connecting to your Linode
09:10 Change Ports in Demo Project
09:31 Setting up Docker
11:30 Building Docker image locally for testing
13:26 Creating a Docker Hub Account
13:45 Setting up GitHub Actions Folders
13:52 Creating dockerpush.yml
14:42 Setting up secrets
17:01 Successful upload of Docker build
17:31 Testing the docker image on the Linode
01:18 Writing the update.sh script
20:40 Testing update.sh script
21:10 Setting up SSH Action
22:19 Setting SSH Secrets
23:01 Push to GitHub
23:24 A problem appeared
23:40 Fixing the problem
24:11 It works!
25:05 The Final Test
25:08 Conratulation!
26:40 Closing Remarks


In questa pagina del sito puoi guardare il video online Automatically Deploy Node.js to Linode using Docker and GitHub Actions - Full Guide della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Sebastian Kargl 03 marzo 2022, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 7,443 volte e gli è piaciuto 281 spettatori. Buona visione!