-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (44 loc) · 1.16 KB
/
OpenJDK-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
name: build OpenJDKJava
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
push:
branches:
- master
paths:
- OpenJDK-java8/**
- OpenJDK-java11/**
- OpenJDK-java17/**
- OpenJDK-java21/**
jobs:
push:
name: "yolks:openjdk-java${{ matrix.tag }}"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
tag:
- '8'
- '11'
- '17'
- '21'
steps:
- uses: actions/checkout@v2
- uses: docker/setup-qemu-action@v1
- uses: docker/setup-buildx-action@v1
with:
version: "v0.5.1"
buildkitd-flags: --debug
- uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUBTOKEN }}
- uses: docker/build-push-action@v2
with:
context: ./OpenJDK-java${{ matrix.tag }}
file: ./OpenJDK-java${{ matrix.tag }}/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: |
ghcr.io/mg8853/yolks:openjdk-java${{ matrix.tag }}