Parcourir la source

build job sidecar in amd and arm

dgtown il y a 2 ans
Parent
commit
f33170f532
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      .github/workflows/release_services.yaml

+ 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