Aligned tokenizer strategy w.r.t. sentence-transformers
(#32)
#19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build & Register Image | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- "crates/**" | |
- ".github/workflows/build-register-image.yml" | |
- "tests/**" | |
- "Cargo.toml" | |
- ".cargo/**" | |
- "Dockerfile" | |
- ".dockerignore" | |
jobs: | |
build-and-register: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Check current version | |
id: check-version | |
run: | | |
echo "LOCAL_VERSION=$(grep -e '^version\s*=\s*"' Cargo.toml | head -1 | cut -d '"' -f2)" >> $GITHUB_ENV | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build & Publish Container | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
push: true | |
platforms: linux/amd64 | |
tags: | | |
ghcr.io/wdoppenberg/glowrs-server:${{ env.LOCAL_VERSION }}-cpu | |
ghcr.io/wdoppenberg/glowrs-server:latest |