only publish to docker hub if a release is tagged

This commit is contained in:
Jannik 2020-06-26 10:32:20 +02:00
parent 36972c9322
commit a53b2b8fc1
Signed by: Seil0
GPG Key ID: E8459F3723C52C24
1 changed files with 8 additions and 0 deletions

View File

@ -6,10 +6,15 @@ steps:
image: gradle:jdk11
commands:
- gradle test
- name: build
image: gradle:jdk11
commands:
- gradle bootJar
when:
event:
- tag
- name: docker
image: plugins/docker
settings:
@ -20,3 +25,6 @@ steps:
repo: mosadxyz/tcor
tags:
- latest
when:
event:
- tag