From ec934134f4373d2c4f2fcf7f407afde54fef31f6 Mon Sep 17 00:00:00 2001 From: Manuel Friedli Date: Sat, 1 Apr 2023 00:22:31 +0200 Subject: [PATCH] try building tag release on git tag. --- .drone.yml | 31 ++++++++++++++++++++++++------- 1 file changed, 24 insertions(+), 7 deletions(-) diff --git a/.drone.yml b/.drone.yml index 021f006..d8c9dcb 100644 --- a/.drone.yml +++ b/.drone.yml @@ -19,7 +19,7 @@ steps: branch: include: - master - # - feature/* + - feature/* - name: deploy image: maven:3.8-openjdk-18-slim environment: @@ -43,12 +43,29 @@ steps: repo: gittr.ch/java/labyrinth tags: - latest - - ${DRONE_SEMVER} dockerfile: docker/Dockerfile - # auto_tag: true - # auto_tag_suffix: "-ci" - debug: true - launch_debug: true when: branch: - - feature/docker + - master + event: + exclude: + - pull_request + - tag + - name: build_docker_image_release + image: plugins/docker + settings: + registry: gittr.ch + username: manuel + password: + from_secret: docker-token + repo: gittr.ch/java/labyrinth + tags: + - latest + - ${DRONE_TAG} + dockerfile: docker/Dockerfile + when: + branch: + - master + event: + include: + - tag