Build your app to docker image, publish and deploy on DockerHub and Vercel with gitHub actions.
This repository is for the CI/CD Pipeline with React App using GitHub Actions tutorial.
The repository contains a CI/CD Pipeline workflow which builds your app to docker image, publish and deploy on DockerHub and Vercel with github actions.
-
Create React App.
-
Add
Dockerfile
and.dockerignore
file to the root of the App. -
Deploy App to Vercel using Vercel CLI.
-
Push your project to GitHub repo.
-
On Github, click on Actions , create a defalut workflow using node.js template.
-
Replace default codes with the codes in the node.js.yml file.
-
Create GitHub Secrets.
- REACTUSERNAME (paste json file)
- DOCKERHUB_TOKEN
- VERCEL_TOKEN
- PROJECT_ID
- VERCEL_ORG_ID
-
Refresh GitHub to run the workflow.