From 0530a3ff7b99adff18631cd5a8239f303c9317c1 Mon Sep 17 00:00:00 2001 From: wlanboy Date: Mon, 13 Apr 2020 14:20:18 +0200 Subject: [PATCH] Update dockerpublish.yml --- .github/workflows/dockerpublish.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/dockerpublish.yml b/.github/workflows/dockerpublish.yml index 5657bc6..76b1c71 100644 --- a/.github/workflows/dockerpublish.yml +++ b/.github/workflows/dockerpublish.yml @@ -1,14 +1,14 @@ name: Docker build and publish image on: - watch: - types: [started] + push: + tags: + - '*' jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Set up JDK 11 - if: github.actor == github.event.repository.owner.login uses: actions/setup-java@v1 with: java-version: 11 @@ -17,7 +17,6 @@ jobs: - uses: actions/checkout@master - name: Publish to Registry - if: github.actor == github.event.repository.owner.login uses: elgohr/Publish-Docker-Github-Action@master env: JAR_FILE: ./target/mirrorservice-0.1.1-SNAPSHOT.jar