feat: persist images through workspace

This commit is contained in:
Jose Diaz-Gonzalez
2020-06-20 01:31:52 -04:00
parent a5d53711ee
commit 59910749b7

View File

@@ -7,6 +7,11 @@ commands:
- checkout
- attach_workspace:
at: /home/circleci/project
- run:
name: restore docker images
command: |
docker load -i build/herokuish.tar
docker load -i build/node.tar
- run:
name: resolve dokku.me
command: |
@@ -41,6 +46,13 @@ jobs:
- run:
name: build package
command: ./tests/ci/setup.sh build
- run:
name: save docker images
command: |
HEROKUISH_VERSION=$(grep HEROKUISH_VERSION "${ROOT_DIR}/deb.mk" | head -n1 | cut -d' ' -f3)
docker save -o build/herokuish.tar gliderlabs/herokuish:$HEROKUISH_VERSION
docker pull node:4
docker save -o build/node.tar node:4
- persist_to_workspace:
root: /home/circleci/project
paths: