fix ci_registry_password
This commit is contained in:
1 parent
e51914fbe7
commit
c4e48e687b
3 files changed
+19921
-26906
No files matched your search
Vendored
+19916
-26897
File diff suppressed because it is too large.
Load diff
+1
-1
@@ -4,7 +4,7 @@
|
|||||||
"description": "",
|
"description": "",
|
||||||
"main": "src/index.js",
|
"main": "src/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"bundle": "npm run format:write && npm run package",
|
"bundle": "npm run package",
|
||||||
"ci-test": "jest",
|
"ci-test": "jest",
|
||||||
"format:write": "prettier --write **/*.js",
|
"format:write": "prettier --write **/*.js",
|
||||||
"format:check": "prettier --check **/*.js",
|
"format:check": "prettier --check **/*.js",
|
||||||
|
|||||||
+4
-8
@@ -33,18 +33,14 @@ export function addCiRegistryAuth(ci_registry, registryAuthJson) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (
|
const argCiRegistryPassword = (core.getInput('ci_registry_password') ?? '').trim();
|
||||||
process.env['CI_REGISTRY_PASSWORD'] == null ||
|
if (argCiRegistryPassword == null || argCiRegistryPassword.length <= 0) {
|
||||||
process.env['CI_REGISTRY_PASSWORD'].length > 0
|
console.log('WARNING: add_ci_registry_auth enabled but ci_registry_password env is empty');
|
||||||
) {
|
|
||||||
console.log(
|
|
||||||
'WARNING: add_ci_registry_auth enabled but CI_REGISTRY_PASSWORD env is empty'
|
|
||||||
);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
registryAuthJson.auths[ci_registry] = base64ToBytes(
|
registryAuthJson.auths[ci_registry] = base64ToBytes(
|
||||||
'token:' + process.env['CI_REGISTRY_PASSWORD']
|
'token:' + argCiRegistryPassword
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user