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

Commit 45f7daa

Browse files
jgchnclubandersonasm582terrytangyuansriumcp
authored
Test GHA. on main (#191)
* Trigger CI: Empty commit * Trigger CI: Empty commit * add note to reset acceleratortypes (#165) * docs: More condense bullet points in README.md (#176) * pull nginx from ghcr (#168) * Add perf script (#177) * add perf script * address review * Roadmap items for modelservice (#178) * every thing Signed-off-by: Srinivasan Parthasarathy <[email protected]> * same as upstream Signed-off-by: Srinivasan Parthasarathy <[email protected]> * roadmap Signed-off-by: Srinivasan Parthasarathy <[email protected]> * fixed roadmap Signed-off-by: Srinivasan Parthasarathy <[email protected]> * roadmap blurb Signed-off-by: Srinivasan Parthasarathy <[email protected]> * numbered roadmap items Signed-off-by: Srinivasan Parthasarathy <[email protected]> --------- Signed-off-by: Srinivasan Parthasarathy <[email protected]> * dev pipeline deploy fixes (#173) Signed-off-by: Michael Kalantar <[email protected]> * Refactor CreateOrUpdate (#152) * Temp Signed-off-by: Jing Chen <[email protected]> * Refactor createorupdate Signed-off-by: Jing Chen <[email protected]> * Typo Signed-off-by: Jing Chen <[email protected]> * Samples fix Signed-off-by: Jing Chen <[email protected]> * Resolve merge problems Signed-off-by: Jing Chen <[email protected]> * Resolve merge Signed-off-by: Jing Chen <[email protected]> * Add test Signed-off-by: Jing Chen <[email protected]> * Rm unwanted change in test Signed-off-by: Jing Chen <[email protected]> * Fixes Signed-off-by: Jing Chen <[email protected]> --------- Signed-off-by: Jing Chen <[email protected]> * refactor cli (#180) Signed-off-by: Michael Kalantar <[email protected]> * neuralmagic to llm-d (#182) * neuralmagic to llm-d Signed-off-by: Michael Kalantar <[email protected]> * add links to tools Signed-off-by: Michael Kalantar <[email protected]> --------- Signed-off-by: Michael Kalantar <[email protected]> * add single license file (#185) * Update samples (#187) * use kubectl instead of oc Signed-off-by: Michael Kalantar <[email protected]> * update image versions Signed-off-by: Michael Kalantar <[email protected]> * update image versions Signed-off-by: Michael Kalantar <[email protected]> * update image versions Signed-off-by: Michael Kalantar <[email protected]> --------- Signed-off-by: Michael Kalantar <[email protected]> * Test GH Actions Signed-off-by: Jing Chen <[email protected]> --------- Signed-off-by: Srinivasan Parthasarathy <[email protected]> Signed-off-by: Michael Kalantar <[email protected]> Signed-off-by: Jing Chen <[email protected]> Co-authored-by: Andrew Anderson <[email protected]> Co-authored-by: Abhishek Malvankar <[email protected]> Co-authored-by: Yuan Tang <[email protected]> Co-authored-by: Srinivasan Parthasarathy <[email protected]> Co-authored-by: Michael Kalantar <[email protected]>
1 parent 94db75b commit 45f7daa

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+1671
-1098
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Docker Build - ghcr
2+
description: Build image using buildx
3+
inputs:
4+
image-name:
5+
required: true
6+
description: Image name
7+
tag:
8+
required: true
9+
description: Image tag
10+
github-token:
11+
required: true
12+
description: GitHub token for login
13+
registry:
14+
required: true
15+
description: Container registry (e.g., ghcr.io/llm-d)
16+
runs:
17+
using: "composite"
18+
steps:
19+
- name: Set up Docker Buildx
20+
uses: docker/setup-buildx-action@v3
21+
22+
- name: Login to GitHub Container Registry
23+
run: echo "${{ inputs.github-token }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
24+
shell: bash
25+
26+
- name: Print image info
27+
run: |
28+
echo "Image name: ${{ inputs.image-name }}"
29+
echo "Tag: ${{ inputs.tag }}"
30+
echo "Registry: ${{ inputs.registry }}"
31+
shell: bash
32+
33+
- name: Build image
34+
run: |
35+
docker buildx build \
36+
--platform linux/amd64 \
37+
-t ${{ inputs.registry }}/${{ inputs.image-name }}:${{ inputs.tag }} \
38+
--push .
39+
shell: bash

.github/actions/go-test/action.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Go Test
2+
description: Run Ginkgo tests
3+
runs:
4+
using: "composite"
5+
steps:
6+
- run: |
7+
echo "Installing Ginkgo..."
8+
go install github.com/onsi/ginkgo/ginkgo@latest
9+
export PATH=$PATH:$(go env GOPATH)/bin
10+
echo "Ginkgo installed:"
11+
ginkgo version
12+
echo "Running tests with Ginkgo..."
13+
go env -w GOFLAGS=-buildvcs=false
14+
make test
15+
shell: bash

.github/actions/lint/action.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Lint
2+
description: Run flake8 linter
3+
runs:
4+
using: "composite"
5+
steps:
6+
- name: Debug PWD
7+
run: pwd
8+
shell: bash
9+
10+
- name: Show files
11+
run: ls -la
12+
shell: bash
13+
14+
- name: Install and run flake8
15+
run: |
16+
pip install flake8
17+
flake8 .
18+
shell: bash
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Push Docker Image
2+
description: Push built image to container registry
3+
inputs:
4+
image-name:
5+
required: true
6+
tag:
7+
required: true
8+
registry:
9+
required: true
10+
runs:
11+
using: "composite"
12+
steps:
13+
- name: Push image
14+
run: |
15+
docker push ${{ inputs.registry }}/${{ inputs.image-name }}:${{ inputs.tag }}
16+
shell: bash
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Trivy Scan
2+
description: Scan container image with Trivy
3+
inputs:
4+
image:
5+
required: true
6+
runs:
7+
using: "composite"
8+
steps:
9+
- name: Install Trivy
10+
run: |
11+
wget https://github.com/aquasecurity/trivy/releases/download/v0.44.1/trivy_0.44.1_Linux-64bit.deb
12+
sudo dpkg -i trivy_0.44.1_Linux-64bit.deb
13+
shell: bash
14+
15+
16+
- name: Scan image
17+
run: |
18+
trivy image --severity HIGH,CRITICAL --no-progress ${{ inputs.image }}
19+
shell: bash
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CI - PR Checks
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
lint-and-test:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout source
16+
uses: actions/checkout@v4
17+
18+
- name: Read project name from .version.json
19+
id: version
20+
run: |
21+
name=$(jq -r '."project-name"' .version.json)
22+
echo "project_name=$name" >> "$GITHUB_OUTPUT"
23+
24+
- name: Print project name
25+
run: echo "Project is ${{ steps.version.outputs.project_name }}"
26+
27+
- name: Sanity check repo contents
28+
run: ls -la
29+
30+
- name: Run lint checks
31+
uses: ./.github/actions/lint
32+
33+
- name: Test
34+
uses: ./.github/actions/go-test

.github/workflows/ci-release.yaml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: CI - Release - Docker Container Image
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*' # Runs when a tag like v0.1.0 is pushed
7+
release:
8+
types: [published] # Also runs when a GitHub release is published
9+
10+
jobs:
11+
docker-build-and-push:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout source
15+
uses: actions/checkout@v4
16+
17+
- name: Set project name from repository
18+
id: version
19+
run: |
20+
repo="${GITHUB_REPOSITORY##*/}"
21+
echo "project_name=$repo" >> "$GITHUB_OUTPUT"
22+
23+
- name: Print project name
24+
run: echo "Project is ${{ steps.version.outputs.project_name }}"
25+
26+
- name: Determine tag name
27+
id: tag
28+
run: |
29+
if [[ "${GITHUB_EVENT_NAME}" == "release" ]]; then
30+
echo "tag=${GITHUB_REF##refs/tags/}" >> "$GITHUB_OUTPUT"
31+
elif [[ "${GITHUB_REF}" == refs/tags/* ]]; then
32+
echo "tag=${GITHUB_REF##refs/tags/}" >> "$GITHUB_OUTPUT"
33+
else
34+
echo "tag=latest" >> "$GITHUB_OUTPUT"
35+
fi
36+
shell: bash
37+
38+
- name: Build and push image
39+
uses: ./.github/actions/docker-build-and-push
40+
with:
41+
tag: ${{ steps.tag.outputs.tag }}
42+
image-name: ${{ steps.version.outputs.project_name }}
43+
registry: ghcr.io/llm-d
44+
github-token: ${{ secrets.GHCR_TOKEN }}
45+
46+
- name: Run Trivy scan
47+
uses: ./.github/actions/trivy-scan
48+
with:
49+
image: ghcr.io/llm-d/${{ steps.version.outputs.project_name }}:${{ steps.tag.outputs.tag }}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: CI PipelineRun
2+
3+
on:
4+
push:
5+
branches:
6+
- dev
7+
- main
8+
pull_request:
9+
10+
jobs:
11+
pipeline:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout source
15+
uses: actions/checkout@v4
16+
17+
- name: Sanity check repo contents
18+
run: ls -la
19+
20+
- name: Run lint checks
21+
uses: ./.github/actions/lint
22+
23+
- name: Build container image
24+
uses: ./.github/actions/docker-build-and-push
25+
with:
26+
image-name: my-app
27+
tag: ${{ github.sha }}
28+
github-token: ${{ secrets.GHCR_TOKEN }}
29+
30+
- name: Run Trivy scan
31+
uses: ./.github/actions/trivy-scan
32+
with:
33+
image: ghcr.io/llm-d/my-app:${{ github.sha }}
34+
35+
# - name: Push image
36+
# if: github.ref == 'refs/heads/main'
37+
# uses: ./.github/actions/push-image
38+
# with:
39+
# image-name: my-app
40+
# tag: ${{ github.sha }}
41+
# registry: ghcr.io/llm-d

.tekton/deploy-to-openshift.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ spec:
7676
sleep 3
7777
7878
echo "🚀 Reinstalling OpenShift deployment..."
79-
make install && make dev-deploy EPP_CLUSTERROLE=dummy IMG=$IMAGE_TAG_BASE:$VERSION
79+
make install && make dev-deploy EPP_CLUSTERROLE=pod-read IMG=$IMAGE_TAG_BASE:$VERSION IMAGE_PULL_SECRET=ghcr-secret-llm-d PD_PULL_SECRETS=ghcr-secret-llm-d,quay-secret-llm-d EPP_PULL_SECRETS=ghcr-secret-llm-d,quay-secret-llm-d
8080
8181
# make install-openshift NAMESPACE=$NS PROJECT_NAME=$PROJECT_NAME IMAGE_TAG_BASE=$IMAGE_TAG_BASE VERSION=$VERSION
8282

0 commit comments

Comments
 (0)