Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,11 @@ updates:
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "maven"
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "docker"
directory: "/"
schedule:
interval: "weekly"
35 changes: 12 additions & 23 deletions .github/workflows/build_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,63 +13,52 @@ on:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
services:
registry:
image: registry:2
ports:
- 5000:5000
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
uses: docker/setup-qemu-action@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
uses: docker/setup-buildx-action@v4
with:
driver-opts: network=host

- name: Build and push to local registry
uses: docker/build-push-action@v3
uses: docker/build-push-action@v7
with:
context: .
push: true
tags: localhost:5000/name/app:latest

- id: extract
uses: shrink/actions-docker-extract@v3
uses: shrink/actions-docker-extract@v3.1.0
with:
image: localhost:5000/name/app:latest
path: /release/.

- name: upload build artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: build
path: ${{ steps.extract.outputs.destination }}/*.jar
if-no-files-found: error
retention-days: 14

- name: Create release
uses: actions/create-release@v1
- name: Create release and upload artifact
if: startsWith(github.ref, 'refs/tags/')
id: create_release
uses: softprops/action-gh-release@v2.5.0
with:
draft: false
prerelease: false
release_name: ${{ github.ref_name }}
name: ${{ github.ref_name }}
tag_name: ${{ github.ref_name }}
env:
GITHUB_TOKEN: ${{ github.token }}

- name: Upload release artifact
if: startsWith(github.ref, 'refs/tags/')
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ steps.extract.outputs.destination }}/keycloak-google-groups-mapper-${{github.ref_name}}-jar-with-dependencies.jar
asset_name: keycloak-google-groups-mapper-${{github.ref_name}}-jar-with-dependencies.jar
asset_content_type: application/java-archive
files: ${{ steps.extract.outputs.destination }}/*.jar
6 changes: 3 additions & 3 deletions .github/workflows/verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
- uses: actions/checkout@v6
- uses: actions/setup-java@v5
with:
java-version: '21'
distribution: 'adopt'
distribution: 'temurin'
- name: Verify
run: mvn --batch-mode verify
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM maven:3.9.9-eclipse-temurin-21 AS build
FROM maven:3.9.13-eclipse-temurin-21 AS build

WORKDIR /home/app/src

Expand All @@ -7,7 +7,7 @@ RUN mvn clean verify

RUN mvn -q -Dexec.executable=echo -Dexec.args='${project.artifactId}-${project.version}-jar-with-dependencies.jar' --non-recursive exec:exec > /home/app/src/release-fullname.txt

FROM alpine:3
FROM alpine:3.23.3

WORKDIR /release

Expand Down
16 changes: 8 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<java.version>21</java.version>
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
<keycloak.version>26.2.0</keycloak.version>
<keycloak.version>26.5.0</keycloak.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<distribution.name>${project.artifactId}</distribution.name>
</properties>
Expand Down Expand Up @@ -64,17 +64,17 @@
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-admin-directory</artifactId>
<version>directory_v1-rev20250325-2.0.0</version>
<version>directory_v1-rev20250527-2.0.0</version>
</dependency>
<dependency>
<groupId>com.google.http-client</groupId>
<artifactId>google-http-client-jackson2</artifactId>
<version>1.46.3</version>
<version>1.47.0</version>
</dependency>
<dependency>
<groupId>com.google.auth</groupId>
<artifactId>google-auth-library-oauth2-http</artifactId>
<version>1.33.1</version>
<version>1.35.0</version>
</dependency>

<dependency>
Expand All @@ -86,7 +86,7 @@
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>5.12.2</version>
<version>6.0.3</version>
<scope>test</scope>
</dependency>

Expand All @@ -97,7 +97,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.7.1</version>
<version>3.8.0</version>

<configuration>
<descriptorRefs>
Expand All @@ -119,7 +119,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>3.1.1</version>
<version>3.3.1</version>
<configuration>
<tagNameFormat>v@{project.version}</tagNameFormat>
</configuration>
Expand All @@ -128,7 +128,7 @@
<plugin>
<groupId>org.jreleaser</groupId>
<artifactId>jreleaser-maven-plugin</artifactId>
<version>1.17.0</version>
<version>1.23.0</version>
<configuration>
<jreleaser>
<release>
Expand Down
Loading