Browse Source

build job sidecar in amd and arm

dgtown 2 năm trước cách đây
mục cha
commit
f33170f532

+ 2 - 2
.github/workflows/release_services.yaml

@@ -1,5 +1,5 @@
 ---
 ---
-name: build
+name: release_services
 
 
 on:
 on:
   push:
   push:
@@ -53,7 +53,7 @@ jobs:
         with:
         with:
           context: services/${{ matrix.apps.name }}
           context: services/${{ matrix.apps.name }}
           platforms: linux/amd64,linux/arm64
           platforms: linux/amd64,linux/arm64
-          push: true
+          push: github.ref == 'refs/heads/master'
           tags: |
           tags: |
             ghcr.io/porter-dev/${{ matrix.apps.name }}:${{ steps.vars.outputs.sha_short }}
             ghcr.io/porter-dev/${{ matrix.apps.name }}:${{ steps.vars.outputs.sha_short }}
             ghcr.io/porter-dev/${{ matrix.apps.name }}:latest
             ghcr.io/porter-dev/${{ matrix.apps.name }}:latest