Skip to content

Conversation

@riprasad
Copy link
Member

MAS Jenkins instances doesn't have node installed. hence cannot fetch App name from package.json. This change provides flexibility to:-

  • provide APP_NAME, SERVER_NAME, and DIST_DIR from parent pr_check.sh script
  • push images to to RHOAS quay org

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)")}
Copy link
Member Author

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
Copy link
Member Author

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.

-e SERVER_NAME=$SERVER_NAME \
-e INCLUDE_CHROME_CONFIG \
-e CHROME_CONFIG_BRANCH \
-e APP_NAME=$APP_NAME \
Copy link
Member Author

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

@riprasad riprasad marked this pull request as draft February 10, 2023 12:54
@riprasad riprasad marked this pull request as ready for review February 10, 2023 12:55
@riprasad
Copy link
Member Author

@adamrdrew Please review

@adamrdrew
Copy link
Collaborator

I will take a look at this today. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants