From 9e96f32e5f0eb261272009d2eff71a7ff2bbc993 Mon Sep 17 00:00:00 2001 From: Nandor Kracser Date: Tue, 8 Jan 2019 11:51:32 +0100 Subject: [PATCH] Rename to drone-kaniko --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b2df158..f4b1b3c 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# kaniko-plugin +# drone-kaniko A thin shim-wrapper around the official [Google Kaniko](https://cloud.google.com/blog/products/gcp/introducing-kaniko-build-container-images-in-kubernetes-and-google-container-builder-even-without-root-access) Docker image to make it behave like the [Drone Docker plugin](http://plugins.drone.io/drone-plugins/drone-docker/). @@ -10,7 +10,7 @@ name: default steps: - name: publish - image: banzaicloud/kaniko-plugin + image: banzaicloud/drone-kaniko settings: registry: registry.example.com repo: registry.example.com/example-project @@ -28,7 +28,7 @@ steps: ## Test that it can build ```bash -docker run -it --rm -w /src -v $PWD:/src -e PLUGIN_USERNAME=${DOCKER_USERNAME} -e PLUGIN_PASSWORD=${DOCKER_PASSWORD} -e PLUGIN_REPO=banzaicloud/kaniko-plugin-test -e PLUGIN_TAGS=test -e PLUGIN_DOCKERFILE=Dockerfile.test banzaicloud/kaniko-plugin +docker run -it --rm -w /src -v $PWD:/src -e PLUGIN_USERNAME=${DOCKER_USERNAME} -e PLUGIN_PASSWORD=${DOCKER_PASSWORD} -e PLUGIN_REPO=banzaicloud/drone-kaniko-test -e PLUGIN_TAGS=test -e PLUGIN_DOCKERFILE=Dockerfile.test banzaicloud/drone-kaniko ``` ## Test that caching works @@ -47,7 +47,7 @@ Add the following lines to plugin.sh's final command and build a new image from ``` ```bash -docker build -t banzaicloud/kaniko-plugin . +docker build -t banzaicloud/drone-kaniko . ``` @@ -61,5 +61,5 @@ docker run -v $PWD:/cache gcr.io/kaniko-project/warmer:latest --image=alpine:3.8 Run the builder on the host network to be able to access the registry: ```bash -docker run --net=host -it --rm -w /src -v $PWD:/cache -v $PWD:/src -e DOCKER_USERNAME=${DOCKER_USERNAME} -e DOCKER_PASSWORD=${DOCKER_PASSWORD} -e PLUGIN_REPO=banzaicloud/kaniko-plugin-test -e PLUGIN_TAGS=test -e PLUGIN_DOCKERFILE=Dockerfile.test banzaicloud/kaniko-plugin +docker run --net=host -it --rm -w /src -v $PWD:/cache -v $PWD:/src -e DOCKER_USERNAME=${DOCKER_USERNAME} -e DOCKER_PASSWORD=${DOCKER_PASSWORD} -e PLUGIN_REPO=banzaicloud/drone-kaniko-test -e PLUGIN_TAGS=test -e PLUGIN_DOCKERFILE=Dockerfile.test banzaicloud/drone-kaniko ```