Skip to content
This repository was archived by the owner on Aug 30, 2025. It is now read-only.

Commit a106e5c

Browse files
authored
Merge pull request #59 from redhat-et/docker-release
add docker release GHA
2 parents eb9ad91 + bf7e506 commit a106e5c

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Create and publish Docker release image
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*' # Triggers on version tags like v1.0.0, v2.1.3, etc.
7+
8+
jobs:
9+
build_and_push:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
packages: write
14+
15+
steps:
16+
- name: Check out the repo
17+
uses: actions/checkout@v4
18+
19+
- name: Extract tag name
20+
id: extract_tag
21+
run: echo "tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
22+
23+
- name: Log in to GitHub Container Registry
24+
uses: docker/login-action@v3
25+
with:
26+
registry: ghcr.io
27+
username: ${{ github.actor }}
28+
password: ${{ secrets.GITHUB_TOKEN }}
29+
30+
- name: Build and push Docker image
31+
uses: docker/build-push-action@v5
32+
with:
33+
context: .
34+
file: ./Dockerfile.extproc
35+
push: true
36+
tags: |
37+
ghcr.io/${{ github.repository_owner }}/llm_semantic_router/extproc:${{ steps.extract_tag.outputs.tag }}
38+
ghcr.io/${{ github.repository_owner }}/llm_semantic_router/extproc:latest

0 commit comments

Comments
 (0)