Build only 5.20, use a different variable for suffix and also timestamp the os base containers
All checks were successful
ci/woodpecker/push/generate-perl Pipeline was successful
ci/woodpecker/push/base-os Pipeline was successful
ci/woodpecker/push/build-perls Pipeline was successful

This commit is contained in:
Automation Pipeline 2023-10-11 11:37:20 -04:00
parent c47bb9a3c8
commit 84d3f7ba3e
3 changed files with 4 additions and 3 deletions

View file

@ -11,7 +11,7 @@ steps:
- tar -xvJf output.tar.xz
- cpanm --installdeps .
- docker login -u simcop2387 -p $GITEA_DOCKER_TOKEN gitea.simcop2387.info
- perl build.pl --suffix ${CI_PIPELINE_STARTED}
- perl build.pl --suffix $CI_PIPELINE_CREATED --filter_tags=5.20 --build_args OS_TAG=$CI_PIPELINE_CREATED
secrets: [gitea_docker_token]
volumes:
- /var/run/docker.sock:/var/run/docker.sock

View file

@ -122,7 +122,7 @@ sub run_cmd {
try {
print "Running command $disp_prefix ".$cmd->[0], "\n";
print "Running command $disp_prefix: ".join(' ', @$cmd), "\n";
return if $skip_build;

View file

@ -40,7 +40,8 @@ EOF
my $config = YAML::XS::Load path("config.yml")->slurp_utf8();
my $template = <<~'EOF';
FROM {{build_image}}:{{tag}}
ARG OS_TAG=""
FROM {{build_image}}:{{tag}}$OS_TAG
LABEL maintainer="Ryan Voots <simcop@cpan.org>"
COPY *.patch /usr/src/perl/