fix(build): provide cache images to build cmd
This commit is contained in:
parent
ba7f2f1955
commit
83b31e6c72
|
@ -11,10 +11,10 @@ docker pull docker.artifacts.apextoaster.com/${IMAGE_TAG} || \
|
|||
true # no existing image is not an error
|
||||
|
||||
# build and test a new image
|
||||
docker \
|
||||
docker build \
|
||||
--cache-from=docker.artifacts.apextoaster.com/${IMAGE_TAG} \
|
||||
--cache-from=docker.artifacts.apextoaster.com/"${IMAGE_NAME}:${IMAGE_VERSION}-master" \
|
||||
build -t ${IMAGE_TAG} .
|
||||
-t ${IMAGE_TAG} .
|
||||
docker run --rm -v $(pwd):/tests:ro --entrypoint /usr/local/bin/goss ${IMAGE_TAG} --gossfile /tests/Gossfile.yml validate
|
||||
|
||||
# prepare to push
|
||||
|
|
Loading…
Reference in New Issue