Преглед изворни кода

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

Ivan Dyachkov пре 1 година
родитељ
комит
255d9e7d1e
1 измењених фајлова са 1 додато и 0 уклоњено
  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 exec -t -u root $CID node_dump
           docker rm -f $CID
           docker rm -f $CID
       - name: Push docker image
       - name: Push docker image
+        if: inputs.publish || github.repository_owner != 'emqx'
         env:
         env:
           PROFILE: ${{ matrix.profile[0] }}
           PROFILE: ${{ matrix.profile[0] }}
           DOCKER_REGISTRY: ${{ matrix.profile[1] }}
           DOCKER_REGISTRY: ${{ matrix.profile[1] }}