Skip to content

Commit

Permalink
build: switch to GitHub magic proxy (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe committed Jun 18, 2019
1 parent 6ce0f1f commit dd50fdc
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 9 deletions.
22 changes: 20 additions & 2 deletions .kokoro/continuous/node10/test.cfg
Expand Up @@ -8,12 +8,30 @@ before_action {
}
}

# token used by release-please to keep an up-to-date release PR.
# tokens used by release-please to keep an up-to-date release PR.
before_action {
fetch_keystore {
keystore_resource {
keystore_config_id: 73713
keyname: "yoshi-automation-github-key"
keyname: "github-magic-proxy-key-release-please"
}
}
}

before_action {
fetch_keystore {
keystore_resource {
keystore_config_id: 73713
keyname: "github-magic-proxy-token-release-please"
}
}
}

before_action {
fetch_keystore {
keystore_resource {
keystore_config_id: 73713
keyname: "github-magic-proxy-url-release-please"
}
}
}
11 changes: 6 additions & 5 deletions .kokoro/test.sh
Expand Up @@ -36,10 +36,11 @@ else
echo "coverage is only reported for Node $COVERAGE_NODE"
fi

# if the GITHUB_TOKEN is set, we kick off a task to update the release-PR.
GITHUB_TOKEN=$(cat $KOKORO_KEYSTORE_DIR/73713_yoshi-automation-github-key) || true
if [ "$GITHUB_TOKEN" ]; then
npx release-please release-pr --token=$GITHUB_TOKEN \
# if release-please keys set, we kick off a task to update the release-PR.
if [ -f ${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-url-release-please ]; then
npx release-please release-pr --token=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-token-release-please \
--repo-url=googleapis/nodejs-promisify \
--package-name=@google-cloud/promisify
--package-name=@google-cloud/promisify \
--api-url=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-url-release-please \
--proxy-key=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-key-release-please
fi
4 changes: 2 additions & 2 deletions synth.metadata
@@ -1,11 +1,11 @@
{
"updateTime": "2019-05-17T19:48:17.396686Z",
"updateTime": "2019-06-18T01:02:57.571489Z",
"sources": [
{
"template": {
"name": "node_library",
"origin": "synthtool.gcp",
"version": "2019.4.10"
"version": "2019.5.2"
}
}
]
Expand Down

0 comments on commit dd50fdc

Please sign in to comment.