A dual publish strategy for Docker Hub and GHCR
This workflow requires you to store the following secrets.
DOCKER_USERNAME
Docker Hub usernameDOCKER_PAT
Docker Hub PAT or Password (PATs are required for 2FA accounts)GHCR_PAT
GitHub PAT w/write:packages
andread:packages
scopes only NOTE remove therepo
scope.
All PRs will have an associated container created and saved to GHCR. However this container will not be published to Docker Hub.
Nightly container builds will be tagged nightly
All git tags with the format 'v*.*.*'
will be published and will update the latest
tag to point to the most current tag release. (Note this does not take into account semantic release versioning, only the latest tag will be considered latest
)