Update github workflow

fix
This commit is contained in:
snegov committed 2020-08-26 00:06:59 +03:00
1 parent d8438e13f5
commit a7ef878490
1 file changed
+10 -1
+10 -1
View File
@@ -29,7 +29,7 @@ jobs:
needs: test needs: test
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.event_name == 'push' if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@@ -42,3 +42,12 @@ jobs:
tag_with_ref: true tag_with_ref: true
add_git_labels: true add_git_labels: true
push: ${{ startsWith(github.ref, 'refs/tags/') }} push: ${{ startsWith(github.ref, 'refs/tags/') }}
- uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: snegov/seafile-client
tags: latest
add_git_labels: true
push: ${{ startsWith(github.ref, 'refs/tags/') }}