Skip to content

Commit

Permalink
Bumped Keycloak to v24 (#18)
Browse files Browse the repository at this point in the history
Bumped to KC v24
  • Loading branch information
kilmajster committed Mar 10, 2024
1 parent 732dc8f commit 6d652e9
Show file tree
Hide file tree
Showing 37 changed files with 2,213 additions and 2,807 deletions.
16 changes: 0 additions & 16 deletions .github/debug-in-docker.run.xml

This file was deleted.

Binary file added .github/docs/config-auth-flow-override.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/docs/config-authentication.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/docs/config-client-login-theme.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/docs/config-execution.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/docs/login-form-error.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/docs/login-form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed .github/img/example-client-config.png
Binary file not shown.
Binary file removed .github/img/foot-size-execution-config-tooltip.png
Binary file not shown.
Binary file removed .github/img/foot-size-form-config.png
Binary file not shown.
Binary file removed .github/img/foot-size-form-error.png
Binary file not shown.
Binary file removed .github/img/foot-size-form.png
Binary file not shown.
Binary file removed .github/img/new-authenticator-execution.png
Binary file not shown.
31 changes: 0 additions & 31 deletions .github/workflows/automation-tests.yml

This file was deleted.

21 changes: 21 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: main
on:
push:
branches: [ main, development ]
pull_request:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Maven
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'

- name: Build with Maven
run: mvn -B -ntp package --file pom.xml
45 changes: 3 additions & 42 deletions .github/workflows/release-github-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@ jobs:
release-github-tag:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Maven Central Repository
uses: actions/setup-java@v2
- uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'adopt'
java-version: '17'
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
Expand All @@ -28,23 +27,6 @@ jobs:
- name: Set version from git tag
run: mvn -B -ntp versions:set -DgenerateBackupPoms=false -DnewVersion="$TAG"

- name: Import GPG key
run: |
cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}") | gpg --batch --import
gpg --list-secret-keys --keyid-format LONG
- name: Publish maven package
run: |
mvn \
--no-transfer-progress \
--batch-mode \
-D gpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} \
-P ossrh \
clean deploy
env:
MAVEN_USERNAME: kilmajster
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}

- name: Add jar to Github Release
uses: svenstaro/upload-release-action@v2
continue-on-error: true
Expand All @@ -53,24 +35,3 @@ jobs:
file: target/keycloak-username-password-attribute-authenticator-${{ env.TAG }}.jar
asset_name: keycloak-username-password-attribute-authenticator-${{ env.TAG }}.jar
tag: ${{ github.ref }}

- name: Build Docker init container
run: |
docker build \
--build-arg VERSION="$TAG" \
-f src/main/docker/initContainer.Dockerfile \
-t kilmajster/keycloak-username-password-attribute-authenticator:"$TAG" \
-t kilmajster/keycloak-username-password-attribute-authenticator:latest \
.
- name: Log into Docker Hub
uses: docker/login-action@v1
with:
username: kilmajster
password: ${{ secrets.DOCKER_HUB_TOKEN }}

- name: Push tagged Docker image
run: docker push kilmajster/keycloak-username-password-attribute-authenticator:"$TAG"

- name: Push latest Docker image
run: docker push kilmajster/keycloak-username-password-attribute-authenticator:latest
Loading

0 comments on commit 6d652e9

Please sign in to comment.