Account Settings Personal access tokens
Generate new token Access token description: GitHub SecretExpiration date: 90 daysAccess permissions: Read & WriteGenerate
Settings/Secrets and variables/Actions/new repository secret
DOCKERHUB_TOKEN: your DockerHub login nameDOCKERHUB_USERNAME: The secret token generated by Docker Hub earlier.
Settings/Actions/Runners New self-hosted runner Linux/x64 Download and Configure section.docker-compose.yml as follows .github/workflows/publish.yml as follows main)
1
2
docker compose build go_app --no-cache
docker compose up -d
main.go file.