Skip to content

Commit

Permalink
TECH-2011: add jdk17 docker image (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgriffon authored Dec 17, 2024
1 parent 1f8bf13 commit 350ab02
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ on:
- main
- "jdk-.*"

env:
cci_src_image: cimg/openjdk:11.0.20-node

jobs:
build:
strategy:
matrix:
jdk_version: [11.0.20, 17.0.9]
name: Buid and push Docker Images
runs-on: ubuntu-latest
steps:
Expand All @@ -26,9 +26,9 @@ jobs:
- name: Creating tag from CircleCI image
shell: bash
run: |
echo "CCI_SRC_IMAGE=${{ env.cci_src_image }}" >> $GITHUB_ENV
echo "JAHIA_TAG=$(echo ${{ env.cci_src_image }} | sed -r 's/[:\/]+/_/g')" >> $GITHUB_ENV
echo "FROM_IMAGE=jahia/cimg-mvn-cache:$(echo ${{ env.cci_src_image }} | sed -r 's/[:\/]+/_/g')" >> $GITHUB_ENV
echo "CCI_SRC_IMAGE=${{ matrix.jdk_version }}" >> $GITHUB_ENV
echo "JAHIA_TAG=$(echo ${{ matrix.jdk_version }} | sed -r 's/[:\/]+/_/g')" >> $GITHUB_ENV
echo "FROM_IMAGE=jahia/cimg-mvn-cache:$(echo ${{ matrix.jdk_version }} | sed -r 's/[:\/]+/_/g')" >> $GITHUB_ENV
- name: Printing CircleCI image tags
shell: bash
run: |
Expand Down
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# CircleCI Maven Cache images
# CircleCI Maven Cache images

The objective of this repository is to warmup CircleCI maven cache by fetching the most common Jahia dependencies.
The objective of this repository is to provide custom Docker images that are based on the official CircleCI images.
They are used to speed up the build process by providing a pre-warmed maven cache.

These images will be rebuilt at regular interval and aim at being used by any of our jobs that would need access to maven artifacts.

Expand All @@ -18,3 +19,12 @@ The images are updated when changes are pushed to the repository or nightly.

Images are being pushed to https://hub.docker.com/repository/docker/jahia/cimg-mvn-cache

## JDK Support

the `matrix` strategy is used to build images for multiple JDK versions. The [following[.github/workflows/build-and-push.yml#L13-L16] JDK versions are supported:
```
strategy:
matrix:
jdk_version: [11.0.20, 17.0.9]
```

0 comments on commit 350ab02

Please sign in to comment.