ozbillwang/docker

By ozbillwang

Updated about 7 years ago

drone docker plugin with option `--no-cache`

Image

57

There is a bug fix in exist drone plugin plugins/docker (https://github.com/drone-plugins/drone-docker) which has no option --no-cache.

https://github.com/drone-plugins/drone-docker/issues/165

This image has hard code with this option --no-cache

diff --git a/docker.go b/docker.go
index 229a1d0..fe6c81d 100644
--- a/docker.go
+++ b/docker.go
@@ -184,6 +184,7 @@ func commandBuild(build Build) *exec.Cmd {
        args := []string{
                "build",
                "--rm=true",
+                "--no-cache",
                "-f", build.Dockerfile,
                "-t", build.Name,
        }

Docker Pull Command

docker pull ozbillwang/docker