Might finally build a container now
This commit is contained in:
parent
dfaedca61d
commit
919c331208
2 changed files with 28 additions and 4 deletions
|
@ -3,8 +3,10 @@ depends_on:
|
|||
- "generate-perl"
|
||||
|
||||
matrix:
|
||||
DEBIAN_VERSION:
|
||||
- bookworm
|
||||
PERL_VERSION:
|
||||
- 5.20.3
|
||||
- 5.020.003
|
||||
PERL_OPTIONS:
|
||||
- ""
|
||||
- ",threaded"
|
||||
|
@ -20,9 +22,29 @@ matrix:
|
|||
# - ",debugging,quadmath"
|
||||
|
||||
steps:
|
||||
build:
|
||||
fetch:
|
||||
image: perl:stable
|
||||
commands:
|
||||
- echo matrix test!
|
||||
- wget https://docker-perl-artifacts.minio.voots.org/generated/output.tar.xz
|
||||
- tar -xvJf output.tar.xz
|
||||
- find output/
|
||||
build:
|
||||
image: woodpeckerci/plugin-docker-buildx:2
|
||||
# image: gitea.simcop2387.info/simcop2387/test_env:latest
|
||||
environment:
|
||||
IMAGE_VERSION: "${DEBIAN_VERSION}"
|
||||
settings:
|
||||
debug: "true"
|
||||
repo: "gitea.simcop2387.info/simcop2387/perl-container"
|
||||
dockerfile: "output/perls/${PERL_VERSION}-main${PERL_OPTIONS}-${DEBIAN_VERSION}/Dockerfile"
|
||||
context: "output/perls/${PERL_VERSION}-main${PERL_OPTIONS}-${DEBIAN_VERSION}"
|
||||
auto_tag: "false"
|
||||
tags:
|
||||
- "${DEBIAN_VERSION}-${PERL_VERSION}${PERL_OPTIONS}-${CI_PIPELINE_CREATED}"
|
||||
- "${DEBIAN_VERSION}-${PERL_VERSION}${PERL_OPTIONS}"
|
||||
logins:
|
||||
- registry: https://gitea.simcop2387.info/
|
||||
username: simcop2387
|
||||
password:
|
||||
from_secret: gitea_docker_token
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@ WORKDIR /usr/src/perl
|
|||
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
RUN curl -SL {{url}} -o perl-{{version}}.tar.{{type}} \
|
||||
RUN curl -SL {{cache_url}} -o perl-{{version}}.tar.{{type}} \
|
||||
&& echo '{{sha256}} *perl-{{version}}.tar.{{type}}' | sha256sum -c - \
|
||||
&& tar --strip-components=1 -xaf perl-{{version}}.tar.{{type}} -C /usr/src/perl \
|
||||
&& rm perl-{{version}}.tar.{{type}} \
|
||||
|
@ -146,7 +146,9 @@ for my $release (@{$config->{releases}}) {
|
|||
}
|
||||
|
||||
for my $build (keys %builds) {
|
||||
my $file = "perl-$release->{version}.tar.$release->{type}";
|
||||
$release->{url} = $url;
|
||||
$release->{cache_url} = "https://docker-perl-artifacts.minio.voots.org/sources/output/downloads/$file";
|
||||
$release->{"cpanm_dist_$_"} = $cpanm{$_} for keys %cpanm;
|
||||
|
||||
$release->{extra_flags} ||= '';
|
||||
|
|
Loading…
Add table
Reference in a new issue