From 816df69675d3b59b8a0df54ac078732db927184d Mon Sep 17 00:00:00 2001 From: Shrikant Sharat Kandula Date: Tue, 19 Jan 2021 18:47:33 +0530 Subject: [PATCH] Fix docker image not being pushed on workflow_dispatch (#2630) --- .github/workflows/client.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/client.yml b/.github/workflows/client.yml index 15c4e08708..f216705ee0 100644 --- a/.github/workflows/client.yml +++ b/.github/workflows/client.yml @@ -307,7 +307,7 @@ jobs: # Build release Docker image and push to Docker Hub - name: Push release image to Docker Hub - if: success() && github.ref == 'refs/heads/release' && github.event_name == 'push' + if: success() && github.ref == 'refs/heads/release' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch') run: | docker build -t ${{ secrets.DOCKER_HUB_ORGANIZATION }}/appsmith-editor:${{steps.branch_name.outputs.tag}} . echo ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | docker login -u ${{ secrets.DOCKER_HUB_USERNAME }} --password-stdin @@ -315,7 +315,7 @@ jobs: # Build master Docker image and push to Docker Hub - name: Push production image to Docker Hub with commit tag - if: success() && github.ref == 'refs/heads/master' && github.event_name == 'push' + if: success() && github.ref == 'refs/heads/master' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch') run: | docker build -t ${{ secrets.DOCKER_HUB_ORGANIZATION }}/appsmith-editor:${GITHUB_SHA} . docker build -t ${{ secrets.DOCKER_HUB_ORGANIZATION }}/appsmith-editor:nightly .