fix: auto tag documention

This commit is contained in:
annprog 2019-11-04 22:45:51 +08:00 committed by Nándor István Krácser
parent 0712ed76e9
commit a48362f875
1 changed files with 27 additions and 0 deletions

View File

@ -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