From 88c570de1adfb81fd7039377aec6ab913d31b790 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Z=C3=ADpek?= Date: Wed, 3 Apr 2024 23:15:27 +0200 Subject: [PATCH] Use cache, build for every push --- .drone.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index 2f8341a..d3354be 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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 \ No newline at end of file + 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}" \ No newline at end of file