infra: Support build types.

Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
This commit is contained in:
Tim 'mithro' Ansell 2019-01-09 09:41:01 -08:00
parent f3a8ee2bb9
commit 32fb0175b4
2 changed files with 4 additions and 1 deletions

View File

@ -5,7 +5,7 @@ ARG NUM_PARALLEL_JOBS=1
COPY . /source
RUN cd /source && make -j${NUM_PARALLEL_JOBS} --output-sync=target --warn-undefined-variables build && make env
RUN bash -c ". /source/database/artix7/settings.sh; cd /source/fuzzers && make --output-sync=target --warn-undefined-variables"
RUN bash -c ". /source/database/artix7/settings.sh; cd /source/fuzzers && make --output-sync=target --warn-undefined-variables ${BUILD_TYPE}"
#RUN find /source/database -mindepth 1 -maxdepth 1 -type d -exec /source/htmlgen/htmlgen.py --settings={}/settings.sh --output=/output/html \;
RUN mkdir -p /output/raw && find /source/database -mindepth 1 -maxdepth 1 -type d -exec cp -R {} /output/raw \;

View File

@ -6,6 +6,8 @@ steps:
- 'DEV_ENV_IMAGE=${_DEV_ENV_IMAGE}'
- '--build-arg'
- 'NUM_PARALLEL_JOBS=${_NUM_CPUS}'
- '--build-arg'
- 'BUILD_TYPE=${_BUILD_TYPE}'
- '-t'
- '${_GCR_ZONE}/$PROJECT_ID/${_IMAGE_NAME}:${SHORT_SHA}'
- '.'
@ -17,5 +19,6 @@ substitutions:
_GCR_ZONE: 'gcr.io'
_IMAGE_NAME: 'prjxray-db'
_NUM_CPUS: '16'
_BUILD_TYPE: ''
images:
- '${_GCR_ZONE}/$PROJECT_ID/${_IMAGE_NAME}:${SHORT_SHA}'