Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
koxudaxi authored Mar 16, 2021
1 parent a4175e6 commit b61506c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ jobs:
run: ./gradlew clean shadowJar test jacocoTestReport
working-directory: ./kotlin/local-data-api/
- name: Login to DockerHub
if: github.event_name == 'release' && github.event.action == 'released'
if: github.event_name == 'release' && github.event.action == 'published'
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v2
with:
push: ${{ github.event_name == 'release' && github.event.action == 'released' }}
push: ${{ github.event_name == 'release' && github.event.action == 'published' }}
tags: ${{ steps.docker_meta.outputs.tags }}
context: ./kotlin/local-data-api

0 comments on commit b61506c

Please sign in to comment.