-
Notifications
You must be signed in to change notification settings - Fork 81
30 lines (28 loc) · 1.15 KB
/
erlang.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: erlang
on: [push, pull_request, workflow_dispatch]
jobs:
docker:
runs-on: ubuntu-latest
strategy:
matrix:
otp: ['DIR=master', 'DIR=master VARIANT=alpine',
'DIR=26', 'DIR=26 VARIANT=slim', 'DIR=26 VARIANT=alpine',
'DIR=25', 'DIR=25 VARIANT=slim', 'DIR=25 VARIANT=alpine',
'DIR=24', 'DIR=24 VARIANT=slim', 'DIR=24 VARIANT=alpine',
'DIR=23', 'DIR=23 VARIANT=slim', 'DIR=23 VARIANT=alpine',
'DIR=22', 'DIR=22 VARIANT=slim', 'DIR=22 VARIANT=alpine',
'DIR=21', 'DIR=21 VARIANT=slim',
'DIR=20', 'DIR=20 VARIANT=slim']
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Build
run: |
${{ matrix.otp }}
git clone https://github.com/docker-library/official-images.git ~/official-images
cd "$DIR"
eval $(awk '/OTP_VERSION=/ { sub(/@/, "-", $2); print $2; exit }' ${VARIANT:-.}/Dockerfile)
image="erlang:${OTP_VERSION}${VARIANT:+-$VARIANT}"
docker build --pull -t "$image" "${VARIANT:-.}"
~/official-images/test/run.sh "$image"
docker images