Add ability to build tagged images.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
dc1287dae8
commit
3ebb5b657c
14
.drone.yml
14
.drone.yml
@ -18,7 +18,7 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- go test ./...
|
- go test ./...
|
||||||
|
|
||||||
- name: docker
|
- name: build master image
|
||||||
image: code.pztrn.name/containers/mirror/plugins/docker:20.13.0
|
image: code.pztrn.name/containers/mirror/plugins/docker:20.13.0
|
||||||
when:
|
when:
|
||||||
branch: ["master"]
|
branch: ["master"]
|
||||||
@ -29,3 +29,15 @@ steps:
|
|||||||
from_secret: drone_secret
|
from_secret: drone_secret
|
||||||
repo: code.pztrn.name/apps/metricator
|
repo: code.pztrn.name/apps/metricator
|
||||||
auto_tag: true
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user