Use cache, build for every push
This commit is contained in:
parent
8d379a8761
commit
88c570de1a
10
.drone.yml
10
.drone.yml
|
|
@ -2,10 +2,6 @@ kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: build & publish image
|
name: build & publish image
|
||||||
|
|
||||||
trigger:
|
|
||||||
event:
|
|
||||||
- tag
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build & publish
|
- name: build & publish
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
|
|
@ -16,3 +12,9 @@ steps:
|
||||||
password:
|
password:
|
||||||
from_secret: zipek_registry_password
|
from_secret: zipek_registry_password
|
||||||
repo: containers.zipek.cz/kamen/graphicek
|
repo: containers.zipek.cz/kamen/graphicek
|
||||||
|
tags:
|
||||||
|
- "${DRONE_BRANCH}"
|
||||||
|
- "${DRONE_BRANCH}-${DRONE_COMMIT}"
|
||||||
|
cache_from:
|
||||||
|
- "containers.zipek.cz/kamen/graphicek:master"
|
||||||
|
- "containers.zipek.cz/kamen/graphicek:${DRONE_BRANCH}"
|
||||||
Loading…
Reference in New Issue