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

Napojeni na secrets

parent 2169f808
No related branches found
No related tags found
No related merge requests found
Pipeline #20581 passed
0.1.0
0.2.0
......@@ -12,10 +12,14 @@ no warnings qw{ experimental::signatures };
use Mojo::Pg;
use Mojo::UserAgent;
# Konfigurace z ENV
use constant SECRETS => '/run/secrets';
my $cfg = {};
# env z docker secrets
find(sub { $ENV{$_} = path(SECRETS . "/$_")->slurp if -f $_ }, SECRETS);
# Konfigurace z ENV
KEY:
foreach my $key ( keys %ENV ) {
if ( $key =~ /^CFG_(.+)/i ) {
......
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