Skip to content

Commit ae621b7

Browse files
build(node_library): migrate to Trampoline V2 (#402)
This PR was generated using Autosynth. 🌈 Synth log will be available here: https://source.cloud.google.com/results/invocations/e2b098f4-76c4-4fe5-820c-ae293231f7bd/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: googleapis/synthtool@0c868d4
1 parent 31c1458 commit ae621b7

2 files changed

Lines changed: 55 additions & 2 deletions

File tree

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Copyright 2020 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# Template for .trampolinerc
16+
17+
# Add required env vars here.
18+
required_envvars+=(
19+
)
20+
21+
# Add env vars which are passed down into the container here.
22+
pass_down_envvars+=(
23+
"AUTORELEASE_PR"
24+
)
25+
26+
# Prevent unintentional override on the default image.
27+
if [[ "${TRAMPOLINE_IMAGE_UPLOAD:-false}" == "true" ]] && \
28+
[[ -z "${TRAMPOLINE_IMAGE:-}" ]]; then
29+
echo "Please set TRAMPOLINE_IMAGE if you want to upload the Docker image."
30+
exit 1
31+
fi
32+
33+
# Define the default value if it makes sense.
34+
if [[ -z "${TRAMPOLINE_IMAGE_UPLOAD:-}" ]]; then
35+
TRAMPOLINE_IMAGE_UPLOAD=""
36+
fi
37+
38+
if [[ -z "${TRAMPOLINE_IMAGE:-}" ]]; then
39+
TRAMPOLINE_IMAGE=""
40+
fi
41+
42+
if [[ -z "${TRAMPOLINE_DOCKERFILE:-}" ]]; then
43+
TRAMPOLINE_DOCKERFILE=""
44+
fi
45+
46+
if [[ -z "${TRAMPOLINE_BUILD_FILE:-}" ]]; then
47+
TRAMPOLINE_BUILD_FILE=""
48+
fi
49+
50+
# Secret Manager secrets.
51+
source ${PROJECT_ROOT}/.kokoro/populate-secrets.sh

packages/google-cloud-asset/synth.metadata

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"git": {
55
"name": ".",
66
"remote": "https://github.com/googleapis/nodejs-asset.git",
7-
"sha": "5832a00924b5b2637003f6949805903225fcacfc"
7+
"sha": "d2b27fc846b873e02ba4121ff8a1ed0156c2d679"
88
}
99
},
1010
{
@@ -19,7 +19,7 @@
1919
"git": {
2020
"name": "synthtool",
2121
"remote": "https://github.com/googleapis/synthtool.git",
22-
"sha": "079dcce498117f9570cebe6e6cff254b38ba3860"
22+
"sha": "0c868d49b8e05bc1f299bc773df9eb4ef9ed96e9"
2323
}
2424
}
2525
],
@@ -120,10 +120,12 @@
120120
".kokoro/test.bat",
121121
".kokoro/test.sh",
122122
".kokoro/trampoline.sh",
123+
".kokoro/trampoline_v2.sh",
123124
".mocharc.js",
124125
".nycrc",
125126
".prettierignore",
126127
".prettierrc.js",
128+
".trampolinerc",
127129
"CODE_OF_CONDUCT.md",
128130
"CONTRIBUTING.md",
129131
"LICENSE",

0 commit comments

Comments
 (0)