Skip to content

Commit

Permalink
Add docker syntax and re-add cache-from
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
S7evinK committed Dec 18, 2024
1 parent 5c25b6f commit fecd84c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ jobs:
id: docker_build_demo_pinecone
uses: docker/build-push-action@v3
with:
cache-from: type=registry,ref=ghcr.io/${{ env.GHCR_NAMESPACE }}/dendrite:buildcache
context: .
file: ./build/docker/Dockerfile.demo-pinecone
platforms: ${{ env.PLATFORMS }}
Expand All @@ -150,6 +151,7 @@ jobs:
id: docker_build_demo_pinecone_release
uses: docker/build-push-action@v3
with:
cache-from: type=registry,ref=ghcr.io/${{ env.GHCR_NAMESPACE }}/dendrite:buildcache
context: .
file: ./build/docker/Dockerfile.demo-pinecone
platforms: ${{ env.PLATFORMS }}
Expand Down Expand Up @@ -195,6 +197,7 @@ jobs:
id: docker_build_demo_yggdrasil
uses: docker/build-push-action@v3
with:
cache-from: type=registry,ref=ghcr.io/${{ env.GHCR_NAMESPACE }}/dendrite:buildcache
context: .
file: ./build/docker/Dockerfile.demo-yggdrasil
platforms: ${{ env.PLATFORMS }}
Expand All @@ -208,6 +211,7 @@ jobs:
id: docker_build_demo_yggdrasil_release
uses: docker/build-push-action@v3
with:
cache-from: type=registry,ref=ghcr.io/${{ env.GHCR_NAMESPACE }}/dendrite:buildcache
context: .
file: ./build/docker/Dockerfile.demo-yggdrasil
platforms: ${{ env.PLATFORMS }}
Expand Down
2 changes: 2 additions & 0 deletions build/docker/Dockerfile.demo-pinecone
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#syntax=docker/dockerfile:1.2

FROM --platform=${BUILDPLATFORM} ghcr.io/element-hq/dendrite:buildcache AS build

FROM alpine:latest
Expand Down
2 changes: 2 additions & 0 deletions build/docker/Dockerfile.demo-yggdrasil
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#syntax=docker/dockerfile:1.2

FROM --platform=${BUILDPLATFORM} ghcr.io/element-hq/dendrite:buildcache AS build

FROM alpine:latest
Expand Down

0 comments on commit fecd84c

Please sign in to comment.