Only tag ":perl" versions for focal jammy and lunar. But ":perl-ubuntu" can be whatever.

This commit is contained in:
Greyscale 2024-02-20 19:56:01 +01:00
parent cc4a23b3b7
commit 084902c185
No known key found for this signature in database
GPG key ID: 74BAFF55434DA4B2

View file

@ -82,7 +82,7 @@ jobs:
echo "perl_version=$(docker run --rm ghcr.io/benzine-framework/perl:${{ matrix.ubuntu }} perl -v | grep "This is perl" | cut -d'(' -f2 | cut -d')' -f1 | sed 's/[^0-9.]*//g')" >> $GITHUB_OUTPUT
- name: "Retag build with perl version (${{ steps.perl_version.outputs.perl_version })"
if: matrix.ubuntu == 'focal' || matrix.ubuntu == 'jammy' || matrix.ubuntu == 'lunar'
if: ${{ matrix.ubuntu == 'focal' || matrix.ubuntu == 'jammy' || matrix.ubuntu == 'lunar' }}
run: |
docker tag ghcr.io/benzine-framework/perl:${{ matrix.ubuntu }} ghcr.io/benzine-framework/perl:${{ steps.perl_version.outputs.perl_version }}
docker tag ghcr.io/benzine-framework/perl:${{ matrix.ubuntu }} matthewbaggett/perl:${{ steps.perl_version.outputs.perl_version }}