chore: Update the builder version

This commit is contained in:
Nikolai Rodionov
2023-05-23 17:53:26 +02:00
parent 688d94584d
commit 704f4b037a
2 changed files with 10 additions and 10 deletions

View File

@ -17,16 +17,16 @@ my $image_name = $ENV{'DRONE_REPO'} || "badhouseplants/badhouseplants-net";
my $tag = "$container_registry/$image_name:$git_commit_sha";
my $username = $ENV{'DRONE_USERNAME'} || "allanger";
my $password = $ENV{'GITEA_TOKEN'} || "YOU NOT AUTHORIZED, PAL";
print `buildah login --username $username --password $password $container_registry` or die;
print `buildah build -t $tag .` or die;
print `buildah push $tag` or die;
print `buildah login --username $username --password $password $container_registry` or die $!;
print `buildah build -t $tag .` or die $!;
print `buildah push $tag` or die $!;
# -------------------------------------------------
# -- Push the lates if the branch is main
# -- Push the latest if the branch is main
# -------------------------------------------------
if ( $git_branch eq $main_branch) {
my $latest_tag = "$container_registry/$image_name:latest";
print `buildah tag $tag $latest_tag` or die;
print `buildah push $latest_tag` or die;
print `buildah tag $tag $latest_tag` or die $!;
print `buildah push $latest_tag` or die $!;
}
print "Thanks!\n";