www.coachdevops.com/2024/04/g...
Implementations steps:
Create access token in DockerHub
Add access token, docker hub user name as secrets in GitHub Actions
Create GitHub Actions workflow yaml in your repo
Add tasks for Maven build, docker image creation, tagging and docker push
Run the workflow/build in GitHub hosted runner(e.g. Ubuntu)
Verify docker image have been uploaded into DockerHub
Pre-requisites:
DockerHub Account
Make sure a Project is setup in GitHub with Dockerfile
Create access token in Docker Hub for authenticating with DockerHub
Steps below to create access token in DockerHub:
5 апр 2024