This is an automated email from the ASF dual-hosted git repository.

albumenj pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/dubbo-initializer.git


The following commit(s) were added to refs/heads/main by this push:
     new 19cbe5c  Update build.yml
19cbe5c is described below

commit 19cbe5c6601fe17a9b398bdac30d727ee643efbd
Author: Albumen Kevin <[email protected]>
AuthorDate: Sun Apr 16 12:46:49 2023 +0800

    Update build.yml
---
 .github/workflows/build.yml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index df6b3d8..b43e1cd 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -28,9 +28,10 @@ jobs:
           ./mvnw --batch-mode -e --no-transfer-progress --fail-fast package 
-Dmaven.test.skip
       - name: Build and push
         uses: docker/build-push-action@v2
+        if: ${{ github.ref == 'ref/head/main' }}
         with:
           context: .
-          push: false
+          push: true
           file: Dockerfile
           tags: apache/dubbo-initializer:dev
           platforms: linux/amd64

Reply via email to