Skip to content

Commit bbe204a

Browse files
committed
fixes push only on merge or tag
1 parent 6b941cd commit bbe204a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build_docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
with:
3434
context: .
3535
file: ./Dockerfile
36-
push: true
36+
push: ${{ github.event_name == 'push' }}
3737
tags: |
3838
${{ secrets.DOCKERHUB_USERNAME }}/rnadist:${{ startsWith(github.ref, 'refs/tags/') && 'latest' || 'nightly' }}
3939
${{ startsWith(github.ref, 'refs/tags/') && github.ref_name || format('{0}/rnadist:nightly-{1}', secrets.DOCKERHUB_USERNAME, github.sha) }}

0 commit comments

Comments
 (0)