fix: auto tag documention
This commit is contained in:
parent
0712ed76e9
commit
a48362f875
27
README.md
27
README.md
@ -73,6 +73,33 @@ steps:
|
|||||||
from_secret: docker-password
|
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
|
## Test that it can build
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
Loading…
Reference in New Issue
Block a user