mirror of https://github.com/kubeflow/examples.git
Cleanup build directory before code search GCB build (#370)
The build directory cached the staled deleted files and without cleaning up the folder, those staled files are carried over to the new image.
This commit is contained in:
parent
c0345dec90
commit
760ba7b9e8
|
|
@ -51,6 +51,7 @@ build: build-cpu build-gpu build-dataflow
|
||||||
# Build using GCB. This is useful if we are on a slow internet connection
|
# Build using GCB. This is useful if we are on a slow internet connection
|
||||||
# and don't want to pull
|
# and don't want to pull
|
||||||
build-gcb:
|
build-gcb:
|
||||||
|
rm -rf ./build
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
jsonnet ./docker/t2t/build.jsonnet --ext-str gitVersion=$(GIT_VERSION) --ext-str tag=$(TAG) \
|
jsonnet ./docker/t2t/build.jsonnet --ext-str gitVersion=$(GIT_VERSION) --ext-str tag=$(TAG) \
|
||||||
> ./build/build.json
|
> ./build/build.json
|
||||||
|
|
@ -62,6 +63,7 @@ build-gcb:
|
||||||
--timeout=3600 ./build
|
--timeout=3600 ./build
|
||||||
|
|
||||||
build-ui-gcb:
|
build-ui-gcb:
|
||||||
|
rm -rf ./build
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
jsonnet ./docker/ui/build.jsonnet --ext-str gitVersion=$(GIT_VERSION) --ext-str tag=$(TAG) \
|
jsonnet ./docker/ui/build.jsonnet --ext-str gitVersion=$(GIT_VERSION) --ext-str tag=$(TAG) \
|
||||||
> ./build/build.ui.json
|
> ./build/build.ui.json
|
||||||
|
|
@ -73,6 +75,7 @@ build-ui-gcb:
|
||||||
--timeout=3600 ./build
|
--timeout=3600 ./build
|
||||||
|
|
||||||
build-ks-gcb:
|
build-ks-gcb:
|
||||||
|
rm -rf ./build
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
jsonnet ./docker/ks/build.jsonnet --ext-str gitVersion=$(GIT_VERSION) --ext-str tag=$(TAG) \
|
jsonnet ./docker/ks/build.jsonnet --ext-str gitVersion=$(GIT_VERSION) --ext-str tag=$(TAG) \
|
||||||
> ./build/build.ks.json
|
> ./build/build.ks.json
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue