From 59910749b7e9dfdfda962d38d572869451414026 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sat, 20 Jun 2020 01:31:52 -0400 Subject: [PATCH] feat: persist images through workspace --- .circleci/config.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 55f8a2fd1..73eebeaa8 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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: