-
-
Notifications
You must be signed in to change notification settings - Fork 101
90 lines (83 loc) · 2.6 KB
/
check_dockerstatic.yml
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# GH action workflow to check ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/DockerStatic/Dockerfiles/*
# trigger on PR towards 'master' branch when files in ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/DockerStatic changed
name: DockerStatic Checker
on:
pull_request:
paths:
- .github/workflows/check_dockerstatic.yml
- ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/DockerStatic/Dockerfiles/**
branches:
- master
env:
ROOT_PATH: "ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/DockerStatic/Dockerfiles/"
permissions:
contents: read
jobs:
check-alpine:
name: alpine
runs-on: ubuntu-latest
strategy:
fail-fast: true
max-parallel: 4
matrix:
include:
- os: alpine3.19
dockerfile: "Dockerfile.alp319"
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Test Dockerfile on ${{ matrix.os }}
env:
DOCKERFILE: ${{ matrix.dockerfile }}
run: docker build -f ${{ env.ROOT_PATH }}/${{ env.DOCKERFILE }} .
check-centos:
name: centos
runs-on: ubuntu-latest
strategy:
fail-fast: true
max-parallel: 4
matrix:
include:
- os: centos8
dockerfile: "Dockerfile.cent8"
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Test Dockerfile on ${{ matrix.os }}
env:
DOCKERFILE: ${{ matrix.dockerfile }}
run: docker build -f ${{ env.ROOT_PATH }}/${{ env.DOCKERFILE }} .
check-fedora:
name: fedora
runs-on: ubuntu-latest
strategy:
fail-fast: true
max-parallel: 4
matrix:
include:
- os: fedora39
dockerfile: "Dockerfile.f39"
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Test Dockerfile on ${{ matrix.os }}
env:
DOCKERFILE: ${{ matrix.dockerfile }}
run: docker build -f ${{ env.ROOT_PATH }}/${{ env.DOCKERFILE }} .
check-ubuntu:
name: ubuntu
runs-on: ubuntu-latest
strategy:
fail-fast: true
max-parallel: 4
matrix:
include:
- os: ubuntu18.04
dockerfile: "Dockerfile.u1804"
- os: ubuntu20.04
dockerfile: "Dockerfile.u2004"
- os: ubuntu22.04
dockerfile: "Dockerfile.u2204"
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Test Dockerfile on ${{ matrix.os }}
env:
DOCKERFILE: ${{ matrix.dockerfile }}
run: docker build -f ${{ env.ROOT_PATH }}/${{ env.DOCKERFILE }} .