From 6db2d0c91109646d3070fe9fd08ba55a132f7b3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrej=20Rama=C5=A1euski?= <andrej@x2.cz> Date: Sun, 26 Jan 2025 22:33:30 +0100 Subject: [PATCH] Napojeni na secrets --- VERSION | 2 +- terminator | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 6e8bf73..0ea3a94 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.1.0 +0.2.0 diff --git a/terminator b/terminator index 8399020..a60eddb 100755 --- a/terminator +++ b/terminator @@ -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 ) { -- GitLab