GitHub-Actions-Zero-to-Hero icon indicating copy to clipboard operation
GitHub-Actions-Zero-to-Hero copied to clipboard

Add GitHub Actions example to deploy on EC2

Open AbdassalamAhmad opened this issue 2 years ago • 0 comments

This workflow will do the following:

  • login to docker hub.
  • build docker image and push it to your account.
  • install docker on AWS EC2.
  • pull latest docker image and run it on your EC2.

This workflow require:

  • Public EC2 running to provide the IP as a secret.
  • Private SSH key as a secret (you can have this once you build your EC2 from AWS Console).
  • Your Docker Hub username, and Access token as a secret.

AbdassalamAhmad avatar Feb 11 '23 13:02 AbdassalamAhmad