Try to use cache for docker image
This commit is contained in:
parent
ac0f9a8c83
commit
4bed5c9671
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ tasks:
|
||||||
docker info
|
docker info
|
||||||
docker login -u crocmagnon --password-stdin < .docker-secret
|
docker login -u crocmagnon --password-stdin < .docker-secret
|
||||||
docker pull crocmagnon/blog || true
|
docker pull crocmagnon/blog || true
|
||||||
docker build -t crocmagnon/blog blog/
|
docker build --cache-from crocmagnon/blog:latest -t crocmagnon/blog blog/
|
||||||
docker push crocmagnon/blog
|
docker push crocmagnon/blog
|
||||||
- deploy: |
|
- deploy: |
|
||||||
ssh blog -o StrictHostKeyChecking=no "/srv/blog/redeploy"
|
ssh blog -o StrictHostKeyChecking=no "/srv/blog/redeploy"
|
||||||
|
|
Reference in a new issue