Fix containerfile paht

This commit is contained in:
Nikolai Rodionov 2023-08-18 15:25:50 +02:00
parent 48c5487d45
commit 555262114e
No known key found for this signature in database
GPG Key ID: 19DB54039EBF8F10

View File

@ -41,9 +41,9 @@ 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 $username = $ENV{'DRONE_USERNAME'} || "allanger";
my $password = $ENV{'GITEA_TOKEN'} || "YOU NOT AUTHORIZED, PAL"; my $password = $ENV{'GITEA_TOKEN'} || "YOU NOT AUTHORIZED, PAL";
my $containerfile = $ENV{'CONTAINERFILE'} || "."; my $containerfile = $ENV{'CONTAINERFILE'} || "Containerfile";
0 == system ("buildah login --username $username --password $password $container_registry") or die $!; 0 == system ("buildah login --username $username --password $password $container_registry") or die $!;
0 == system ("buildah bud -t $tag $containerfile") or die $!; 0 == system ("buildah bud -t $tag -f $containerfile .") or die $!;
0 == system ("buildah push $tag") or die $!; 0 == system ("buildah push $tag") or die $!;
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
# -- Push the latest if the branch is main # -- Push the latest if the branch is main