Skip to content

fmt: cargo fmt

fmt: cargo fmt #1027

Workflow file for this run

name: Create Docker Images
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
on:
workflow_dispatch:
push:
branches:
- 'main'
paths:
- 'server/**'
- '.github/workflows/**'
jobs:
build_server:
name: Push No OCR image
runs-on: blacksmith-8vcpu-ubuntu-2204
steps:
- name: Checkout the repo
uses: actions/checkout@v4
- name: Setup buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
# list of Docker images to use as base name for tags
images: |
trieve/server
tags: |
type=raw,no-ocr
type=raw,latest
type=sha
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
cache-from: type=registry,ref=trieve/buildcache:no-ocr
cache-to: type=registry,ref=trieve/buildcache:no-ocr,mode=max
context: server/
file: ./server/Dockerfile.no-ocr
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
ingest_worker:
name: Push Ingest image
runs-on: blacksmith-8vcpu-ubuntu-2204
steps:
- name: Checkout the repo
uses: actions/checkout@v4
- name: Setup buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
# list of Docker images to use as base name for tags
images: |
trieve/ingest
tags: |
type=raw,latest
type=sha
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
cache-from: type=registry,ref=trieve/buildcache:ingest
cache-to: type=registry,ref=trieve/buildcache:ingest,mode=max
context: server/
file: ./server/Dockerfile.ingestion-worker
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
file_worker:
name: Push File Worker image
runs-on: blacksmith-8vcpu-ubuntu-2204
steps:
- name: Checkout the repo
uses: actions/checkout@v4
- name: Setup buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
# list of Docker images to use as base name for tags
images: |
trieve/file_worker
tags: |
type=raw,latest
type=sha
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
cache-from: type=registry,ref=trieve/buildcache:file_worker
cache-to: type=registry,ref=trieve/buildcache:file_worker,mode=max
context: server/
file: ./server/Dockerfile.file-worker
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
ocr-image:
name: Push OCR Image
runs-on: blacksmith-8vcpu-ubuntu-2204
steps:
- name: Checkout the repo
uses: actions/checkout@v4
- name: Setup buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
# list of Docker images to use as base name for tags
images: |
trieve/server
tags: |
type=raw,ocr
type=sha
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
cache-from: type=registry,ref=trieve/buildcache:ocr
cache-to: type=registry,ref=trieve/buildcache:ocr,mode=max
context: server/
file: ./server/Dockerfile.ocr
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}