fix: master docker build is broken (#27507)

This commit is contained in:
Maxime Beauchemin 2024-03-14 02:01:13 -07:00 committed by GitHub
parent fb39951d2a
commit 2948abc55e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ export function getDockerCommand({
const tags = getDockerTags({
preset, platforms, sha, buildContext, buildContextRef: ref, forceLatest,
}).map((tag) => `-t ${tag}`).join(' \\\n ');
const isAuthenticated = !!(process.env.DOCKERHUB_TOKEN && process.env.DOCKERHUB_USER);
const isAuthenticated = !!(process.env.DOCKERHUB_TOKEN);
const dockerArgs = isAuthenticated ? '--push' : '--load';
const targetArgument = buildTarget ? `--target ${buildTarget}` : '';