diff --git a/VERSION b/VERSION index ac454c6a1fc3f05f60d3772b45f0b1a5db4b9f87..34a83616bb5aa9a70c5713bc45cd45498a50ba24 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.12.0 +0.12.1 diff --git a/script/sync_octopus_groups b/script/sync_octopus_groups index 3a309edb38319ad119a774c8bb60596f7e01e3a2..20af8734619354c67eddf2de8f8b5bd4cd7a2085 100755 --- a/script/sync_octopus_groups +++ b/script/sync_octopus_groups @@ -6,10 +6,17 @@ use warnings; use Mojo::File qw(curfile); use lib curfile->dirname->sibling('lib')->to_string; +use File::Find; +use Path::Tiny qw( path ); use Mojo::Pg; use SeMeet::Schema; use SeMeet::Model::IAPI; +use constant SECRETS => '/run/secrets'; + +# env z docker secrets +find(sub { $ENV{$_} = path(SECRETS . "/$_")->slurp_utf8 }, SECRETS); + my $iapi = SeMeet::Model::IAPI->new( $ENV{CFG_IAPI} ); my $schema = SeMeet::Schema->connect({ dsn => $ENV{CFG_DB_DSN},