Update readme

This commit is contained in:
Charles Martinot 2017-05-25 13:54:49 +08:00
parent bd4ff1ddf0
commit 003876378d
1 changed files with 6 additions and 6 deletions

View File

@ -4,7 +4,7 @@ This plugin allows to update a Kubernetes deployment.
## Usage ## Usage
This pipeline will update the `my-deployment` deployment with the image tagged `DRONE_COMMIT_SHA:8` This pipeline will update the `my-deployment` deployment with the image tagged `DRONE_COMMIT_SHA:0:8`
pipeline: pipeline:
deploy: deploy:
@ -12,7 +12,7 @@ This pipeline will update the `my-deployment` deployment with the image tagged `
deployment: my-deployment deployment: my-deployment
repo: myorg/myrepo repo: myorg/myrepo
container: my-container container: my-container
tag: ${DRONE_COMMIT_SHA:8} tag: ${DRONE_COMMIT_SHA:0:8}
Deploying containers across several deployments, eg in a scheduler-worker setup. Make sure your container `name` in your manifest is the same for each pod. Deploying containers across several deployments, eg in a scheduler-worker setup. Make sure your container `name` in your manifest is the same for each pod.
@ -22,7 +22,7 @@ Deploying containers across several deployments, eg in a scheduler-worker setup.
deployment: [server-deploy, worker-deploy] deployment: [server-deploy, worker-deploy]
repo: myorg/myrepo repo: myorg/myrepo
container: my-container container: my-container
tag: ${DRONE_COMMIT_SHA:8} tag: ${DRONE_COMMIT_SHA:0:8}
Deploying multiple containers within the same deployment. Deploying multiple containers within the same deployment.
@ -32,7 +32,7 @@ Deploying multiple containers within the same deployment.
deployment: my-deployment deployment: my-deployment
repo: myorg/myrepo repo: myorg/myrepo
container: [container1, container2] container: [container1, container2]
tag: ${DRONE_COMMIT_SHA:8} tag: ${DRONE_COMMIT_SHA:0:8}
**NOTE**: Combining multi container deployments across multiple deployments is not recommended **NOTE**: Combining multi container deployments across multiple deployments is not recommended
@ -48,7 +48,7 @@ This more complex example demonstrates how to deploy to several environments bas
repo: myorg/myrepo repo: myorg/myrepo
container: my-container container: my-container
namespace: app namespace: app
tag: ${DRONE_COMMIT_SHA:8} tag: ${DRONE_COMMIT_SHA:0:8}
when: when:
branch: [ staging ] branch: [ staging ]
@ -61,7 +61,7 @@ This more complex example demonstrates how to deploy to several environments bas
repo: myorg/myrepo repo: myorg/myrepo
container: my-container container: my-container
namespace: app namespace: app
tag: ${DRONE_COMMIT_SHA:8} tag: ${DRONE_COMMIT_SHA:0:8}
when: when:
branch: [ master ] branch: [ master ]