This is a very small golang appliation and the ideia is to have a proof of concept on how to use Github Actions to:
- Test the application
- Validate code coverage using SonarQube
- Build a Docker image
- Push a Docker image to the registry
Generate a DockerHub token
After generate the token copy the value and create secrets on github
- Enter the repository and go to Settings -> Secrets and Variables -> Actions
- Create secrets
DOCKERHUB_TOKEN
andDOCKERHUB_USERNAME