|
27 | 27 | # |
28 | 28 | # This script runs named builds, where builds are defined as a build script |
29 | 29 | # (which lives in `ci/cloudbuild/builds/`) and a distro (which is defined in |
30 | | -# `ci/cloudbuild/<distro>.Dockerfile`). Trigger files (which live in |
31 | | -# `ci/cloudbuild/triggers/`) associate build scripts with the distro they're |
| 30 | +# `ci/cloudbuild/dockerfiles/<distro>.Dockerfile`). Trigger files (which live |
| 31 | +# in `ci/cloudbuild/triggers/`) associate build scripts with the distro they're |
32 | 32 | # intended to run on. For example, the "asan-pr" build is defined in the |
33 | 33 | # `ci/cloudbuild/triggers/asan-pr.yaml` file, which specifies that the |
34 | 34 | # `ci/cloudbuild/builds/asan.sh` script should be run on the |
35 | | -# `ci/cloudbuild/fedora.Dockerfile` image. There are a couple ways to specify |
36 | | -# builds: |
| 35 | +# `ci/cloudbuild/dockerfiles/fedora.Dockerfile` image. There are a couple ways |
| 36 | +# to specify builds: |
37 | 37 | # |
38 | 38 | # 1. Explicitly name the distro and build script. For example: |
39 | 39 | # $ build.sh --distro fedora asan |
@@ -212,7 +212,7 @@ if [[ "${DOCKER_FLAG}" = "true" ]]; then |
212 | 212 | image="gcb-${DISTRO_FLAG}:latest" |
213 | 213 | io::log_h2 "Building docker image: ${image}" |
214 | 214 | docker build -t "${image}" "--build-arg=NCPU=$(nproc)" \ |
215 | | - -f "ci/cloudbuild/${DISTRO_FLAG}.Dockerfile" ci |
| 215 | + -f "ci/cloudbuild/dockerfiles/${DISTRO_FLAG}.Dockerfile" ci |
216 | 216 | io::log_h2 "Starting container for ${image} running ${BUILD_NAME}" |
217 | 217 | run_flags=( |
218 | 218 | "--interactive" |
@@ -241,7 +241,7 @@ if [[ "${DOCKER_FLAG}" = "true" ]]; then |
241 | 241 | fi |
242 | 242 |
|
243 | 243 | # Surface invalid arguments early rather than waiting for GCB to fail. |
244 | | -if [ ! -r "${PROGRAM_DIR}/${DISTRO_FLAG}.Dockerfile" ]; then |
| 244 | +if [ ! -r "${PROGRAM_DIR}/dockerfiles/${DISTRO_FLAG}.Dockerfile" ]; then |
245 | 245 | io::log_red "Unknown distro: ${DISTRO_FLAG}" |
246 | 246 | print_usage |
247 | 247 | exit 1 |
|
0 commit comments