From f3e718920ebc7a681c585226d38e87e7a9308f11 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Sun, 23 Apr 2023 16:23:53 +0200 Subject: [PATCH] ci: add tagging --- .drone.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/.drone.yml b/.drone.yml index c5cf27c..61f4df0 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,6 +7,10 @@ steps: image: plugins/gitleaks settings: path: . + when: + event: + exclude: + - tag - name: hadolint image: hadolint/hadolint:latest-debian @@ -33,6 +37,7 @@ steps: event: exclude: - pull_request + - tag - name: docker_build_and_push_dockerhub image: plugins/docker @@ -51,3 +56,31 @@ steps: event: exclude: - pull_request + - tag + + - name: docker_build_and_push_selfhosted_tag + image: plugins/docker + settings: + dockerfile: Dockerfile + repo: registry.mgrote.net/miniflux-filter + registry: registry.mgrote.net + tags: + - ${DRONE_TAG} + when: + event: + - tag + + - name: docker_build_and_push_dockerhub_tag + image: plugins/docker + settings: + username: + from_secret: DOCKERHUB_USER + password: + from_secret: DOCKERHUB_PASS + dockerfile: Dockerfile + repo: quotengrote/miniflux-filter + tags: + - ${DRONE_TAG} + when: + event: + - tag