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

Bugfix, podpora secrets

parent b39f2e15
No related branches found
No related tags found
No related merge requests found
Pipeline #11606 passed
......@@ -2,7 +2,7 @@ image: docker:20.10.9
variables:
DOCKER_TLS_CERTDIR: "/certs"
IMAGE_VER: 0.12.0
IMAGE_VER: 0.12.1
services:
- docker:20.10.9-dind
......
......@@ -2,12 +2,19 @@ package CF2022;
use Mojo::Base 'Mojolicious';
use Mojo::Pg;
use Mojo::Redis;
use File::Find;
use Path::Tiny qw( path );
use CF2022::Schema;
use constant SECRETS => '/run/secrets';
# This method will run once at server start
sub startup {
my $self = shift;
# env z docker secrets
find(sub { $ENV{$_} = path(SECRETS . "/$_")->slurp if -f $_ }, SECRETS);
my $cfg = $self->plugin('Config' => { file => 'cf2022.conf'} );
$self->helper( cfg => sub { return $cfg; } );
......
create sequence "uid_seq" start 100000;
alter table order "orders" add column "response" text;
alter table order "orders" add column "paid" timestamp(0);
alter table "orders" add column "response" text;
alter table "orders" add column "paid" timestamp(0);
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