From 4ca28f3d63b198c281e53d94de33dab635f5a87a Mon Sep 17 00:00:00 2001 From: "Zak B. Elep" Date: Sat, 23 Nov 2019 12:11:19 +0800 Subject: [PATCH] Add GitHub Actions for building latest supported Perls --- .github/workflows/build-image.yml | 35 +++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/build-image.yml diff --git a/.github/workflows/build-image.yml b/.github/workflows/build-image.yml new file mode 100644 index 0000000..f585662 --- /dev/null +++ b/.github/workflows/build-image.yml @@ -0,0 +1,35 @@ +name: Build and test latest supported Perls + +env: + VERSION: 5.030.001 + +on: + push: + branches: + - '*' + tags-ignore: + - '*' + pull_request: + +jobs: + build-image: + runs-on: ubuntu-latest + strategy: + matrix: + variant: [ 'main', 'slim', 'main,threaded', 'slim,threaded' ] + steps: + - uses: actions/checkout@master + - name: Clone docker-library/official-images (for testing) + run: | + git clone --depth 1 --single-branch https://github.com/docker-library/official-images.git + - name: Build image + run: | + docker version + docker build --no-cache -t perl:$VERSION $VERSION-${{ matrix.variant }}-buster + - name: Inspect image creation and tag time + run: | + docker image inspect --format \'{{.Created}}\' perl:$VERSION + docker image inspect --format \'{{.Metadata.LastTagTime}}\' perl:$VERSION + - name: Run tests + run: | + ./official-images/test/run.sh perl:$VERSION