Auto Deploy Nodejs on CI CD pipeline using GitHub Actions

Опубликовано: 02 Ноябрь 2024
на канале: Cloud Guru
106
14

This tutorial will show you how add CI & CD with GitHub Actions to our NodeJS Lambda function that's deployed with the Serverless Application Model (SAM).

Join WhatsApp: https://www.whatsapp.com/channel/0029...

👉Get CloudWays ➜ https://www.cloudways.com/en/?id=1365224
💥CloudWays COUPON CODE: CLOUDGURU25
☝️☝️ USE THE EXCLUSIVE COUPON CODE ABOVE TO GET 25% OFF FOR 3 MONTHS💥

👉Get Digital Ocean ➜ digitalocean.pxf.io/ZQERvQ
💥Get $200 FREE Credits for signup. So, hurry up!💥

╔═╦╗╔╦╗╔═╦═╦╦╦╦╗╔═╗
║╚╣║║║╚╣╚╣╔╣╔╣║╚╣═╣
╠╗║╚╝║║╠╗║╚╣║║║║║═╣
╚═╩══╩═╩═╩═╩╝╚╩═╩═╝

The API was built using Express ( Node.js framework ) and MongoDB Atlas which is a NoSQL cloud database platform.

You'll learn How to:
➤ Login to the AWS console and create an EC2 instance
➤ Setup GitHub Repo and Push your project
➤ Login to EC2 instance using Windows Powershell as well as PuTTY
➤ Setup GitHub Action runner on the EC2 instance
➤ Create GitHub Secrets for managing environment variables
➤ Create CI/CD Workflow using GitHub Action
➤ Install nodejs and nginx on the EC2 instance
➤ Install pm2, a process manager for Node.js production applications
➤ Configure nginx and how to restart it
➤ Run backend node.js rest api built using the express framework in the background as a service using pm2
➤ Add the command in yml script of the project to restart the nodejs api server after every push to the repo

Reference Link:   / aws-federation-comes-to-github-actions  

GitHub Link: https://github.com/github/roadmap/iss...

#githubactions #github #nodejs #cicd #cicdpipeline