Skip to content

Commit e2b6435

Browse files
authored
Merge pull request #77 from OpenConext/feature/java21
Add java-21 basecontainer
2 parents f52c152 + cb862da commit e2b6435

3 files changed

Lines changed: 50 additions & 0 deletions

File tree

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
name: Build the JAVA container
3+
4+
on:
5+
push:
6+
paths:
7+
- "java21/**"
8+
- ".github/workflows/build-java21.yaml"
9+
schedule:
10+
- cron: '30 7 * * *'
11+
workflow_dispatch:
12+
13+
jobs:
14+
build-push-java21:
15+
runs-on: ubuntu-latest
16+
permissions:
17+
packages: write
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v7
21+
22+
- name: Set up QEMU
23+
uses: docker/setup-qemu-action@v4
24+
25+
- name: Set up Docker Buildx
26+
uses: docker/setup-buildx-action@v4
27+
28+
- name: Login to GitHub Container Registry
29+
uses: docker/login-action@v4
30+
with:
31+
registry: ghcr.io
32+
username: ${{ github.repository_owner }}
33+
password: ${{ secrets.GITHUB_TOKEN }}
34+
35+
- name: Build and push
36+
uses: docker/build-push-action@v7
37+
with:
38+
context: ./java21
39+
platforms: linux/amd64,linux/arm64
40+
# only push the latest tag on the main branch
41+
push: "${{ github.ref == 'refs/heads/main' }}"
42+
tags: |
43+
ghcr.io/openconext/openconext-basecontainers/java21:latest
44+
ghcr.io/openconext/openconext-basecontainers/java21:${{ github.sha }}
45+
cache-from: type=gha
46+
cache-to: type=gha

‎README.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ We provide the following base containers which can be used in downstream project
99
**Apache 2 with shibboleth**</br>
1010
![Build status for apache2 shibboleth production image](https://github.com/OpenConext/OpenConext-BaseContainers/actions/workflows/build-apache2-shibboleth.yaml/badge.svg)
1111

12+
## JAVA containers
13+
**Plain JAVA 21**</br>
14+
![Build status for plain JAVA 21 production image](https://github.com/OpenConext/OpenConext-BaseContainers/actions/workflows/build-java21.yaml/badge.svg)
1215

1316
## PHP 72 images
1417

‎java21/Dockerfile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
FROM eclipse-temurin:21-jre-alpine

0 commit comments

Comments
 (0)