Skip to content

Commit aeff487

Browse files
chensuyueChingis Yundunov
authored andcommitted
Build and upstream latest base image on push event (opea-project#1355)
Build and upstream latest base image on push event opea-project#1314 Signed-off-by: chensuyue <suyue.chen@intel.com> Signed-off-by: Chingis Yundunov <YundunovCN@sibedge.com>
1 parent 644b5c6 commit aeff487

File tree

4 files changed

+66
-2
lines changed

4 files changed

+66
-2
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Copyright (C) 2025 Intel Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
# this file should be run in the root of the repo
5+
services:
6+
comps-base:
7+
build:
8+
dockerfile: Dockerfile
9+
image: ${REGISTRY:-opea}/comps-base:${TAG:-latest}

.github/workflows/manual-comps-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
inputs:
88
services:
99
default: "asr"
10-
description: "List of services to test [agent,asr,chathistory,animation,dataprep,embeddings,feedback_management,finetuning,guardrails,image2image,image2video,intent_detection,llms,lvms,prompt_registry,ragas,rerankings,retrievers,text2image,text2sql,third_parties,tts,vectorstores,web_retrievers]"
10+
description: "List of services to test [agent,animation,asr,chathistory,dataprep,embeddings,feedback_management,finetuning,guardrails,image2image,image2video,intent_detection,llms,lvms,prompt_registry,ragas,rerankings,retrievers,text2image,text2sql,third_parties,tts,vectorstores,web_retrievers]"
1111
required: true
1212
type: string
1313
build:

.github/workflows/manual-docker-scan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
inputs:
88
services:
99
default: "asr"
10-
description: "List of services to test [agent_langchain,asr,chathistory_mongo,dataprep_milvus...]" #,embeddings,guardrails,llms,lvms,prompt_registry,ragas,rerankings,retrievers,tts,web_retrievers]"
10+
description: "List of services to test [agent,animation,asr,chathistory,dataprep,embeddings,feedback_management,finetuning,guardrails,image2image,image2video,intent_detection,llms,lvms,prompt_registry,ragas,rerankings,retrievers,text2image,text2sql,third_parties,tts,vectorstores,web_retrievers]"
1111
required: false
1212
type: string
1313
images:
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Copyright (C) 2025 Intel Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
name: Build and upstream latest base image on push event
4+
5+
on:
6+
push:
7+
branches: ["main"]
8+
paths:
9+
- 'cores/**'
10+
- '**/src/**'
11+
- 'requirements.txt'
12+
- 'Dockerfile'
13+
14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.ref }}-on-push
16+
cancel-in-progress: true
17+
18+
jobs:
19+
image-build:
20+
strategy:
21+
matrix:
22+
node: [xeon, gaudi]
23+
runs-on: docker-build-${{ matrix.node }}
24+
continue-on-error: true
25+
steps:
26+
- name: Clean up Working Directory
27+
run: |
28+
echo "Build opea/comps-base:latest !"
29+
sudo rm -rf ${{github.workspace}}/*
30+
31+
- name: Checkout out Repo
32+
uses: actions/checkout@v4
33+
34+
- name: Build Image
35+
uses: opea-project/validation/actions/image-build@main
36+
with:
37+
work_dir: ${{ github.workspace }}
38+
docker_compose_path: ${{ github.workspace }}/.github/workflows/docker/compose/base-compose.yaml
39+
registry: ${OPEA_IMAGE_REPO}opea
40+
41+
image-publish:
42+
needs: [ image-build ]
43+
runs-on: "docker-build-gaudi"
44+
steps:
45+
- uses: docker/login-action@v3.2.0
46+
with:
47+
username: ${{ secrets.DOCKERHUB_USER }}
48+
password: ${{ secrets.DOCKERHUB_TOKEN }}
49+
50+
- name: Image Publish
51+
uses: opea-project/validation/actions/image-publish@main
52+
with:
53+
local_image_ref: ${OPEA_IMAGE_REPO}opea/comps-base:latest
54+
image_name: opea/comps-base
55+
publish_tags: latest

0 commit comments

Comments
 (0)