From e65a401819eb9fac4c63c2b409f0a3c5f778dbf5 Mon Sep 17 00:00:00 2001 From: shim_ <> Date: Sat, 3 Nov 2018 18:24:15 +0100 Subject: [PATCH 1/4] pull previous build --- .drone.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 86b2e55..a94545a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -5,10 +5,11 @@ pipeline: - cp nginx.conf /etc/nginx/ - nginx -t docker: - image: plugins/docker + image: repo.shimun.net/drone-docker repo: repo.shimun.net/shimun/seafile registry: repo.shimun.net storage_path: /drone/.docker secrets: ["docker_username", "docker_password"] storage_path: /drone/.docker + pull_previous: true use_cache: true From f3fde90cdc26bc25b0027c326e3e0c50a7ae0cc0 Mon Sep 17 00:00:00 2001 From: shim_ <> Date: Sat, 3 Nov 2018 19:48:49 +0100 Subject: [PATCH 2/4] cache from --- .drone.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index a94545a..ad2fe76 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,8 +8,7 @@ pipeline: image: repo.shimun.net/drone-docker repo: repo.shimun.net/shimun/seafile registry: repo.shimun.net - storage_path: /drone/.docker + cache_from: 'repo.shimun.net/seafile:latest' + no_cache: false secrets: ["docker_username", "docker_password"] - storage_path: /drone/.docker - pull_previous: true - use_cache: true + pull_image: false From 3e8cadf6b892f20266188993aa22f7d5ce1a5a73 Mon Sep 17 00:00:00 2001 From: shim_ <> Date: Sat, 10 Nov 2018 15:23:41 +0100 Subject: [PATCH 3/4] utilise --cache-from PR --- .drone.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index ad2fe76..5424978 100644 --- a/.drone.yml +++ b/.drone.yml @@ -5,10 +5,12 @@ pipeline: - cp nginx.conf /etc/nginx/ - nginx -t docker: - image: repo.shimun.net/drone-docker + custom_dns: ["172.16.28.1", "8.8.8.8"] + image: plugins/docker repo: repo.shimun.net/shimun/seafile registry: repo.shimun.net - cache_from: 'repo.shimun.net/seafile:latest' - no_cache: false + storage_path: /drone/.docker secrets: ["docker_username", "docker_password"] - pull_image: false + storage_path: /drone/.docker + cache_from: ["repo.shimun.net/shimun/seafile", "repo.shimun.net/shimun/seafile:nginx-deb", "repo.shimun.net/shimun/seafile:alpine"] + use_cache: true From 2d20c8447d2b97212dd170223118bf84817e1796 Mon Sep 17 00:00:00 2001 From: shim_ <> Date: Sat, 10 Nov 2018 15:29:52 +0100 Subject: [PATCH 4/4] disable base image pull --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 5424978..43a453f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -5,7 +5,6 @@ pipeline: - cp nginx.conf /etc/nginx/ - nginx -t docker: - custom_dns: ["172.16.28.1", "8.8.8.8"] image: plugins/docker repo: repo.shimun.net/shimun/seafile registry: repo.shimun.net @@ -14,3 +13,4 @@ pipeline: storage_path: /drone/.docker cache_from: ["repo.shimun.net/shimun/seafile", "repo.shimun.net/shimun/seafile:nginx-deb", "repo.shimun.net/shimun/seafile:alpine"] use_cache: true + pull_image: false