Skip to content

Commit 6f03802

Browse files
authored
Merge pull request #35 from Perl/df-5.8
2 parents b564668 + 0c7bd2c commit 6f03802

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/publish-to-docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,5 @@ jobs:
5959
username: ${{ secrets.DOCKER_USERNAME }}
6060
password: ${{ secrets.DOCKER_GITHUB_TOKEN }}
6161
dockerfile: Dockerfile
62-
buildargs: BASE=${{ matrix.perl-version }}-buster
62+
buildargs: BASE=${{ matrix.perl-version }}-buster,CPANOUTDATED=${{ matrix.perl-version != '5.8' }}
6363
tags: "${{ matrix.perl-version }}"

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
ARG BASE
2+
ARG CPANOUTDATED
23
FROM perl:${BASE}
34

45
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
@@ -18,7 +19,7 @@ RUN cpanm -nq App::cpm Carton::Snapshot
1819

1920
RUN cpm install -g --show-build-log-on-failure --cpanfile /tmp/cpanfile
2021

21-
RUN cpan-outdated --exclude-core -p | xargs -n1 cpanm
22+
RUN if [ "x${CPANOUTDATED}" = "x1" ] ; then cpan-outdated --exclude-core -p | xargs -n1 cpanm ; else cpan-outdated --exclude-core -p; fi
2223

2324
WORKDIR /tmp/
2425
RUN git clone https://github.com/perl-actions/ci-perl-tester-helpers.git --depth 1 && \

0 commit comments

Comments
 (0)