mirror of
https://github.com/docker/login-action.git
synced 2026-06-29 11:51:38 +00:00
Compare commits
5 Commits
4c4b6e86c3
...
fbb09fc0bb
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fbb09fc0bb | ||
|
|
406e1d7119 | ||
|
|
834ded21d8 | ||
|
|
c7cb6a492e | ||
|
|
1e928945a0 |
22
dist/index.js
generated
vendored
22
dist/index.js
generated
vendored
File diff suppressed because one or more lines are too long
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
957
dist/licenses.txt
generated
vendored
957
dist/licenses.txt
generated
vendored
File diff suppressed because it is too large
Load Diff
@ -28,7 +28,7 @@
|
||||
"@actions/core": "^1.10.1",
|
||||
"@aws-sdk/client-ecr": "^3.529.1",
|
||||
"@aws-sdk/client-ecr-public": "^3.529.1",
|
||||
"@docker/actions-toolkit": "^0.18.0",
|
||||
"@docker/actions-toolkit": "^0.23.0",
|
||||
"http-proxy-agent": "^7.0.2",
|
||||
"https-proxy-agent": "^7.0.4"
|
||||
},
|
||||
|
||||
@ -21,9 +21,16 @@ export async function logout(registry: string): Promise<void> {
|
||||
}
|
||||
|
||||
export async function loginStandard(registry: string, username: string, password: string): Promise<void> {
|
||||
if (!username || !password) {
|
||||
if (!username && !password) {
|
||||
throw new Error('Username and password required');
|
||||
}
|
||||
if (!username) {
|
||||
throw new Error('Username required');
|
||||
}
|
||||
if (!password) {
|
||||
throw new Error('Password required');
|
||||
}
|
||||
|
||||
|
||||
const loginArgs: Array<string> = ['login', '--password-stdin'];
|
||||
loginArgs.push('--username', username);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user