mirror of https://github.com/apache/superset.git
fix: docker builds in master fail (#27503)
This commit is contained in:
parent
24cb06285c
commit
2fdf6d7b64
|
@ -79,7 +79,7 @@ export function getDockerTags({
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getDockerCommand({
|
export function getDockerCommand({
|
||||||
preset, platform, isAuthenticated, buildContext, buildContextRef, forceLatest = false,
|
preset, platform, buildContext, buildContextRef, forceLatest = false,
|
||||||
}) {
|
}) {
|
||||||
const platforms = platform;
|
const platforms = platform;
|
||||||
|
|
||||||
|
@ -113,6 +113,8 @@ export function getDockerCommand({
|
||||||
const tags = getDockerTags({
|
const tags = getDockerTags({
|
||||||
preset, platforms, sha, buildContext, buildContextRef: ref, forceLatest,
|
preset, platforms, sha, buildContext, buildContextRef: ref, forceLatest,
|
||||||
}).map((tag) => `-t ${tag}`).join(' \\\n ');
|
}).map((tag) => `-t ${tag}`).join(' \\\n ');
|
||||||
|
const isAuthenticated = !!(process.env.DOCKERHUB_TOKEN && process.env.DOCKERHUB_USER);
|
||||||
|
|
||||||
const dockerArgs = isAuthenticated ? '--push' : '--load';
|
const dockerArgs = isAuthenticated ? '--push' : '--load';
|
||||||
const targetArgument = buildTarget ? `--target ${buildTarget}` : '';
|
const targetArgument = buildTarget ? `--target ${buildTarget}` : '';
|
||||||
const cacheRef = `${CACHE_REPO}:${pyVer}`;
|
const cacheRef = `${CACHE_REPO}:${pyVer}`;
|
||||||
|
|
Loading…
Reference in New Issue