Add ability to build tagged images.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Stanislav Nikitin 2022-06-30 14:14:40 +05:00
parent dc1287dae8
commit 3ebb5b657c
Signed by: pztrn
GPG Key ID: 1E944A0F0568B550

View File

@ -18,7 +18,7 @@ steps:
commands:
- go test ./...
- name: docker
- name: build master image
image: code.pztrn.name/containers/mirror/plugins/docker:20.13.0
when:
branch: ["master"]
@ -29,3 +29,15 @@ steps:
from_secret: drone_secret
repo: code.pztrn.name/apps/metricator
auto_tag: true
- name: build tagged image
image: code.pztrn.name/containers/mirror/plugins/docker:20.13.0
when:
event: ["tag"]
settings:
registry: code.pztrn.name
username: drone
password:
from_secret: drone_secret
repo: code.pztrn.name/apps/metricator
auto_tag: true