Skip to content

fix: remove incorrect healthcheck cluster config #7

fix: remove incorrect healthcheck cluster config

fix: remove incorrect healthcheck cluster config #7

name: Create and publish Docker image for extproc
on:
workflow_dispatch:
workflow_call:
inputs:
tag_suffix:
description: 'Custom tag suffix for the Docker image'
required: false
type: string
default: ''
is_nightly:
description: 'Whether this is a nightly build'
required: false
type: boolean
default: false
push:
branches: [ "main" ]
jobs:
build_and_push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Generate date tag for nightly builds
id: date
if: inputs.is_nightly == true
run: echo "date_tag=$(date +'%Y%m%d')" >> $GITHUB_OUTPUT
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile.extproc
push: ${{ github.event_name != 'pull_request' }} # Only push on merge to main, not on PRs
tags: |
${{ inputs.is_nightly == true && format('ghcr.io/{0}/llm_semantic_router/extproc:nightly-{1}', github.repository_owner, steps.date.outputs.date_tag) || format('ghcr.io/{0}/llm_semantic_router/extproc:{1}', github.repository_owner, github.sha) }}
${{ inputs.is_nightly != true && format('ghcr.io/{0}/llm_semantic_router/extproc:latest', github.repository_owner) || '' }}