Skip to content

Commit

Permalink
Re-enable the weird cypress thing
Browse files Browse the repository at this point in the history
  • Loading branch information
catastrophe-brandon committed Jan 17, 2024
1 parent 3006278 commit 6c16d41
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions pr_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,17 @@ COMMON_BUILDER=https://raw.githubusercontent.com/RedHatInsights/insights-fronten
# Build and Publish to Quay
# ---------------------------

set -ex

#docker run -t \
# -v $PWD:/e2e:ro,Z \
# -w /e2e \
# -e CHROME_ACCOUNT=$CHROME_ACCOUNT \
# -e CHROME_PASSWORD=$CHROME_PASSWORD \
# --add-host stage.foo.redhat.com:127.0.0.1 \
# --add-host prod.foo.redhat.com:127.0.0.1 \
# --entrypoint bash \
# quay.io/cloudservices/cypress-e2e-image:06b70f3 /e2e/run-e2e.sh

#echo "After docker run"
set -x

docker run -t \
-v $PWD:/e2e:ro,Z \
-w /e2e \
-e CHROME_ACCOUNT=$CHROME_ACCOUNT \
-e CHROME_PASSWORD=$CHROME_PASSWORD \
--add-host stage.foo.redhat.com:127.0.0.1 \
--add-host prod.foo.redhat.com:127.0.0.1 \
--entrypoint bash \
quay.io/cloudservices/cypress-e2e-image:06b70f3 /e2e/run-e2e.sh

# source is preferred to | bash -s in this case to avoid a subshell
source <(curl -sSL $COMMON_BUILDER/src/frontend-build.sh)
Expand All @@ -53,7 +51,7 @@ SHORT_SHA=$(git rev-parse --short HEAD)
IMAGE_TAG="pr-${ghprbPullId}-${SHORT_SHA}"
echo "Expecting image tag ${IMAGE_TAG}"

set -ex
set -x
# Deploy to an ephemeral namespace for testing
# We deploy rbac and override the image tag for insights-frontend-chrome
export IMAGE="quay.io/cloudservices/insights-chrome-frontend"
Expand Down

0 comments on commit 6c16d41

Please sign in to comment.