DEV Community

Muhammad Zohaib Irshad
Muhammad Zohaib Irshad

Posted on

๐——๐—ฒ๐—ฝ๐—น๐—ผ๐˜†๐—ถ๐—ป๐—ด ๐—ฎ ๐—ก๐—ผ๐—ฑ๐—ฒ.๐—ท๐˜€ ๐— ๐—ถ๐—ฐ๐—ฟ๐—ผ๐˜€๐—ฒ๐—ฟ๐˜ƒ๐—ถ๐—ฐ๐—ฒ ๐˜๐—ผ ๐—”๐—ช๐—ฆ ๐—˜๐—–๐Ÿฎ ๐˜„๐—ถ๐˜๐—ต ๐—–๐—œ/๐—–๐—— ๐—ฃ๐—ถ๐—ฝ๐—ฒ๐—น๐—ถ๐—ป๐—ฒ โ˜๏ธ

Iโ€™ve optimized my deployment workflow by integrating GitHub Actions with a Self-Hosted Runner on AWS EC2.
The Workflow:
๐—ง๐—ฟ๐—ถ๐—ด๐—ด๐—ฒ๐—ฟ: Push to GitHub.


๐—ฅ๐˜‚๐—ป๐—ป๐—ฒ๐—ฟ: Self-hosted on EC2 for faster, cost-effective builds.


๐——๐—ฒ๐—ฝ๐—น๐—ผ๐˜†๐—บ๐—ฒ๐—ป๐˜: Automated script updating the Node.js service via PM2.


๐—ง๐—ฟ๐—ฎ๐—ณ๐—ณ๐—ถ๐—ฐ: Nginx reverse proxy handling incoming HTTP requests.

This setup eliminates manual intervention, reduces deployment lag, and provides full control over the production environment.
Bridging the gap between Code and Cloud. โ˜๏ธ

Top comments (0)