keycloak-scim/operator/scripts/build-testing-docker-images.sh
Andrea Peruffo 7816e69e38
Build the Olm bundle and test it in CI (#10949)
* Building the OLM bundle

* kustomize the main CRD for the OLM bundle

* minor fixes
2022-04-08 10:22:01 +02: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}