Skip to content
This repository was archived by the owner on Apr 3, 2024. It is now read-only.

Commit 7f412a6

Browse files
Benjamin E. CoeDominicKramer
authored andcommitted
build: switch to GitHub magic proxy (#721)
1 parent 1fc46fb commit 7f412a6

File tree

3 files changed

+28
-9
lines changed

3 files changed

+28
-9
lines changed

.kokoro/continuous/node10/test.cfg

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,30 @@ before_action {
88
}
99
}
1010

11-
# token used by release-please to keep an up-to-date release PR.
11+
# tokens used by release-please to keep an up-to-date release PR.
1212
before_action {
1313
fetch_keystore {
1414
keystore_resource {
1515
keystore_config_id: 73713
16-
keyname: "yoshi-automation-github-key"
16+
keyname: "github-magic-proxy-key-release-please"
17+
}
18+
}
19+
}
20+
21+
before_action {
22+
fetch_keystore {
23+
keystore_resource {
24+
keystore_config_id: 73713
25+
keyname: "github-magic-proxy-token-release-please"
26+
}
27+
}
28+
}
29+
30+
before_action {
31+
fetch_keystore {
32+
keystore_resource {
33+
keystore_config_id: 73713
34+
keyname: "github-magic-proxy-url-release-please"
1735
}
1836
}
1937
}

.kokoro/test.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,11 @@ else
3636
echo "coverage is only reported for Node $COVERAGE_NODE"
3737
fi
3838

39-
# if the GITHUB_TOKEN is set, we kick off a task to update the release-PR.
40-
GITHUB_TOKEN=$(cat $KOKORO_KEYSTORE_DIR/73713_yoshi-automation-github-key) || true
41-
if [ "$GITHUB_TOKEN" ]; then
42-
npx release-please release-pr --token=$GITHUB_TOKEN \
39+
# if release-please keys set, we kick off a task to update the release-PR.
40+
if [ -f ${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-url-release-please ]; then
41+
npx release-please release-pr --token=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-token-release-please \
4342
--repo-url=googleapis/cloud-debug-nodejs \
44-
--package-name=@google-cloud/debug-agent
43+
--package-name=@google-cloud/debug-agent \
44+
--api-url=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-url-release-please \
45+
--proxy-key=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-key-release-please
4546
fi

synth.metadata

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"updateTime": "2019-05-17T19:40:34.760201Z",
2+
"updateTime": "2019-06-18T00:57:04.238582Z",
33
"sources": [
44
{
55
"template": {
66
"name": "node_library",
77
"origin": "synthtool.gcp",
8-
"version": "2019.4.10"
8+
"version": "2019.5.2"
99
}
1010
}
1111
]

0 commit comments

Comments
 (0)