forked from pelican-eggs/yolks
-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (65 loc) · 1.78 KB
/
java.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
name: build java
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * 1"
push:
branches:
- master
paths:
- java/**
jobs:
push:
name: "java:${{ matrix.jdk }}_${{ matrix.tag }}"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
jdk:
- temurin
- zulu
- openjdk
- amazoncorretto
- graalvm
tag:
- '8'
- '8-forge'
- '11'
- '11-forge'
- '16'
- '17'
- '18'
- '19'
- '20'
- '21'
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Check file existence
id: check_files
uses: andstor/[email protected]
with:
files: "./java/${{ matrix.jdk }}/${{ matrix.tag }}/Dockerfile"
- uses: docker/setup-qemu-action@v3
if: ${{ steps.check_files.outputs.files_exists == 'true' }}
- uses: docker/setup-buildx-action@v3
if: ${{ steps.check_files.outputs.files_exists == 'true' }}
with:
buildkitd-flags: --debug
driver-opts: |
image=moby/buildkit:latest
- uses: docker/login-action@v3
if: ${{ steps.check_files.outputs.files_exists == 'true' }}
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v5
if: ${{ steps.check_files.outputs.files_exists == 'true' }}
with:
context: ./java
file: ./java/${{ matrix.jdk }}/${{ matrix.tag }}/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: |
ghcr.io/egomaw/java:${{ matrix.jdk }}_${{ matrix.tag }}