Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
152 changes: 152 additions & 0 deletions .github/workflows/release-numerix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
name: Release Numerix

on:
workflow_dispatch:
inputs:
version:
description: 'Version to release (e.g., v0.1.20 or v0.1.20-beta.1)'
required: true
type: string
is_beta:
description: 'Is this a beta release?'
required: false
type: boolean
default: false
is_alpha:
description: 'Is this an alpha release?'
required: false
type: boolean
default: false
branch:
description: 'Branch to release from'
required: true
type: string
default: 'main'

env:
REGISTRY: ghcr.io
IMAGE_NAME: ghcr.io/${{ github.repository_owner }}/numerix

jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ inputs.branch }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Log in to Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.IMAGE_NAME }}
tags: |
type=raw,value=${{ inputs.version }}
type=raw,value=latest,enable=${{ !inputs.is_beta && !inputs.is_alpha }}

- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: ./numerix
file: ./numerix/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Create GitHub Release (Production)
if: ${{ !inputs.is_beta && !inputs.is_alpha }}
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: numerix/${{ inputs.version }}
release_name: Numerix ${{ inputs.version }}
body: |
## Numerix Release ${{ inputs.version }}

### Docker Image
- `${{ env.IMAGE_NAME }}:${{ inputs.version }}`
- `${{ env.IMAGE_NAME }}:latest`

### Features
- High-performance matrix operations service
- Built with Rust for optimal performance
- gRPC and HTTP API support
- Protocol Buffers for efficient data transfer

### Changes
Please see the commit history for detailed changes.
draft: false
prerelease: false

- name: Create GitHub Release (Beta)
if: ${{ inputs.is_beta }}
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: numerix/${{ inputs.version }}
release_name: Numerix ${{ inputs.version }} (Beta)
body: |
## Numerix Beta Release ${{ inputs.version }}

⚠️ **This is a beta release from the develop branch** - Use for testing purposes only.

### Docker Image
- `${{ env.IMAGE_NAME }}:${{ inputs.version }}`

### Features
- High-performance matrix operations service
- Built with Rust for optimal performance
- gRPC API support
- Protocol Buffers for efficient data transfer

### Changes
Please see the commit history for detailed changes.
draft: false
prerelease: true

- name: Create GitHub Release (Alpha)
if: ${{ inputs.is_alpha }}
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: numerix/${{ inputs.version }}
release_name: Numerix ${{ inputs.version }} (Alpha)
body: |
## Numerix Alpha Release ${{ inputs.version }}

⚠️ **This is an alpha release from a feature/fix branch** - Experimental build for development and testing.

### Docker Image
- `${{ env.IMAGE_NAME }}:${{ inputs.version }}`

### Features
- High-performance matrix operations service
- Built with Rust for optimal performance
- gRPC and HTTP API support
- Protocol Buffers for efficient data transfer

### Changes
Please see the commit history for detailed changes.
draft: false
prerelease: true
6 changes: 3 additions & 3 deletions online-feature-store/internal/server/grpc/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ import (
)

const (
AuthToken = "AUTH_TOKEN"
callerIdHeader = "online-feature-store-caller-id"
AuthTokenHeader = "online-feature-store-auth-token"
AuthToken = "auth_token"
callerIdHeader = "online_feature_store_caller_id"
AuthTokenHeader = "online_feature_store_auth_token"
)

func ServerInterceptor(ctx context.Context, req any, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (resp any, err error) {
Expand Down