Skip to content
Snippets Groups Projects
Verified Commit 221ddffc authored by Andrej Ramašeuski's avatar Andrej Ramašeuski
Browse files

Korektnejsi prace s regiony

parent 3ef94fa3
No related branches found
No related tags found
No related merge requests found
Pipeline #19960 passed
...@@ -2,7 +2,7 @@ image: docker:latest ...@@ -2,7 +2,7 @@ image: docker:latest
variables: variables:
DOCKER_TLS_CERTDIR: "/certs" DOCKER_TLS_CERTDIR: "/certs"
IMAGE_VER: 0.21.2 IMAGE_VER: 0.21.3
services: services:
- docker:dind - docker:dind
......
...@@ -8,7 +8,7 @@ use feature 'signatures'; ...@@ -8,7 +8,7 @@ use feature 'signatures';
no warnings qw{ experimental::signatures }; no warnings qw{ experimental::signatures };
use constant KEY_FORMAT => "-----BEGIN PUBLIC KEY-----\n%s\n-----END PUBLIC KEY-----"; use constant KEY_FORMAT => "-----BEGIN PUBLIC KEY-----\n%s\n-----END PUBLIC KEY-----";
use constant REGIONS => qr{^(cen|jhc|jhm|kvk|lbk|msk|olk|pak|pha|plk|stc|ulk|vys|zlk|khk):(f|regp)$}; use constant REGIONS => qr{^(jhc|jhm|kvk|lbk|msk|olk|pak|pha|plk|stc|ulk|vys|zlk|khk):(f|regp)$};
sub register ( $class, $self, $conf) { sub register ( $class, $self, $conf) {
...@@ -90,6 +90,12 @@ sub register ( $class, $self, $conf) { ...@@ -90,6 +90,12 @@ sub register ( $class, $self, $conf) {
role => $role, role => $role,
}; };
} }
elsif ( $group =~ /cen:regp/ ) {
return {
region => 'Celostátní fórum',
role => 'regp',
};
}
} }
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment