Skip to content
This repository was archived by the owner on Feb 26, 2026. It is now read-only.

Commit 4e9debd

Browse files
committed
added trampolinerc
1 parent 8795c02 commit 4e9debd

1 file changed

Lines changed: 51 additions & 0 deletions

File tree

.trampolinerc

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+
"STAGING_BUCKET"
20+
"V2_STAGING_BUCKET"
21+
)
22+
23+
# Add env vars which are passed down into the container here.
24+
pass_down_envvars+=(
25+
"STAGING_BUCKET"
26+
"V2_STAGING_BUCKET"
27+
)
28+
29+
# Prevent unintentional override on the default image.
30+
if [[ "${TRAMPOLINE_IMAGE_UPLOAD:-false}" == "true" ]] && \
31+
[[ -z "${TRAMPOLINE_IMAGE:-}" ]]; then
32+
echo "Please set TRAMPOLINE_IMAGE if you want to upload the Docker image."
33+
exit 1
34+
fi
35+
36+
# Define the default value if it makes sense.
37+
if [[ -z "${TRAMPOLINE_IMAGE_UPLOAD:-}" ]]; then
38+
TRAMPOLINE_IMAGE_UPLOAD=""
39+
fi
40+
41+
if [[ -z "${TRAMPOLINE_IMAGE:-}" ]]; then
42+
TRAMPOLINE_IMAGE=""
43+
fi
44+
45+
if [[ -z "${TRAMPOLINE_DOCKERFILE:-}" ]]; then
46+
TRAMPOLINE_DOCKERFILE=""
47+
fi
48+
49+
if [[ -z "${TRAMPOLINE_BUILD_FILE:-}" ]]; then
50+
TRAMPOLINE_BUILD_FILE=""
51+
fi

0 commit comments

Comments
 (0)