Merge pull request #1840 from balena-io/fix-deploy-authorize-token

balena deploy: Fix "access denied" pushing images to registry
This commit is contained in:
bulldozer-balena[bot] 2020-05-25 16:59:24 +00:00 committed by GitHub
commit a23759a1ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -588,9 +588,7 @@ async function getTokenForPreviousRepos(
const { authorizePush, getPreviousRepos } = await import('./compose');
const sdk = getBalenaSdk();
const previousRepos = await getPreviousRepos(sdk, docker, logger, appId);
if (!previousRepos || previousRepos.length === 0) {
return '';
}
const token = await authorizePush(
sdk,
apiEndpoint,