mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-19 05:37:51 +00:00
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:
commit
a23759a1ba
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user