forked from timbru31/docker-ruby-node
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (45 loc) · 2.67 KB
/
dockerimage.yml
File metadata and controls
49 lines (45 loc) · 2.67 KB
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
name: Test Docker image
on: [push, pull_request, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.4.0
- name: Build the Docker image
run: |
echo "2.6 with Node.js 12"
docker run -i $(docker build -q 2.6/12) /bin/sh -c "ruby --version && node --version"
echo "2.6 slim with Node.js 12"
docker run -i $(docker build -q 2.6/12/slim) /bin/sh -c "ruby --version && node --version"
echo "2.6 alpine with Node.js 12"
docker run -i $(docker build -q 2.6/12/alpine) /bin/sh -c "ruby --version && node --version"
echo "2.6 with Node.js 14"
docker run -i $(docker build -q 2.6/14) /bin/sh -c "ruby --version && node --version"
echo "2.6 slim with Node.js 14"
docker run -i $(docker build -q 2.6/14/slim) /bin/sh -c "ruby --version && node --version"
echo "2.6 alpine with Node.js 14"
docker run -i $(docker build -q 2.6/14/alpine) /bin/sh -c "ruby --version && node --version"
echo "2.7 with Node.js 12"
docker run -i $(docker build -q 2.7/12) /bin/sh -c "ruby --version && node --version"
echo "2.7 slim with Node.js 12"
docker run -i $(docker build -q 2.7/12/slim) /bin/sh -c "ruby --version && node --version"
echo "2.7 alpine with Node.js 12"
docker run -i $(docker build -q 2.7/12/alpine) /bin/sh -c "ruby --version && node --version"
echo "2.7 with Node.js 14"
docker run -i $(docker build -q 2.7/14) /bin/sh -c "ruby --version && node --version"
echo "2.7 slim with Node.js 14"
docker run -i $(docker build -q 2.7/14/slim) /bin/sh -c "ruby --version && node --version"
echo "2.7 alpine with Node.js 14"
docker run -i $(docker build -q 2.7/14/alpine) /bin/sh -c "ruby --version && node --version"
echo "3.0 with Node.js 12"
docker run -i $(docker build -q 3.0/12) /bin/sh -c "ruby --version && node --version"
echo "3.0 slim with Node.js 12"
docker run -i $(docker build -q 3.0/12/slim) /bin/sh -c "ruby --version && node --version"
echo "3.0 alpine with Node.js 12"
docker run -i $(docker build -q 3.0/12/alpine) /bin/sh -c "ruby --version && node --version"
echo "3.0 with Node.js 14"
docker run -i $(docker build -q 3.0/14) /bin/sh -c "ruby --version && node --version"
echo "3.0 slim with Node.js 14"
docker run -i $(docker build -q 3.0/14/slim) /bin/sh -c "ruby --version && node --version"
echo "3.0 alpine"
docker run -i $(docker build -q 3.0/14/alpine) /bin/sh -c "ruby --version && node --version"