Save Docker image in /tmp
This commit is contained in:
Родитель
e50273816f
Коммит
f72bc136e6
|
@ -72,11 +72,11 @@ jobs:
|
|||
# required since Workflows do not have the same remote docker instance.
|
||||
- run:
|
||||
name: docker save app:build
|
||||
command: mkdir -p /cache; docker save -o /cache/docker.tar "app:build"
|
||||
command: mkdir -p /tmp; docker save -o /tmp/docker.tar "app:build"
|
||||
- save_cache:
|
||||
key: v1-{{ .Branch }}-{{epoch}}
|
||||
paths:
|
||||
- /cache/docker.tar
|
||||
- /tmp/docker.tar
|
||||
|
||||
publish:
|
||||
docker:
|
||||
|
@ -87,7 +87,7 @@ jobs:
|
|||
key: v1-{{.Branch}}
|
||||
- run:
|
||||
name: Restore Docker image cache
|
||||
command: docker load -i /cache/docker.tar
|
||||
command: docker load -i /tmp/docker.tar
|
||||
|
||||
- run:
|
||||
name: Deploy to Dockerhub
|
||||
|
|
Загрузка…
Ссылка в новой задаче