Skip to content

Commit

Permalink
Make pr_check.sh simpler (RedHatInsights#2246)
Browse files Browse the repository at this point in the history
  • Loading branch information
gwenneg authored Oct 16, 2023
1 parent 5f2b30d commit 37ce4cd
Showing 1 changed file with 18 additions and 49 deletions.
67 changes: 18 additions & 49 deletions .rhcicd/pr_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,55 +6,24 @@ set -exv
CICD_URL=https://raw.githubusercontent.com/RedHatInsights/bonfire/master/cicd
curl -s $CICD_URL/bootstrap.sh > .cicd_bootstrap.sh && source .cicd_bootstrap.sh

# Build the notifications-backend image and push it to Quay
export IMAGE="quay.io/cloudservices/notifications-backend"
export DOCKERFILE=docker/Dockerfile.notifications-backend.jvm
source $CICD_ROOT/build.sh

# Build the notifications-engine image and push it to Quay
export IMAGE="quay.io/cloudservices/notifications-engine"
export DOCKERFILE=docker/Dockerfile.notifications-engine.jvm
source $CICD_ROOT/build.sh

# Build the notifications-connector-drawer image and push it to Quay
export IMAGE="quay.io/cloudservices/notifications-connector-drawer"
export DOCKERFILE=docker/Dockerfile.notifications-connector-drawer.jvm
source $CICD_ROOT/build.sh

# Build the notifications-connector-email image and push it to Quay
export IMAGE="quay.io/cloudservices/notifications-connector-email"
export DOCKERFILE=docker/Dockerfile.notifications-connector-email.jvm
source $CICD_ROOT/build.sh

# Build the notifications-connector-google-chat image and push it to Quay
export IMAGE="quay.io/cloudservices/notifications-connector-google-chat"
export DOCKERFILE=docker/Dockerfile.notifications-connector-google-chat.jvm
source $CICD_ROOT/build.sh

# Build the notifications-connector-microsoft-teams image and push it to Quay
export IMAGE="quay.io/cloudservices/notifications-connector-microsoft-teams"
export DOCKERFILE=docker/Dockerfile.notifications-connector-microsoft-teams.jvm
source $CICD_ROOT/build.sh

# Build the notifications-connector-servicenow image and push it to Quay
export IMAGE="quay.io/cloudservices/notifications-connector-servicenow"
export DOCKERFILE=docker/Dockerfile.notifications-connector-servicenow.jvm
source $CICD_ROOT/build.sh

# Build the notifications-connector-slack image and push it to Quay
export IMAGE="quay.io/cloudservices/notifications-connector-slack"
export DOCKERFILE=docker/Dockerfile.notifications-connector-slack.jvm
source $CICD_ROOT/build.sh

# Build the notifications-connector-splunk image and push it to Quay
export IMAGE="quay.io/cloudservices/notifications-connector-splunk"
export DOCKERFILE=docker/Dockerfile.notifications-connector-splunk.jvm
source $CICD_ROOT/build.sh

# Build the notifications-connector-webhook image and push it to Quay
export IMAGE="quay.io/cloudservices/notifications-connector-webhook"
export DOCKERFILE=docker/Dockerfile.notifications-connector-webhook.jvm
source $CICD_ROOT/build.sh
# Build a temporary image and push it to Quay
function buildAndPushToQuay() {
IMAGE_NAME=$1
export IMAGE="quay.io/cloudservices/${IMAGE_NAME}"
export DOCKERFILE="docker/Dockerfile.${IMAGE_NAME}.jvm"
source $CICD_ROOT/build.sh
}

buildAndPushToQuay "notifications-backend"
buildAndPushToQuay "notifications-connector-drawer"
buildAndPushToQuay "notifications-connector-email"
buildAndPushToQuay "notifications-connector-google-chat"
buildAndPushToQuay "notifications-connector-microsoft-teams"
buildAndPushToQuay "notifications-connector-servicenow"
buildAndPushToQuay "notifications-connector-slack"
buildAndPushToQuay "notifications-connector-splunk"
buildAndPushToQuay "notifications-connector-webhook"
buildAndPushToQuay "notifications-engine"

# Deploy all images on ephemeral
export APP_NAME="notifications"
Expand Down

0 comments on commit 37ce4cd

Please sign in to comment.