forked from cartsnitch/cartsnitch
Add Docker Hub auth to CI to fix 429 rate limit
The build-and-push job pulls nginx:stable-alpine from Docker Hub during docker build. Anonymous pulls hit rate limits on self-hosted runners. Add docker/login-action for Docker Hub using org secrets before the build step (unconditional — needed for both PR and push builds). Closes #22 Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -70,6 +70,12 @@ jobs:
|
||||
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
|
||||
echo "CalVer tag: $VERSION"
|
||||
|
||||
- name: Log in to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- name: Log in to GHCR
|
||||
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
||||
uses: docker/login-action@v3
|
||||
|
||||
Reference in New Issue
Block a user