From 4b5f4db1128a25359b0a2b3551cfb5a2c04de6cd Mon Sep 17 00:00:00 2001 From: MyroTk <44327070+MyroTk@users.noreply.github.com> Date: Wed, 22 Nov 2023 11:10:44 -0800 Subject: [PATCH] Update docker-build.yml --- .github/workflows/docker-build.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 98ebb73fa..a176aa389 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -23,9 +23,13 @@ jobs: with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} + if: ${{ env.username != '' }} - name: Build the Docker image working-directory: sink-connector run: docker build . --file docker/Dockerfile-sink-on-debezium-base-image --tag altinity/clickhouse-sink-connector:$(date +%F) - name: Push docker image to dockerhub + env: + username: ${{ secrets.DOCKERHUB_USERNAME }} + if: ${{ env.username != '' }} working-directory: sink-connector - run: docker push altinity/clickhouse-sink-connector:$(date +%F) \ No newline at end of file + run: docker push altinity/clickhouse-sink-connector:$(date +%F)