1
0
Fork 0

fix(build): provide cache images to build cmd

This commit is contained in:
Sean Sube 2023-02-10 10:12:42 -06:00
parent ba7f2f1955
commit 83b31e6c72
Signed by: ssube
GPG Key ID: 3EED7B957D362AF1
1 changed files with 2 additions and 2 deletions

View File

@ -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