Skip to content

Commit 463e5a6

Browse files
(fix): Fix contributor PR e2e tests (#1820)
* attempt to use head repo url for checkout * add documentation for gcp variables
1 parent 9e33aa3 commit 463e5a6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cloudbuild.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@ steps:
33
id: clone-and-configure
44
entrypoint: "bash"
55
args:
6+
# $BRANCH_NAME and $_HEAD_REPO_URL usage is documented here
7+
# https://cloud.google.com/build/docs/configuring-builds/substitute-variable-values
68
- "-e"
79
- "-c"
810
- |
9-
git clone -b $BRANCH_NAME https://github.com/getsentry/self-hosted.git
11+
git clone -b $BRANCH_NAME $_HEAD_REPO_URL
1012
echo '{"version": "3.4", "networks":{"default":{"external":{"name":"cloudbuild"}}}}' > self-hosted/docker-compose.override.yml
1113
timeout: 60s
1214
- name: "gcr.io/$PROJECT_ID/docker-compose"

0 commit comments

Comments
 (0)