Skip to content

Commit f123646

Browse files
committed
Add cache
1 parent 949c121 commit f123646

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/build-self-host-docker-images.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ jobs:
4343
tags: ghcr.io/omnivore-app/sh-image-proxy:latest,ghcr.io/omnivore-app/sh-image-proxy:${{ github.sha }}
4444
context: imageproxy/
4545
file: imageproxy/Dockerfile
46+
cache-from: type=registry,ref=omnivore-app/sh-image-proxy:latest
47+
cache-to: type=inline,mode=min
4648

4749
- name: Build and push content-fetch
4850
uses: docker/build-push-action@v6
@@ -51,6 +53,8 @@ jobs:
5153
push: true
5254
tags: ghcr.io/omnivore-app/sh-content-fetch:latest,ghcr.io/omnivore-app/sh-content-fetch:${{ github.sha }}
5355
file: packages/content-fetch/Dockerfile
56+
cache-from: type=registry,ref=omnivore-app/sh-content-fetch:latest
57+
cache-to: type=inline,mode=min
5458

5559
- name: Build and push migrate
5660
uses: docker/build-push-action@v6
@@ -59,6 +63,8 @@ jobs:
5963
push: true
6064
tags: ghcr.io/omnivore-app/sh-migrate:latest,ghcr.io/omnivore-app/sh-migrate:${{ github.sha }}
6165
file: packages/db/Dockerfile
66+
cache-from: type=registry,ref=omnivore-app/sh-migrate:latest
67+
cache-to: type=inline,mode=min
6268

6369
- name: Build and push local-mail-watcher
6470
uses: docker/build-push-action@v6
@@ -67,6 +73,8 @@ jobs:
6773
push: true
6874
tags: ghcr.io/omnivore-app/sh-local-mail-watcher:latest,ghcr.io/omnivore-app/sh-local-mail-watcher:${{ github.sha }}
6975
file: packages/local-mail-watcher/Dockerfile
76+
cache-from: type=registry,ref=omnivore-app/sh-local-mail-watcher:latest
77+
cache-to: type=inline,mode=min
7078

7179
- name: Build and push backend
7280
uses: docker/build-push-action@v6
@@ -75,6 +83,8 @@ jobs:
7583
push: true
7684
tags: ghcr.io/omnivore-app/sh-backend:latest,ghcr.io/omnivore-app/sh-backend:${{ github.sha }}
7785
file: packages/api/Dockerfile
86+
cache-from: type=registry,ref=omnivore-app/sh-backend:latest
87+
cache-to: type=inline,mode=min
7888

7989
- name: Build and push queue-processor
8090
uses: docker/build-push-action@v6
@@ -83,3 +93,5 @@ jobs:
8393
push: true
8494
tags: ghcr.io/omnivore-app/sh-queue-processor:latest,ghcr.io/omnivore-app/sh-queue-processor:${{ github.sha }}
8595
file: packages/api/queue-processor/Dockerfile
96+
cache-from: type=registry,ref=omnivore-app/queue-processor:latest
97+
cache-to: type=inline,mode=min

0 commit comments

Comments
 (0)