Browse Source

ci(docker): return condition on when to push images

Ivan Dyachkov 1 năm trước cách đây
mục cha
commit
255d9e7d1e
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      .github/workflows/build_and_push_docker_images.yaml

+ 1 - 0
.github/workflows/build_and_push_docker_images.yaml

@@ -204,6 +204,7 @@ jobs:
           docker exec -t -u root $CID node_dump
           docker rm -f $CID
       - name: Push docker image
+        if: inputs.publish || github.repository_owner != 'emqx'
         env:
           PROFILE: ${{ matrix.profile[0] }}
           DOCKER_REGISTRY: ${{ matrix.profile[1] }}