blob: c7d663ae9c576ca1b907b3fc75f926d622b597e0 [file] [log] [blame]
Tres Seaver000d0a02020-10-06 15:47:28 -04001# 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.
18required_envvars+=(
19 "STAGING_BUCKET"
20 "V2_STAGING_BUCKET"
Yoshi Automation Bot84cfb972021-01-15 11:07:01 -080021 "NOX_SESSION"
Tres Seaver000d0a02020-10-06 15:47:28 -040022)
23
24# Add env vars which are passed down into the container here.
25pass_down_envvars+=(
26 "STAGING_BUCKET"
27 "V2_STAGING_BUCKET"
Yoshi Automation Bot84cfb972021-01-15 11:07:01 -080028 "NOX_SESSION"
Tres Seaver000d0a02020-10-06 15:47:28 -040029)
30
31# Prevent unintentional override on the default image.
32if [[ "${TRAMPOLINE_IMAGE_UPLOAD:-false}" == "true" ]] && \
33 [[ -z "${TRAMPOLINE_IMAGE:-}" ]]; then
34 echo "Please set TRAMPOLINE_IMAGE if you want to upload the Docker image."
35 exit 1
36fi
37
38# Define the default value if it makes sense.
39if [[ -z "${TRAMPOLINE_IMAGE_UPLOAD:-}" ]]; then
40 TRAMPOLINE_IMAGE_UPLOAD=""
41fi
42
43if [[ -z "${TRAMPOLINE_IMAGE:-}" ]]; then
44 TRAMPOLINE_IMAGE=""
45fi
46
47if [[ -z "${TRAMPOLINE_DOCKERFILE:-}" ]]; then
48 TRAMPOLINE_DOCKERFILE=""
49fi
50
51if [[ -z "${TRAMPOLINE_BUILD_FILE:-}" ]]; then
52 TRAMPOLINE_BUILD_FILE=""
53fi