mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-06-02 16:00:43 +00:00
balena deploy: Fix "access denied" pushing images to registry
Change-type: patch
This commit is contained in:
parent
3cb184c8af
commit
ba0024645d
@ -588,9 +588,7 @@ async function getTokenForPreviousRepos(
|
|||||||
const { authorizePush, getPreviousRepos } = await import('./compose');
|
const { authorizePush, getPreviousRepos } = await import('./compose');
|
||||||
const sdk = getBalenaSdk();
|
const sdk = getBalenaSdk();
|
||||||
const previousRepos = await getPreviousRepos(sdk, docker, logger, appId);
|
const previousRepos = await getPreviousRepos(sdk, docker, logger, appId);
|
||||||
if (!previousRepos || previousRepos.length === 0) {
|
|
||||||
return '';
|
|
||||||
}
|
|
||||||
const token = await authorizePush(
|
const token = await authorizePush(
|
||||||
sdk,
|
sdk,
|
||||||
apiEndpoint,
|
apiEndpoint,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user