Repository navigation
48 lines (44 loc) · 1.59 KB
/
Copy pathopenjdk-docker-wf.yml
File metadata and controls
48 lines (44 loc) · 1.59 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
name: "openjdk alpine docker java CI workflow"
on:
push:
branches: [ main ]
schedule:
# https://crontab.guru/examples.html #every friday at midnight
- cron: '0 0 * * FRI'
jobs:
ubuntu-latest-job:
name: "docker ubuntu latest"
runs-on: ubuntu-latest
strategy:
matrix:
jdk : [openjdk]
ver: ['8']
distro: [alpine]
rel: ['3.15']
env:
distribution: "java"
steps:
- uses: actions/checkout@v2
- name: "os fingerprinting"
run: |
hostnamectl status
lsb_release -a
lsb_release -d
cat /etc/lsb-release
cat /etc/issue
cat /etc/os-release
sudo apt-get install -y neofetch && neofetch
- name: "build docker image"
run: |
dir=$(pwd)
cd $dir/dockerfiles/${{matrix.jdk}}/${{matrix.ver}}/${{matrix.distro}}/${{matrix.rel}}
echo "############################################"
echo "############################################"
echo "Building ${{matrix.jdk}}/${{matrix.ver}}/${{matrix.distro}}/${{matrix.rel}} dockerfile"
echo "############################################"
echo "############################################"
docker build -t ${{matrix.distro}}/${{matrix.rel}}/${{matrix.jdk}}-${{matrix.ver}} .
docker image ls
docker image history ${{matrix.distro}}/${{matrix.rel}}/${{matrix.jdk}}-${{matrix.ver}}
docker system df -v
docker image inspect ${{matrix.distro}}/${{matrix.rel}}/${{matrix.jdk}}-${{matrix.ver}}