From a48362f875ee7affc95cc3fe5aabd2f9108af184 Mon Sep 17 00:00:00 2001 From: annprog Date: Mon, 4 Nov 2019 22:45:51 +0800 Subject: [PATCH] fix: auto tag documention --- README.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/README.md b/README.md index 06fbae9..f8fc7c3 100644 --- a/README.md +++ b/README.md @@ -73,6 +73,33 @@ steps: from_secret: docker-password ``` +## Auto tag + +Set `auto_tag: true`. + +```yaml +kind: pipeline +name: default + +steps: +- name: build + image: golang + commands: + - go get + - go build +- name: publish + image: banzaicloud/drone-kaniko + settings: + registry: registry.example.com + repo: registry.example.com/example-project + auto_tag: true # higher priority then .tags file + # tags: ${DRONE_COMMIT_SHA} <= it must be left undefined to use auto_tag + username: + from_secret: docker-username + password: + from_secret: docker-password +``` + ## Test that it can build ```bash