Explorar el Código

ci(build_packages): only push emqx broker to aws ecr

zhanghongtong hace 4 años
padre
commit
0b12a7e3a2
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      .github/workflows/build_packages.yaml

+ 1 - 1
.github/workflows/build_packages.yaml

@@ -492,7 +492,7 @@ jobs:
              -d "{\"repo\":\"emqx/emqx\", \"tag\": \"${{ env.version }}\" }" \
              -d "{\"repo\":\"emqx/emqx\", \"tag\": \"${{ env.version }}\" }" \
              ${{ secrets.EMQX_IO_RELEASE_API }}
              ${{ secrets.EMQX_IO_RELEASE_API }}
     - name: push docker image to aws ecr
     - name: push docker image to aws ecr
-      if: github.event_name == 'release'
+      if: github.event_name == 'release' && matrix.profile == 'emqx'
       run: |
       run: |
         set -e -x -u
         set -e -x -u
         aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws
         aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws