Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
build: switch to GitHub magic proxy (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe authored and callmehiphop committed Jun 18, 2019
1 parent eba57a2 commit d781de1
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 12 deletions.
22 changes: 20 additions & 2 deletions .kokoro/continuous/node10/test.cfg
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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-asset \
--package-name=@google-cloud/asset
--package-name=@google-cloud/asset \
--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
10 changes: 5 additions & 5 deletions synth.metadata
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"updateTime": "2019-06-12T11:09:03.735749Z",
"updateTime": "2019-06-18T00:57:22.750044Z",
"sources": [
{
"generator": {
"name": "artman",
"version": "0.24.1",
"dockerImage": "googleapis/artman@sha256:6018498e15310260dc9b03c9d576608908ed9fbabe42e1494ff3d827fea27b19"
"version": "0.26.0",
"dockerImage": "googleapis/artman@sha256:6db0735b0d3beec5b887153a2a7c7411fc7bb53f73f6f389a822096bd14a3a15"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "f117dac435e96ebe58d85280a3faf2350c4d4219",
"internalRef": "252714985"
"sha": "384aa843867c4d17756d14a01f047b6368494d32",
"internalRef": "253675319"
}
},
{
Expand Down

0 comments on commit d781de1

Please sign in to comment.