chore: Update the builder version
This commit is contained in:
@ -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";
|
||||
|
Reference in New Issue
Block a user