From 555262114ea81f6f286010474527f419b56d33a3 Mon Sep 17 00:00:00 2001 From: Nikolai Rodionov Date: Fri, 18 Aug 2023 15:25:50 +0200 Subject: [PATCH] Fix containerfile paht --- scripts/build-container | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/build-container b/scripts/build-container index cda5d4f..9cfe961 100755 --- a/scripts/build-container +++ b/scripts/build-container @@ -41,9 +41,9 @@ my $tag = "$container_registry/$image_name:$git_commit_sha"; 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'} || "."; +my $containerfile = $ENV{'CONTAINERFILE'} || "Containerfile"; 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 $!; # --------------------------------------------------------------------------- # -- Push the latest if the branch is main