Skip to content

fix(server): surface chat-template errors (#208) #128

fix(server): surface chat-template errors (#208)

fix(server): surface chat-template errors (#208) #128

Workflow file for this run

name: Build Images
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'docker/**'
- 'src/**'
- 'pyproject.toml'
- 'README.md'
env:
IMAGE_NAME: parallax
NAMESPACE: gradientservice
jobs:
build:
runs-on: arc-public-parallax
permissions:
contents: read
packages: write
id-token: write
attestations: write
strategy:
matrix:
variant: [blackwell, hopper]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
driver: remote
endpoint: tcp://buildkit-buildkit-service.arc-systems:1234
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Extract metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.NAMESPACE }}/${{ env.IMAGE_NAME }}
tags: |
type=ref,event=branch,suffix=-${{ matrix.variant }}
type=ref,event=pr,suffix=-${{ matrix.variant }}
type=raw,value=latest-${{ matrix.variant }},enable={{is_default_branch}}
- name: Build and push Docker image
id: build
uses: docker/build-push-action@v5
with:
context: .
file: ./docker/Dockerfile.${{ matrix.variant }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
platforms: linux/amd64