Skip to content

Commit 70efe58

Browse files
author
Benjamin E. Coe
authored
build: switch to GitHub magic proxy (#440)
1 parent a93ef91 commit 70efe58

File tree

3 files changed

+31
-12
lines changed

3 files changed

+31
-12
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/nodejs-datastore \
44-
--package-name=@google-cloud/datastore
43+
--package-name=@google-cloud/datastore \
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: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
2-
"updateTime": "2019-06-12T11:13:06.532088Z",
2+
"updateTime": "2019-06-18T01:00:06.903003Z",
33
"sources": [
44
{
55
"generator": {
66
"name": "artman",
7-
"version": "0.24.1",
8-
"dockerImage": "googleapis/artman@sha256:6018498e15310260dc9b03c9d576608908ed9fbabe42e1494ff3d827fea27b19"
7+
"version": "0.26.0",
8+
"dockerImage": "googleapis/artman@sha256:6db0735b0d3beec5b887153a2a7c7411fc7bb53f73f6f389a822096bd14a3a15"
99
}
1010
},
1111
{
1212
"git": {
1313
"name": "googleapis",
1414
"remote": "https://github.com/googleapis/googleapis.git",
15-
"sha": "f117dac435e96ebe58d85280a3faf2350c4d4219",
16-
"internalRef": "252714985"
15+
"sha": "384aa843867c4d17756d14a01f047b6368494d32",
16+
"internalRef": "253675319"
1717
}
1818
},
1919
{

0 commit comments

Comments
 (0)