Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Commit

Permalink
Merge pull request #557 from GoogleCloudPlatform/e2e-fix-release-2
Browse files Browse the repository at this point in the history
fix: e2e release tests
  • Loading branch information
daniel-sanche authored Nov 9, 2020
2 parents a5747d2 + 5756bbc commit 36771b5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/e2e-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ name: "End to End - Release"
on:
schedule:
# run every day at 8pm
- cron: '* 20 * * *'
- cron: '0 20 * * *'
push:
# run on pushes to test branch
branches:
Expand Down Expand Up @@ -45,7 +45,7 @@ jobs:
echo ::set-output name=repo::${REPO}
BRANCH=$(echo $BTN_CONTENT | grep -o -P '(?<=cloudshell_git_branch\=).*?(?=&)')
echo ::set-output name=branch::${BRANCH}
CLOUDSHELL_IMAGE=$(echo $BTN_CONTENT | grep -o -P '(?<=cloudshell_image\=).*?(?=")')
CLOUDSHELL_IMAGE=$(echo $BTN_CONTENT | grep -o -P '(?<=cloudshell_image\=).*?(?=&)')
echo ::set-output name=cloudshell_image::${CLOUDSHELL_IMAGE}
- name: Run Install Script
timeout-minutes: 30
Expand Down Expand Up @@ -77,12 +77,14 @@ jobs:
cd ./release-code
# get cluster zone
CLUSTER_ZONE=$(gcloud container clusters list --filter="name:cloud-ops-sandbox" --project ${{ env.PROJECT_ID }} --format="value(zone)")
LOADGEN_ZONE=$(gcloud container clusters list --filter="name:loadgenerator" --project ${{ env.PROJECT_ID }} --format="value(zone)")
# build provisioning test image
docker build -t test-provisioning:$GITHUB_SHA-release tests/provisioning/.
# run provisioning tests
docker run --rm \
-e GOOGLE_CLOUD_PROJECT=${{ env.PROJECT_ID }} \
-e ZONE=$CLUSTER_ZONE \
-e LOADGEN_ZONE=$LOADGEN_ZONE \
-v ~/.config:/root/.config \
test-provisioning:$GITHUB_SHA-release
- name: Run Monitoring Integration Tests
Expand Down

0 comments on commit 36771b5

Please sign in to comment.