Skip to content

Commit 02cf88a

Browse files
Changes to when to push
1 parent b6c9f1d commit 02cf88a

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/build-image.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ jobs:
3939
platforms: linux/amd64
4040
push: ${{ github.event_name == 'push' }}
4141
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:amd64-${{ github.sha }}
42-
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache-amd64
43-
cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache-amd64,mode=max
42+
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
43+
cache-to: type=inline
4444
provenance: false
4545
sbom: false
4646
secrets: |
@@ -68,15 +68,15 @@ jobs:
6868
platforms: linux/arm64
6969
push: ${{ github.event_name == 'push' }}
7070
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:arm64-${{ github.sha }}
71-
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache-arm64
72-
cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache-arm64,mode=max
71+
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
72+
cache-to: type=inline
7373
provenance: false
7474
sbom: false
7575
secrets: |
7676
GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
7777
7878
manifest-and-attest:
79-
if: ${{ github.event_name == 'push' }}
79+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
8080
runs-on:
8181
group: codex-runners
8282
labels: codex-linux-x64

0 commit comments

Comments
 (0)