Skip to content

[Feat]: adding playground to compare your evaluations from different … #9

[Feat]: adding playground to compare your evaluations from different …

[Feat]: adding playground to compare your evaluations from different … #9

Workflow file for this run

name: Release OpenLIT
on:
push:
tags: [ 'openlit-*.*.*' ]
env:
REGISTRY: ghcr.io
permissions:
contents: write
jobs:
release:
name: Docker
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
id-token: write
env:
IMAGE_NAME: ${{ github.repository }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install cosign
uses: sigstore/cosign-installer@59acb6260d9c0ba8f4a2f9d9b48431a222b68e20 #v3.5.0
with:
cosign-release: 'v2.2.2'
- name: Extract version from tag
id: extract_version
run: echo "version=${GITHUB_REF#refs/tags/openlit-}" >> $GITHUB_ENV
env:
GITHUB_REF: ${{ github.ref }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v3.3.0
- name: Log into registry ${{ env.REGISTRY }}
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v3.1.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5.5.1
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=semver,pattern={{version}},value=${{ env.version }}
env:
DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index
- name: Build and push Docker image
id: build-and-push
uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5.4.0
with:
context: ./src/client/
provenance: false
file: ./src/client/Dockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64/v8
annotations: |
${{ steps.meta.outputs.annotations }},
io.artifacthub.package.logo-url=https://github.com/openlit/.github/blob/main/profile/assets/favicon.png?raw=true,
io.artifacthub.package.readme-url=https://raw.githubusercontent.com/openlit/openlit/main/README.md,
io.artifacthub.package.license=Apache-2.0,
org.opencontainers.image.vendor=OpenLIT,
io.artifacthub.package.maintainers=[{'name':'OpenLIT','email':'developers@openlit.io'}],
io.artifacthub.package.keywords='Monitoring, Observability, LLMs, OpenAI, OpenTelemetry, Tracing'
- name: Sign the published Docker image
env:
TAGS: ${{ steps.meta.outputs.tags }}
DIGEST: ${{ steps.build-and-push.outputs.digest }}
run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST}