GitHub-Actions-Zero-to-Hero
GitHub-Actions-Zero-to-Hero copied to clipboard
Add GitHub Actions example to deploy on EC2
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.