Might finally build a container now
Some checks failed
ci/woodpecker/push/base-os Pipeline was successful
ci/woodpecker/push/generate-perl Pipeline was successful
ci/woodpecker/push/build-perls Pipeline failed

This commit is contained in:
Ryan Voots 2023-10-02 11:56:09 -04:00
parent dfaedca61d
commit 919c331208
2 changed files with 28 additions and 4 deletions

View file

@ -3,8 +3,10 @@ depends_on:
- "generate-perl" - "generate-perl"
matrix: matrix:
DEBIAN_VERSION:
- bookworm
PERL_VERSION: PERL_VERSION:
- 5.20.3 - 5.020.003
PERL_OPTIONS: PERL_OPTIONS:
- "" - ""
- ",threaded" - ",threaded"
@ -20,9 +22,29 @@ matrix:
# - ",debugging,quadmath" # - ",debugging,quadmath"
steps: steps:
build: fetch:
image: perl:stable image: perl:stable
commands: commands:
- echo matrix test! - wget https://docker-perl-artifacts.minio.voots.org/generated/output.tar.xz
- tar -xvJf output.tar.xz
- find output/ - 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

View file

@ -48,7 +48,7 @@ WORKDIR /usr/src/perl
ENV DEBIAN_FRONTEND=noninteractive 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 - \ && echo '{{sha256}} *perl-{{version}}.tar.{{type}}' | sha256sum -c - \
&& tar --strip-components=1 -xaf perl-{{version}}.tar.{{type}} -C /usr/src/perl \ && tar --strip-components=1 -xaf perl-{{version}}.tar.{{type}} -C /usr/src/perl \
&& rm perl-{{version}}.tar.{{type}} \ && rm perl-{{version}}.tar.{{type}} \
@ -146,7 +146,9 @@ for my $release (@{$config->{releases}}) {
} }
for my $build (keys %builds) { for my $build (keys %builds) {
my $file = "perl-$release->{version}.tar.$release->{type}";
$release->{url} = $url; $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->{"cpanm_dist_$_"} = $cpanm{$_} for keys %cpanm;
$release->{extra_flags} ||= ''; $release->{extra_flags} ||= '';