-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MAS Patches #120
base: master
Are you sure you want to change the base?
MAS Patches #120
Conversation
export APP_NAME=$(node -e "console.log(require(\"${WORKSPACE:-.}${APP_DIR:-}/package.json\").insights.appname)") | ||
export CONTAINER_NAME="$APP_NAME-build-main" | ||
# Flexibilty to provide APP_NAME from pr_check.sh parent file. | ||
export APP_NAME=${APP_NAME:=$(node -e "console.log(require(\"${NODE_ROOT}/package.json\").insights.appname)")} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MAS Jenkins instances doesn;t have node installed. so the pipeline fails at this step.
DOCKER_CONF="$PWD/.docker" | ||
mkdir -p "$DOCKER_CONF" | ||
|
||
if [ $QUAY_ORG == "rhoas" ] ; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All our images are in RHOAS org, so we want to push our images there.
@@ -83,6 +117,9 @@ docker run -i --name $CONTAINER_NAME \ | |||
-e SERVER_NAME=$SERVER_NAME \ | |||
-e INCLUDE_CHROME_CONFIG \ | |||
-e CHROME_CONFIG_BRANCH \ | |||
-e APP_NAME=$APP_NAME \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Flexibility to specify APP_NAME, SERVER_NAME and DIST_DIR from parent pr_check.sh file.
related PR: https://gitlab.cee.redhat.com/insights-platform/frontend-build-container/-/merge_requests/24
@adamrdrew Please review |
I will take a look at this today. Thanks! |
MAS Jenkins instances doesn't have node installed. hence cannot fetch App name from package.json. This change provides flexibility to:-