Fix cache?

This commit is contained in:
Thomas Rogers 2025-01-30 15:52:16 +01:00
parent 20f07f5599
commit bcc71175a5

View file

@ -35,6 +35,26 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push backend
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
push: true
tags: ghcr.io/omnivore-app/sh-backend:latest,ghcr.io/omnivore-app/sh-backend:${{ github.sha }}
file: packages/api/Dockerfile
cache-from: type=registry,ref=ghcr.io/omnivore-app/sh-backend:latest
cache-to: type=registry,ref=ghcr.io/omnivore-app/sh-backend:latest,mode=max
- name: Build and push queue-processor
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
push: true
tags: ghcr.io/omnivore-app/sh-queue-processor:latest,ghcr.io/omnivore-app/sh-queue-processor:${{ github.sha }}
file: packages/api/queue-processor/Dockerfile
cache-from: type=registry,ref=ghcr.io/omnivore-app/queue-processor:latest
cache-to: type=registry,ref=ghcr.io/omnivore-app/queue-processor:latest,mode=max
- name: Build and push image-proxy
uses: docker/build-push-action@v6
with:
@ -76,22 +96,4 @@ jobs:
cache-from: type=registry,ref=ghcr.io/omnivore-app/sh-local-mail-watcher:latest
cache-to: type=registry,ref=ghcr.io/omnivore-app/sh-local-mail-watcher:latest,mode=max
- name: Build and push backend
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
push: true
tags: ghcr.io/omnivore-app/sh-backend:latest,ghcr.io/omnivore-app/sh-backend:${{ github.sha }}
file: packages/api/Dockerfile
cache-from: type=registry,ref=ghcr.io/omnivore-app/sh-backend:latest
cache-to: type=registry,ref=ghcr.io/omnivore-app/sh-backend:latest,mode=max
- name: Build and push queue-processor
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
push: true
tags: ghcr.io/omnivore-app/sh-queue-processor:latest,ghcr.io/omnivore-app/sh-queue-processor:${{ github.sha }}
file: packages/api/queue-processor/Dockerfile
cache-from: type=registry,ref=ghcr.io/omnivore-app/queue-processor:latest
cache-to: type=registry,ref=ghcr.io/omnivore-app/queue-processor:latest,mode=max