mirror of
https://code.forgejo.org/docker/login-action.git
synced 2025-09-15 18:57:12 +00:00
Feature: Enable Multi Registry login Authentication
Signed-off-by: unknown <arunkumarthiyagarajan95@gmail.com>
This commit is contained in:
parent
ef38ec311a
commit
8d9860ef0e
6 changed files with 5287 additions and 8077 deletions
|
@ -3,8 +3,9 @@ import * as core from '@actions/core';
|
|||
export const registry = process.env['STATE_registry'] || '';
|
||||
export const logout = /true/i.test(process.env['STATE_logout'] || '');
|
||||
|
||||
export function setRegistry(registry: string) {
|
||||
core.saveState('registry', registry);
|
||||
export function setRegistry(registry: string[]) {
|
||||
core.info(`Setting registry: ${registry.join(',')}`);
|
||||
core.saveState('registry', registry.join(','));
|
||||
}
|
||||
|
||||
export function setLogout(logout: boolean) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue