Explorar el Código

build: enable docker img push for forkings

William Yang hace 3 años
padre
commit
093da2d8cf
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      .github/workflows/build_and_push_docker_images.yaml

+ 3 - 3
.github/workflows/build_and_push_docker_images.yaml

@@ -159,7 +159,7 @@ jobs:
 
 
     - uses: docker/build-push-action@v3
     - uses: docker/build-push-action@v3
       with:
       with:
-        push: ${{ needs.prepare.outputs.IS_EXACT_TAG }}
+        push: ${{ needs.prepare.outputs.IS_EXACT_TAG == 'true' || github.repository_owner != 'emqx' }}
         pull: true
         pull: true
         no-cache: true
         no-cache: true
         platforms: linux/${{ matrix.arch[0] }}
         platforms: linux/${{ matrix.arch[0] }}
@@ -227,7 +227,7 @@ jobs:
 
 
     - uses: docker/build-push-action@v3
     - uses: docker/build-push-action@v3
       with:
       with:
-        push: ${{ needs.prepare.outputs.IS_EXACT_TAG }}
+        push: ${{ needs.prepare.outputs.IS_EXACT_TAG == 'true' || github.repository_owner != 'emqx' }}
         pull: true
         pull: true
         no-cache: true
         no-cache: true
         platforms: linux/${{ matrix.arch[0] }}
         platforms: linux/${{ matrix.arch[0] }}
@@ -310,7 +310,7 @@ jobs:
   docker-elixir-push-multi-arch-manifest:
   docker-elixir-push-multi-arch-manifest:
     # note, we only run on amd64
     # note, we only run on amd64
     # do not build enterprise elixir images for now
     # do not build enterprise elixir images for now
-    if: needs.prepare.outputs.IS_EXACT_TAG && needs.prepare.outputs.BUILD_PROFILE == 'emqx'
+    if: needs.prepare.outputs.IS_EXACT_TAG == 'true' && needs.prepare.outputs.BUILD_PROFILE == 'emqx'
     needs:
     needs:
       - prepare
       - prepare
       - docker-elixir
       - docker-elixir