Skip to content

Commit 4ca28f3

Browse files
committed
Add GitHub Actions for building latest supported Perls
1 parent daa1556 commit 4ca28f3

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/build-image.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Build and test latest supported Perls
2+
3+
env:
4+
VERSION: 5.030.001
5+
6+
on:
7+
push:
8+
branches:
9+
- '*'
10+
tags-ignore:
11+
- '*'
12+
pull_request:
13+
14+
jobs:
15+
build-image:
16+
runs-on: ubuntu-latest
17+
strategy:
18+
matrix:
19+
variant: [ 'main', 'slim', 'main,threaded', 'slim,threaded' ]
20+
steps:
21+
- uses: actions/checkout@master
22+
- name: Clone docker-library/official-images (for testing)
23+
run: |
24+
git clone --depth 1 --single-branch https://github.com/docker-library/official-images.git
25+
- name: Build image
26+
run: |
27+
docker version
28+
docker build --no-cache -t perl:$VERSION $VERSION-${{ matrix.variant }}-buster
29+
- name: Inspect image creation and tag time
30+
run: |
31+
docker image inspect --format \'{{.Created}}\' perl:$VERSION
32+
docker image inspect --format \'{{.Metadata.LastTagTime}}\' perl:$VERSION
33+
- name: Run tests
34+
run: |
35+
./official-images/test/run.sh perl:$VERSION

0 commit comments

Comments
 (0)