- Clone the project:
git clone https://github.com/<your-github-username>/github-docker-workflow
-
Move deploy.yml to .github/workflows in your repository.
-
Create repository secrets for
DOCKER_USERNAME
andDOCKER_PASSWORD
as your Docker Username and Password respectively. -
Change myusername/myapp to your desired Docker image name.
Once you commit to GitHub, the workflow will automatically run and attempt to build and push your image to Docker Hub. Look for the workflow status under the 'Actions' tab in your repository.