Skip to content

Commit

Permalink
feature: support arm64 docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
cdxker authored and skeptrunedev committed Jun 4, 2024
1 parent 05828e9 commit 31d8a37
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/push-frontends.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:
- name: Checkout the repo
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Setup buildx
uses: docker/setup-buildx-action@v3

Expand All @@ -46,6 +49,7 @@ jobs:
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
platforms: linux/amd64,linux/arm64
cache-from: type=registry,ref=trieve/buildcache:chat
cache-to: type=registry,ref=trieve/buildcache:chat,mode=max
context: chat/
Expand All @@ -61,6 +65,9 @@ jobs:
- name: Checkout the repo
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Setup buildx
uses: docker/setup-buildx-action@v3

Expand All @@ -84,6 +91,7 @@ jobs:
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
platforms: linux/amd64,linux/arm64
cache-from: type=registry,ref=trieve/buildcache:search
cache-to: type=registry,ref=trieve/buildcache:search,mode=max
context: search/
Expand All @@ -99,6 +107,9 @@ jobs:
- name: Checkout the repo
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Setup buildx
uses: docker/setup-buildx-action@v3

Expand All @@ -122,6 +133,7 @@ jobs:
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
platforms: linux/amd64,linux/arm64
cache-from: type=registry,ref=trieve/buildcache:dashboard
cache-to: type=registry,ref=trieve/buildcache:dashboard,mode=max
context: dashboard/
Expand Down
20 changes: 18 additions & 2 deletions .github/workflows/push-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ jobs:
- name: Checkout the repo
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Setup buildx
uses: docker/setup-buildx-action@v3

Expand All @@ -40,11 +43,12 @@ jobs:
tags: |
type=raw,no-ocr
type=raw,latest
type=sha
type=sha,prefix=sha-noocr-
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
platforms: linux/amd64,linux/arm64
cache-from: type=registry,ref=trieve/buildcache:no-ocr
cache-to: type=registry,ref=trieve/buildcache:no-ocr,mode=max
context: server/
Expand All @@ -60,6 +64,9 @@ jobs:
- name: Checkout the repo
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Setup buildx
uses: docker/setup-buildx-action@v3

Expand All @@ -83,6 +90,7 @@ jobs:
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
platforms: linux/amd64,linux/arm64
cache-from: type=registry,ref=trieve/buildcache:ingest
cache-to: type=registry,ref=trieve/buildcache:ingest,mode=max
context: server/
Expand All @@ -98,6 +106,9 @@ jobs:
- name: Checkout the repo
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Setup buildx
uses: docker/setup-buildx-action@v3

Expand All @@ -121,6 +132,7 @@ jobs:
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
platforms: linux/amd64,linux/arm64
cache-from: type=registry,ref=trieve/buildcache:file_worker
cache-to: type=registry,ref=trieve/buildcache:file_worker,mode=max
context: server/
Expand All @@ -136,6 +148,9 @@ jobs:
- name: Checkout the repo
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Setup buildx
uses: docker/setup-buildx-action@v3

Expand All @@ -154,11 +169,12 @@ jobs:
trieve/server
tags: |
type=raw,ocr
type=sha
type=sha,prefix=sha-ocr-
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
platforms: linux/amd64,linux/arm64
cache-from: type=registry,ref=trieve/buildcache:ocr
cache-to: type=registry,ref=trieve/buildcache:ocr,mode=max
context: server/
Expand Down

0 comments on commit 31d8a37

Please sign in to comment.