-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(image): productionize the keycloak image
- Integration tests added for AWS with IRSA and ARM. - Linting added to the repository. - Automatic image publishing on DockerHub. - Multi-architecture images. - New README file.
- Loading branch information
1 parent
5e7f5b6
commit 6a15db2
Showing
24 changed files
with
1,236 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
self-hosted-runner: | ||
# Labels of self-hosted runner in array of string | ||
labels: | ||
- aws-arm-core-2-default | ||
- aws-core-2-default | ||
- gcp-core-2-default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,20 +11,20 @@ inputs: | |
runs: | ||
using: composite | ||
steps: | ||
- name: Run ${{ inputs.project_name }} compose | ||
uses: isbang/[email protected] | ||
with: | ||
compose-file: | | ||
${{ inputs.compose_file }} | ||
compose-flags: "--project-name ${{ inputs.project_name }}" | ||
- name: Short sleep to let it startup | ||
shell: bash | ||
run: sleep 3 | ||
- name: Check if service is healthy | ||
shell: bash | ||
run: | | ||
${{ github.action_path }}/healthy.sh | ||
env: | ||
FILE: ${{ inputs.compose_file }} | ||
TIMEOUT: "300" | ||
COMPOSE_FLAGS: "--project-name ${{ inputs.project_name }}" | ||
- name: Run ${{ inputs.project_name }} compose | ||
uses: isbang/compose-action@178aeba5c9dbeed89ffffbb3e6548ec08e9839cf # v1.5.1 | ||
with: | ||
compose-file: | | ||
${{ inputs.compose_file }} | ||
compose-flags: "--project-name ${{ inputs.project_name }}" | ||
- name: Short sleep to let it startup | ||
shell: bash | ||
run: sleep 3 | ||
- name: Check if service is healthy | ||
shell: bash | ||
run: | | ||
${{ github.action_path }}/healthy.sh | ||
env: | ||
FILE: ${{ inputs.compose_file }} | ||
TIMEOUT: "300" | ||
COMPOSE_FLAGS: "--project-name ${{ inputs.project_name }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,48 @@ | ||
{ | ||
extends: [ | ||
"extends": [ | ||
"config:recommended", | ||
"docker:enableMajor", | ||
":dependencyDashboard", | ||
":semanticCommits" | ||
":semanticCommits", | ||
":docker" | ||
], | ||
automerge: false, | ||
regexManagers: [ | ||
"automerge": false, | ||
"packageRules": [ | ||
{ | ||
fileMatch: ["build.gradle$"], | ||
matchStrings: [ | ||
"matchManagers": ["dockerfile"], | ||
"groupName": "new major keycloak available", | ||
"groupSlug": "new-major-keycloak", | ||
"matchDatasources": ["docker"], | ||
"matchFileNames": [".watch-latest/Dockerfile"], | ||
"matchUpdateTypes": ["major"], | ||
"enabled": true, | ||
"addLabels": ["dependencies", "docker"] | ||
}, | ||
{ | ||
"matchManagers": ["dockerfile"], | ||
"groupName": "all non-major keycloak", | ||
"groupSlug": "all-non-major-keycloak", | ||
"matchDatasources": ["docker"], | ||
"matchFileNames": ["keycloak-*/Dockerfile"], | ||
"matchUpdateTypes": ["minor", "patch", "digest", "pin", "pinDigest"], | ||
"enabled": true, | ||
"addLabels": ["dependencies", "docker"] | ||
}, | ||
{ | ||
"matchManagers": ["dockerfile"], | ||
"matchDatasources": ["docker"], | ||
"matchFileNames": ["keycloak-*/Dockerfile"], | ||
"matchUpdateTypes": ["major"], | ||
"enabled": false | ||
} | ||
], | ||
"customManagers": [ | ||
{ | ||
"customType": "regex", | ||
"fileMatch": ["build.gradle$"], | ||
"matchStrings": [ | ||
"renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?\\s.* (?<currentValue>.*)\\s" | ||
], | ||
versioningTemplate: "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}" | ||
"versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
|
||
#!/usr/bin/env bash | ||
|
||
# Script: find_latest_keycloak.sh | ||
# Description: Finds the latest version of Keycloak from folders prefixed with "keycloak-" in the current directory. | ||
# Usage: find_latest_keycloak.sh | ||
|
||
ls -1d --color=never "$(pwd)"/keycloak-* | tail -n 1 | awk -F'[-/]' '{print $(NF-0)}' |
Oops, something went wrong.