This repository has been archived by the owner on Mar 17, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 57
/
config
43 lines (34 loc) · 1.56 KB
/
config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Config used by the different scripts
export PR_CHECK_BUILD=${PR_CHECK_BUILD:-"false"}
export USE_CHE_LATEST_SNAPSHOT=${USE_CHE_LATEST_SNAPSHOT:-"false"}
export TARGET=${TARGET:-"centos"}
export REGISTRY="quay.io"
export NAMESPACE=${NAMESPACE:-"rhchestage"}
if [ "$PR_CHECK_BUILD" == "true" ] || [ "$USE_CHE_LATEST_SNAPSHOT" == "true" ]; then
export DOCKER_IMAGE="rh-che-automation"
else
export DOCKER_IMAGE="rh-che-server"
fi
if [ "$TARGET" == "rhel" ]; then
export DOCKERFILE="Dockerfile.rhel"
export DOCKER_IMAGE_URL="${REGISTRY}/openshiftio/rhel-${NAMESPACE}-${DOCKER_IMAGE}"
export PROD_IMAGE_URL="${REGISTRY}/openshiftio/rhel-che-${DOCKER_IMAGE}"
else
export DOCKERFILE="Dockerfile"
export DOCKER_IMAGE_URL="${REGISTRY}/openshiftio/${NAMESPACE}-${DOCKER_IMAGE}"
export PROD_IMAGE_URL="${REGISTRY}/openshiftio/che-${DOCKER_IMAGE}"
fi
export KEYCLOAK_STANDALONE_CONFIGURATOR_IMAGE="rh-che-standalone-keycloak-configurator"
export KEYCLOAK_DOCKER_IMAGE_URL=${REGISTRY}/openshiftio/${NAMESPACE}-${KEYCLOAK_STANDALONE_CONFIGURATOR_IMAGE}
export KEYCLOAK_PROD_IMAGE_URL=${REGISTRY}/openshiftio/che-${KEYCLOAK_STANDALONE_CONFIGURATOR_IMAGE}
export RH_CHE_GIT_REPO=https://github.com/redhat-developer/rh-che
export RH_CHE_GIT_BRANCH=master
export NPM_CONFIG_PREFIX=~/.che_node_modules
export PATH=$NPM_CONFIG_PREFIX/bin:$PATH
export RH_DIST_SUFFIX=fabric8
if [ "$PR_CHECK_BUILD" == "true" ] || [ "$USE_CHE_LATEST_SNAPSHOT" == "true" ]; then
export RH_TAG_DIST_SUFFIX=rhcheautomation
export RH_PULL_REQUEST_ID="${ghprbPullId}"
else
export RH_TAG_DIST_SUFFIX=fabric8
fi