diff --git a/README.md b/README.md index d4fcc33..6018412 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ name: default steps: - name: publish - image: banzaicloud/drone-kaniko + image: 1sept/drone-kaniko settings: registry: registry.example.com # if not provided index.docker.io is supposed repo: registry.example.com/example-project @@ -34,7 +34,7 @@ name: default steps: - name: publish - image: banzaicloud/drone-kaniko + image: 1sept/drone-kaniko settings: registry: gcr.io repo: example.com/example-project @@ -59,7 +59,7 @@ steps: - make versiontags > .tags - name: publish - image: banzaicloud/drone-kaniko + image: 1sept/drone-kaniko settings: registry: registry.example.com repo: registry.example.com/example-project @@ -90,7 +90,7 @@ steps: - go get - go build - name: publish - image: banzaicloud/drone-kaniko + image: 1sept/drone-kaniko settings: registry: registry.example.com repo: registry.example.com/example-project @@ -124,7 +124,7 @@ Add the following lines to plugin.sh's final command and build a new image from ``` ```bash -docker build -t banzaicloud/drone-kaniko . +docker build -t 1sept/drone-kaniko . ``` @@ -138,13 +138,13 @@ docker run -v $PWD:/cache gcr.io/kaniko-project/warmer:latest --verbosity=debug Run the builder (on the host network to be able to access the registry, if any specified) with mounting the local disk cache, this example pushes to Docker Hub: ```bash -docker run --net=host -it --rm -w /src -v $PWD:/cache -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 -e PLUGIN_CACHE=true banzaicloud/drone-kaniko +docker run --net=host -it --rm -w /src -v $PWD:/cache -v $PWD:/src -e PLUGIN_USERNAME=${DOCKER_USERNAME} -e PLUGIN_PASSWORD=${DOCKER_PASSWORD} -e PLUGIN_REPO=1sept/drone-kaniko-test -e PLUGIN_TAGS=test -e PLUGIN_DOCKERFILE=Dockerfile.test -e PLUGIN_CACHE=true banzaicloud/drone-kaniko ``` The very same example just pushing to GCR instead of Docker Hub: ```bash -docker run --net=host -it --rm -w /src -v $PWD:/cache -v $PWD:/src -e PLUGIN_REGISTRY=gcr.io -e PLUGIN_REPO=paas-dev1/drone-kaniko-test -e PLUGIN_TAGS=test -e PLUGIN_DOCKERFILE=Dockerfile.test -e PLUGIN_CACHE=true -e PLUGIN_JSON_KEY="$(<$HOME/google-application-credentials.json)" banzaicloud/drone-kaniko +docker run --net=host -it --rm -w /src -v $PWD:/cache -v $PWD:/src -e PLUGIN_REGISTRY=gcr.io -e PLUGIN_REPO=paas-dev1/drone-kaniko-test -e PLUGIN_TAGS=test -e PLUGIN_DOCKERFILE=Dockerfile.test -e PLUGIN_CACHE=true -e PLUGIN_JSON_KEY="$(<$HOME/google-application-credentials.json)" 1sept/drone-kaniko ``` Build @@ -153,4 +153,4 @@ Build docker buildx build --no-cache --platform linux/amd64 --push -t 1sept/drone-kaniko:latest -t 1sept/drone-kaniko:v1.9.1-debug . -``` \ No newline at end of file +```