Use cache, build for every push

This commit is contained in:
Jan Zípek 2024-04-03 23:15:27 +02:00
parent 8d379a8761
commit 88c570de1a
Signed by: kamen
GPG Key ID: A17882625B33AC31
1 changed files with 7 additions and 5 deletions

View File

@ -2,10 +2,6 @@ kind: pipeline
type: docker
name: build & publish image
trigger:
event:
- tag
steps:
- name: build & publish
image: plugins/docker
@ -15,4 +11,10 @@ steps:
from_secret: zipek_registry_username
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}"