Fix env vars parsing

This commit is contained in:
Nikolai Rodionov 2023-08-18 14:57:06 +02:00
parent eeea22991e
commit 48c5487d45
No known key found for this signature in database
GPG Key ID: 19DB54039EBF8F10

View File

@ -36,9 +36,9 @@ chomp($git_commit_sha);
# -- my main build system is DRONE, so I'm using DRONE variables a lot
# ---------------------------------------------------------------------------
my $container_registry = $ENV{'CONTAINER_REGISTRY'} || 'git.badhouseplants.net';
my $image_name = $ENV{"PACKAGE_NAME"} | $ENV{'DRONE_REPO'} || "badhouseplants/badhouseplants-net";
my $image_name = $ENV{'PACKAGE_NAME'} | $ENV{'DRONE_REPO'} || "badhouseplants/badhouseplants-net";
my $tag = "$container_registry/$image_name:$git_commit_sha";
my $custom_tag = $ENV{"CUSTOM_TAG"} || "";
my $custom_tag = $ENV{'CUSTOM_TAG'} || "";
my $username = $ENV{'DRONE_USERNAME'} || "allanger";
my $password = $ENV{'GITEA_TOKEN'} || "YOU NOT AUTHORIZED, PAL";
my $containerfile = $ENV{'CONTAINERFILE'} || ".";