|
@ -21,10 +21,10 @@ echo "SOURCE_DIR: ${SOURCE_DIR}" |
|
|
export RELEASE_VERSION=`cat version.ini` |
|
|
export RELEASE_VERSION=`cat version.ini` |
|
|
if [ "${docker_registry}" != "" ] || [ "${1}" == "docker-image" ] || [ "${2}" == "docker-image" ] |
|
|
if [ "${docker_registry}" != "" ] || [ "${1}" == "docker-image" ] || [ "${2}" == "docker-image" ] |
|
|
then |
|
|
then |
|
|
docker build -t ${docker_registry}${docker_registry_path_suffix}/juice-keycloak:${RELEASE_VERSION} -t ${docker_registry}${docker_registry_path_suffix}/juice-keycloak:latest . && |
|
|
|
|
|
|
|
|
docker build -t ${docker_registry}${docker_registry_path_suffix}/jce-keycloak:${RELEASE_VERSION} -t ${docker_registry}${docker_registry_path_suffix}/jce-keycloak:latest . && |
|
|
docker login --username ${docker_registry_username} --password ${docker_registry_password} ${docker_registry} && |
|
|
docker login --username ${docker_registry_username} --password ${docker_registry_password} ${docker_registry} && |
|
|
docker push ${docker_registry}${docker_registry_path_suffix}/juice-keycloak:${RELEASE_VERSION} && |
|
|
|
|
|
docker push ${docker_registry}${docker_registry_path_suffix}/juice-keycloak:latest |
|
|
|
|
|
|
|
|
docker push ${docker_registry}${docker_registry_path_suffix}/jce-keycloak:${RELEASE_VERSION} && |
|
|
|
|
|
docker push ${docker_registry}${docker_registry_path_suffix}/jce-keycloak:latest |
|
|
exit $? |
|
|
exit $? |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
@ -32,8 +32,8 @@ fi |
|
|
if [ "${BUILD_RPM}" != "" ] || [ "${1}" == "rpm" ] || [ "${2}" == "rpm" ] |
|
|
if [ "${BUILD_RPM}" != "" ] || [ "${1}" == "rpm" ] || [ "${2}" == "rpm" ] |
|
|
then |
|
|
then |
|
|
|
|
|
|
|
|
export _RPMBUILD_DIR="${RPMBUILD_DIR:-/tmp/rpmbuild-juice-keycloak}" |
|
|
|
|
|
export RPM_BUILD_ROOT="${RPM_BUILD_ROOT:-/tmp/build-juice-keycloak}" |
|
|
|
|
|
|
|
|
export _RPMBUILD_DIR="${RPMBUILD_DIR:-/tmp/rpmbuild-jce-keycloak}" |
|
|
|
|
|
export RPM_BUILD_ROOT="${RPM_BUILD_ROOT:-/tmp/build-jce-keycloak}" |
|
|
if [ ! -d "${_RPMBUILD_DIR}" ] |
|
|
if [ ! -d "${_RPMBUILD_DIR}" ] |
|
|
then |
|
|
then |
|
|
mkdir -p "${_RPMBUILD_DIR}" |
|
|
mkdir -p "${_RPMBUILD_DIR}" |
|
@ -46,7 +46,7 @@ then |
|
|
then |
|
|
then |
|
|
mkdir -p "${RPM_BUILD_ROOT}" |
|
|
mkdir -p "${RPM_BUILD_ROOT}" |
|
|
fi |
|
|
fi |
|
|
rpmbuild --target noarch -bb "${SOURCE_DIR}/juice-keycloak.spec" --buildroot="${RPM_BUILD_ROOT}" --define "_topdir ${_RPMBUILD_DIR}" --define "_release_version ${RELEASE_VERSION}" |
|
|
|
|
|
|
|
|
rpmbuild --target noarch -bb "${SOURCE_DIR}/jce-keycloak.spec" --buildroot="${RPM_BUILD_ROOT}" --define "_topdir ${_RPMBUILD_DIR}" --define "_release_version ${RELEASE_VERSION}" |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
if [ "${RUN_HOOKS}" != "" ] |
|
|
if [ "${RUN_HOOKS}" != "" ] |
|
|