Skip to content

Multivector query sets with ground truth and prefetch vectors (#181) #89

Multivector query sets with ground truth and prefetch vectors (#181)

Multivector query sets with ground truth and prefetch vectors (#181) #89

name: Build and Push Multi-Arch Docker Image
on:
push:
branches: [ master, dev ]
tags: [ 'v*' ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Extract build info
id: extract_build_info
run: |
echo "tag=${GITHUB_REF##*/}" >> $GITHUB_OUTPUT
echo "commit_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Set Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
images: |
qdrant/bfb
tags: |
type=raw,value=${{ steps.extract_build_info.outputs.tag }}
${{ github.ref_name == 'master' && 'type=raw,value=latest' || '' }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
labels: ${{ steps.meta.outputs.labels }}
tags: ${{ steps.meta.outputs.tags }}
build-args: |
VERSION=${{ steps.extract_build_info.outputs.tag }}
BUILD=${{ steps.extract_build_info.outputs.commit_short }}