Skip to content

feature: add upload file permissions to search-component api keys #478

feature: add upload file permissions to search-component api keys

feature: add upload file permissions to search-component api keys #478

name: Create Frontend Docker Images
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
on:
workflow_dispatch:
push:
branches:
- "main"
paths:
- "frontends/dashboard/**"
- "frontends/search/**"
- "frontends/chat/**"
- "frontends/shared/**"
- "frontends/config/**"
- "clients/ts-sdk/**"
jobs:
build_chat:
name: Push Chat Image
runs-on: ${{ matrix.runner }}
strategy:
matrix:
include:
- runner: blacksmith-2vcpu-ubuntu-2204
platform: linux/amd64
tag: latest
- runner: blacksmith-2vcpu-ubuntu-2204
platform: linux/arm64
tag: latest-arm
suffix: -arm
steps:
- 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
- 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/chat
tags: |
type=raw,${{matrix.tag}}
type=sha,suffix=${{matrix.suffix}}
- name: Build and push Docker image
uses: useblacksmith/[email protected]
with:
platforms: ${{ matrix.platform }}
file: frontends/chat/Dockerfile
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build_search:
name: Push Search Image
runs-on: ${{ matrix.runner }}
strategy:
matrix:
include:
- runner: blacksmith-2vcpu-ubuntu-2204
platform: linux/amd64
tag: latest
- runner: blacksmith-2vcpu-ubuntu-2204
platform: linux/arm64
tag: latest-arm
suffix: -arm
steps:
- 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
- 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/search
tags: |
type=raw,${{matrix.tag}}
type=sha,suffix=${{matrix.suffix}}
- name: Build and push Docker image
uses: useblacksmith/[email protected]
with:
platforms: ${{ matrix.platform }}
file: frontends/search/Dockerfile
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build_dashboard:
name: Push Dashboard Image
runs-on: ${{ matrix.runner }}
strategy:
matrix:
include:
- runner: blacksmith-2vcpu-ubuntu-2204
platform: linux/amd64
tag: latest
- runner: blacksmith-2vcpu-ubuntu-2204
platform: linux/arm64
tag: latest-arm
suffix: -arm
steps:
- 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
- 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/dashboard
tags: |
type=raw,${{matrix.tag}}
type=sha,suffix=${{matrix.suffix}}
- name: Build and push Docker image
uses: useblacksmith/[email protected]
with:
platforms: ${{ matrix.platform }}
file: frontends/dashboard/Dockerfile
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}