Skip to content

Commit

Permalink
SSL verify
Browse files Browse the repository at this point in the history
  • Loading branch information
TimVanMourik committed Jan 12, 2024
1 parent d72f2f4 commit 569e2f7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ inputs:
import-files:
description: "A list of files to import into Keycloak"
required: true
ssl-verify:
description: "Whether to verify SSL certificates"
required: false
default: false
runs:
using: "docker"
image: "Dockerfile"
Expand All @@ -21,3 +25,4 @@ runs:
KEYCLOAK_USER: ${{ inputs.keycloak-user }}
KEYCLOAK_PASSWORD: ${{ inputs.keycloak-password }}
IMPORT_FILES: ${{ inputs.import-files }}
SSL_VERIFY: ${{ inputs.ssl-verify }}
7 changes: 6 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#!/bin/bash
set -e

java $JAVA_OPTS -jar /app/keycloak-config-cli.jar $0 $@
java $JAVA_OPTS -jar /app/keycloak-config-cli.jar \
--keycloak.url=${KEYCLOAK_URL} \
--keycloak.user=${KEYCLOAK_USER} \
--keycloak.password=${KEYCLOAK_PASSWORD} \
--import.files.locations=${IMPORT_FILES} \
--keycloak.ssl-verify=${SSL_VERIFY}

0 comments on commit 569e2f7

Please sign in to comment.