fix: another attempt at fixing docker master builds (#27514)

This commit is contained in:
Maxime Beauchemin 2024-03-14 09:42:28 -07:00 committed by GitHub
parent 2948abc55e
commit 6e22275c26
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -60,6 +60,9 @@ jobs:
DOCKERHUB_USER: ${{ secrets.DOCKERHUB_USER }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
run: |
if [ -n "$DOCKERHUB_TOKEN" ]; then
docker login
fi
# Single platform builds in pull_request context to speed things up
if [ "${{ github.event_name }}" = "push" ]; then
PLATFORM_ARG="--platform linux/arm64 --platform linux/amd64"