Skip to content

Commit 4b5f4db

Browse files
authored
Update docker-build.yml
1 parent 6190d0a commit 4b5f4db

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/docker-build.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,13 @@ jobs:
2323
with:
2424
username: ${{ secrets.DOCKERHUB_USERNAME }}
2525
password: ${{ secrets.DOCKERHUB_TOKEN }}
26+
if: ${{ env.username != '' }}
2627
- name: Build the Docker image
2728
working-directory: sink-connector
2829
run: docker build . --file docker/Dockerfile-sink-on-debezium-base-image --tag altinity/clickhouse-sink-connector:$(date +%F)
2930
- name: Push docker image to dockerhub
31+
env:
32+
username: ${{ secrets.DOCKERHUB_USERNAME }}
33+
if: ${{ env.username != '' }}
3034
working-directory: sink-connector
31-
run: docker push altinity/clickhouse-sink-connector:$(date +%F)
35+
run: docker push altinity/clickhouse-sink-connector:$(date +%F)

0 commit comments

Comments
 (0)