Update README.md
This commit is contained in:
14
README.md
14
README.md
@@ -10,7 +10,7 @@ name: default
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: publish
|
- name: publish
|
||||||
image: banzaicloud/drone-kaniko
|
image: 1sept/drone-kaniko
|
||||||
settings:
|
settings:
|
||||||
registry: registry.example.com # if not provided index.docker.io is supposed
|
registry: registry.example.com # if not provided index.docker.io is supposed
|
||||||
repo: registry.example.com/example-project
|
repo: registry.example.com/example-project
|
||||||
@@ -34,7 +34,7 @@ name: default
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: publish
|
- name: publish
|
||||||
image: banzaicloud/drone-kaniko
|
image: 1sept/drone-kaniko
|
||||||
settings:
|
settings:
|
||||||
registry: gcr.io
|
registry: gcr.io
|
||||||
repo: example.com/example-project
|
repo: example.com/example-project
|
||||||
@@ -59,7 +59,7 @@ steps:
|
|||||||
- make versiontags > .tags
|
- make versiontags > .tags
|
||||||
|
|
||||||
- name: publish
|
- name: publish
|
||||||
image: banzaicloud/drone-kaniko
|
image: 1sept/drone-kaniko
|
||||||
settings:
|
settings:
|
||||||
registry: registry.example.com
|
registry: registry.example.com
|
||||||
repo: registry.example.com/example-project
|
repo: registry.example.com/example-project
|
||||||
@@ -90,7 +90,7 @@ steps:
|
|||||||
- go get
|
- go get
|
||||||
- go build
|
- go build
|
||||||
- name: publish
|
- name: publish
|
||||||
image: banzaicloud/drone-kaniko
|
image: 1sept/drone-kaniko
|
||||||
settings:
|
settings:
|
||||||
registry: registry.example.com
|
registry: registry.example.com
|
||||||
repo: registry.example.com/example-project
|
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
|
```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:
|
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
|
```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:
|
The very same example just pushing to GCR instead of Docker Hub:
|
||||||
|
|
||||||
```bash
|
```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
|
Build
|
||||||
|
|||||||
Reference in New Issue
Block a user