Try to use cache for docker image

This commit is contained in:
Gabriel Augendre 2020-08-17 12:34:44 +02:00
parent ac0f9a8c83
commit 4bed5c9671

View file

@ -15,7 +15,7 @@ tasks:
docker info
docker login -u crocmagnon --password-stdin < .docker-secret
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
- deploy: |
ssh blog -o StrictHostKeyChecking=no "/srv/blog/redeploy"