Build only 5.20, use a different variable for suffix and also timestamp the os base containers
This commit is contained in:
parent
c47bb9a3c8
commit
84d3f7ba3e
3 changed files with 4 additions and 3 deletions
|
@ -11,7 +11,7 @@ steps:
|
||||||
- tar -xvJf output.tar.xz
|
- tar -xvJf output.tar.xz
|
||||||
- cpanm --installdeps .
|
- cpanm --installdeps .
|
||||||
- docker login -u simcop2387 -p $GITEA_DOCKER_TOKEN gitea.simcop2387.info
|
- 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]
|
secrets: [gitea_docker_token]
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
|
2
build.pl
2
build.pl
|
@ -122,7 +122,7 @@ sub run_cmd {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
print "Running command $disp_prefix ".$cmd->[0], "\n";
|
print "Running command $disp_prefix: ".join(' ', @$cmd), "\n";
|
||||||
|
|
||||||
return if $skip_build;
|
return if $skip_build;
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,8 @@ EOF
|
||||||
my $config = YAML::XS::Load path("config.yml")->slurp_utf8();
|
my $config = YAML::XS::Load path("config.yml")->slurp_utf8();
|
||||||
|
|
||||||
my $template = <<~'EOF';
|
my $template = <<~'EOF';
|
||||||
FROM {{build_image}}:{{tag}}
|
ARG OS_TAG=""
|
||||||
|
FROM {{build_image}}:{{tag}}$OS_TAG
|
||||||
LABEL maintainer="Ryan Voots <simcop@cpan.org>"
|
LABEL maintainer="Ryan Voots <simcop@cpan.org>"
|
||||||
|
|
||||||
COPY *.patch /usr/src/perl/
|
COPY *.patch /usr/src/perl/
|
||||||
|
|
Loading…
Add table
Reference in a new issue