keycloak-scim/operator/app/scripts/build-testing-docker-images.sh
2022-05-26 12:07:03 -03:00

15 lines
468 B
Bash
Executable file

#! /bin/bash
set -euxo pipefail
VERSION="${1:-latest}"
KEYCLOAK_IMAGE="${2:-quay.io/keycloak/keycloak}"
KEYCLOAK_CUSTOM_IMAGE="${3:-quay.io/keycloak/custom-keycloak}"
echo "Using version: $VERSION"
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
docker build -f ${SCRIPT_DIR}/Dockerfile-custom-image \
--build-arg IMAGE=${KEYCLOAK_IMAGE} \
--build-arg VERSION=${VERSION} \
-t ${KEYCLOAK_CUSTOM_IMAGE}:${VERSION} ${SCRIPT_DIR}