forked from c0b/docker-elixir
-
Notifications
You must be signed in to change notification settings - Fork 20
70 lines (68 loc) · 2.4 KB
/
elixir.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: elixir
on: [push, pull_request]
jobs:
docker:
runs-on: ubuntu-latest
strategy:
matrix:
elixir:
[
"DIR=1.17",
"DIR=1.17 VARIANT=slim",
"DIR=1.17 VARIANT=alpine",
"DIR=1.17 VARIANT=otp-26",
"DIR=1.17 VARIANT=otp-26-slim",
"DIR=1.17 VARIANT=otp-26-alpine",
"DIR=1.17 VARIANT=otp-25",
"DIR=1.17 VARIANT=otp-25-slim",
"DIR=1.17 VARIANT=otp-25-alpine",
"DIR=1.16",
"DIR=1.16 VARIANT=slim",
"DIR=1.16 VARIANT=alpine",
"DIR=1.16 VARIANT=otp-25",
"DIR=1.16 VARIANT=otp-25-slim",
"DIR=1.16 VARIANT=otp-25-alpine",
"DIR=1.16 VARIANT=otp-24",
"DIR=1.16 VARIANT=otp-24-slim",
"DIR=1.16 VARIANT=otp-24-alpine",
"DIR=1.15",
"DIR=1.15 VARIANT=slim",
"DIR=1.15 VARIANT=alpine",
"DIR=1.15 VARIANT=otp-25",
"DIR=1.15 VARIANT=otp-25-slim",
"DIR=1.15 VARIANT=otp-25-alpine",
"DIR=1.15 VARIANT=otp-24",
"DIR=1.15 VARIANT=otp-24-slim",
"DIR=1.15 VARIANT=otp-24-alpine",
"DIR=1.14",
"DIR=1.14 VARIANT=slim",
"DIR=1.14 VARIANT=alpine",
"DIR=1.14 VARIANT=otp-25",
"DIR=1.14 VARIANT=otp-25-slim",
"DIR=1.14 VARIANT=otp-25-alpine",
"DIR=1.14 VARIANT=otp-24",
"DIR=1.14 VARIANT=otp-24-slim",
"DIR=1.14 VARIANT=otp-24-alpine",
"DIR=1.13",
"DIR=1.13 VARIANT=slim",
"DIR=1.13 VARIANT=alpine",
"DIR=1.13 VARIANT=otp-25",
"DIR=1.13 VARIANT=otp-25-slim",
"DIR=1.13 VARIANT=otp-25-alpine",
"DIR=1.12",
"DIR=1.12 VARIANT=slim",
"DIR=1.12 VARIANT=alpine",
]
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: Build
run: |
${{ matrix.elixir }}
git clone https://github.com/docker-library/official-images.git ~/official-images
cd "$DIR"
eval $(awk '/ELIXIR_VERSION=/ { sub(/@/, "-", $2); print $2; exit }' ${VARIANT:-.}/Dockerfile)
image="elixir:${ELIXIR_VERSION#v}${VARIANT:+-$VARIANT}"
docker build --pull -t "$image" "${VARIANT:-.}"
~/official-images/test/run.sh "$image"
docker images