Skip to content

Commit bcc7117

Browse files
committed
Fix cache?
1 parent 20f07f5 commit bcc7117

File tree

1 file changed

+20
-18
lines changed

1 file changed

+20
-18
lines changed

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

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,26 @@ jobs:
3535
- name: Set up Docker Buildx
3636
uses: docker/setup-buildx-action@v3
3737

38+
- name: Build and push backend
39+
uses: docker/build-push-action@v6
40+
with:
41+
platforms: linux/amd64,linux/arm64
42+
push: true
43+
tags: ghcr.io/omnivore-app/sh-backend:latest,ghcr.io/omnivore-app/sh-backend:${{ github.sha }}
44+
file: packages/api/Dockerfile
45+
cache-from: type=registry,ref=ghcr.io/omnivore-app/sh-backend:latest
46+
cache-to: type=registry,ref=ghcr.io/omnivore-app/sh-backend:latest,mode=max
47+
48+
- name: Build and push queue-processor
49+
uses: docker/build-push-action@v6
50+
with:
51+
platforms: linux/amd64,linux/arm64
52+
push: true
53+
tags: ghcr.io/omnivore-app/sh-queue-processor:latest,ghcr.io/omnivore-app/sh-queue-processor:${{ github.sha }}
54+
file: packages/api/queue-processor/Dockerfile
55+
cache-from: type=registry,ref=ghcr.io/omnivore-app/queue-processor:latest
56+
cache-to: type=registry,ref=ghcr.io/omnivore-app/queue-processor:latest,mode=max
57+
3858
- name: Build and push image-proxy
3959
uses: docker/build-push-action@v6
4060
with:
@@ -76,22 +96,4 @@ jobs:
7696
cache-from: type=registry,ref=ghcr.io/omnivore-app/sh-local-mail-watcher:latest
7797
cache-to: type=registry,ref=ghcr.io/omnivore-app/sh-local-mail-watcher:latest,mode=max
7898

79-
- name: Build and push backend
80-
uses: docker/build-push-action@v6
81-
with:
82-
platforms: linux/amd64,linux/arm64
83-
push: true
84-
tags: ghcr.io/omnivore-app/sh-backend:latest,ghcr.io/omnivore-app/sh-backend:${{ github.sha }}
85-
file: packages/api/Dockerfile
86-
cache-from: type=registry,ref=ghcr.io/omnivore-app/sh-backend:latest
87-
cache-to: type=registry,ref=ghcr.io/omnivore-app/sh-backend:latest,mode=max
8899

89-
- name: Build and push queue-processor
90-
uses: docker/build-push-action@v6
91-
with:
92-
platforms: linux/amd64,linux/arm64
93-
push: true
94-
tags: ghcr.io/omnivore-app/sh-queue-processor:latest,ghcr.io/omnivore-app/sh-queue-processor:${{ github.sha }}
95-
file: packages/api/queue-processor/Dockerfile
96-
cache-from: type=registry,ref=ghcr.io/omnivore-app/queue-processor:latest
97-
cache-to: type=registry,ref=ghcr.io/omnivore-app/queue-processor:latest,mode=max

0 commit comments

Comments
 (0)