Skip to content

Commit 65b04dc

Browse files
authored
helm: use latest image tag on main branch (#358)
Switch to use latest opea image tag on main branch, and use `manual-freeze-tag` action to replace with tag version. Signed-off-by: Lianhao Lu <[email protected]>
1 parent 987870f commit 65b04dc

Some content is hidden

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

63 files changed

+201
-205
lines changed

.github/workflows/_helm-e2e.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
# insert a prefix before opea/.*, the prefix is OPEA_IMAGE_REPO
8080
find . -name '*values.yaml' -type f -exec sed -i "s#repository: opea/*#repository: ${OPEA_IMAGE_REPO}opea/#g" {} \;
8181
# set OPEA image tag to ${{ inputs.tag }}
82-
find . -name '*values.yaml' -type f -exec sed -i 's#tag: ""#tag: ${{ inputs.tag }}#g' {} \;
82+
find . -name '*values.yaml' -type f -exec sed -i 's#tag: "latest"#tag: ${{ inputs.tag }}#g' {} \;
8383
# set huggingface token
8484
find . -name '*values.yaml' -type f -exec sed -i "s#insert-your-huggingface-token-here#${HFTOKEN}#g" {} \;
8585
# replace the mount dir "Volume: *" with "Volume: $CHART_MOUNT"

.github/workflows/manual-freeze-tag.yaml

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,19 @@ name: Freeze helm release tag in helm charts on manual event
66
on:
77
workflow_dispatch:
88
inputs:
9-
oldappversion:
10-
default: "v0.8"
11-
description: "Old appVersion to be replaced"
12-
required: true
13-
type: string
14-
newappversion:
15-
default: "v0.9"
16-
description: "New appVersion to replace"
17-
required: true
18-
type: string
199
oldversion:
20-
default: "0.8.0"
21-
description: "Old version to be replaced"
10+
default: "0.9.0"
11+
description: "Old helm version to be replaced"
2212
required: true
2313
type: string
2414
newversion:
25-
default: "0.9.0"
26-
description: "New version to replace"
15+
default: "1.0.0"
16+
description: "New helm version to replace"
17+
required: true
18+
type: string
19+
imageversion:
20+
default: "v1.0"
21+
description: "New image version to replace"
2722
required: true
2823
type: string
2924

@@ -46,11 +41,11 @@ jobs:
4641
4742
- name: Run script
4843
env:
49-
NEWTAG: ${{ inputs.newappversion }}
44+
NEWTAG: ${{ inputs.imageversion }}
5045
run: |
51-
find helm-charts/ -name 'Chart.yaml' -type f -exec sed -i "s#appVersion: \"${{ inputs.oldappversion }}\"#appVersion: \"${{ inputs.newappversion }}\"#g" {} \;
46+
find helm-charts/ -name '*values.yaml' -type f -exec sed -i "s#tag: \"latest\"#tag: \"${imageversion}\"#g" {} \;
5247
find helm-charts/ -name 'Chart.yaml' -type f -exec sed -i "s#version: ${{ inputs.oldversion }}#version: ${{ inputs.newversion }}#g" {} \;
53-
find microservices-connector/helm/ -name 'Chart.yaml' -type f -exec sed -i "s#appVersion: \"${{ inputs.oldappversion }}\"#appVersion: \"${{ inputs.newappversion }}\"#g" {} \;
48+
find microservices-connector/helm/ -name '*values.yaml' -type f -exec sed -i "s#tag: \"latest\"#tag: \"${imageversion}\"#g" {} \;
5449
find microservices-connector/helm/ -name 'Chart.yaml' -type f -exec sed -i "s#version: ${{ inputs.oldversion }}#version: ${{ inputs.newversion }}#g" {} \;
5550
sed -i "s|opea/gmcrouter:latest|opea/gmcrouter:$NEWTAG|g" microservices-connector/config/gmcrouter/gmc-router.yaml
5651
sed -i "s|opea/gmcmanager:latest|opea/gmcmanager:$NEWTAG|g" microservices-connector/config/manager/gmc-manager.yaml

.github/workflows/scripts/e2e/gmc_xeon_test.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ MODIFY_STEP_NAMESPACE="${APP_NAMESPACE}-modstep"
2121
WEBHOOK_NAMESPACE="${APP_NAMESPACE}-webhook"
2222

2323
function validate_gmc() {
24+
mkdir -p ${LOG_PATH}
2425
echo "validate audio-qna"
2526
validate_audioqa
2627

helm-charts/chatqna/Chart.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,31 +7,31 @@ description: The Helm chart to deploy ChatQnA
77
type: application
88
dependencies:
99
- name: tgi
10-
version: 0.9.0
10+
version: 1.0.0
1111
repository: "file://../common/tgi"
1212
- name: llm-uservice
13-
version: 0.9.0
13+
version: 1.0.0
1414
repository: "file://../common/llm-uservice"
1515
- name: tei
16-
version: 0.9.0
16+
version: 1.0.0
1717
repository: "file://../common/tei"
1818
- name: embedding-usvc
19-
version: 0.9.0
19+
version: 1.0.0
2020
repository: "file://../common/embedding-usvc"
2121
- name: teirerank
22-
version: 0.9.0
22+
version: 1.0.0
2323
repository: "file://../common/teirerank"
2424
- name: reranking-usvc
25-
version: 0.9.0
25+
version: 1.0.0
2626
repository: "file://../common/reranking-usvc"
2727
- name: redis-vector-db
28-
version: 0.9.0
28+
version: 1.0.0
2929
repository: "file://../common/redis-vector-db"
3030
- name: retriever-usvc
31-
version: 0.9.0
31+
version: 1.0.0
3232
repository: "file://../common/retriever-usvc"
3333
- name: data-prep
34-
version: 0.9.0
34+
version: 1.0.0
3535
repository: "file://../common/data-prep"
36-
version: 0.9.0
37-
appVersion: "v0.9"
36+
version: 1.0.0
37+
appVersion: "v1.0"

helm-charts/chatqna/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ image:
1111
repository: opea/chatqna
1212
pullPolicy: IfNotPresent
1313
# Overrides the image tag whose default is the chart appVersion.
14-
tag: ""
14+
tag: "latest"
1515

1616
port: 8888
1717
service:

helm-charts/codegen/Chart.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ description: The Helm chart to deploy CodeGen
77
type: application
88
dependencies:
99
- name: tgi
10-
version: 0.9.0
10+
version: 1.0.0
1111
repository: "file://../common/tgi"
1212
- name: llm-uservice
13-
version: 0.9.0
13+
version: 1.0.0
1414
repository: "file://../common/llm-uservice"
15-
version: 0.9.0
16-
appVersion: "v0.9"
15+
version: 1.0.0
16+
appVersion: "v1.0"

helm-charts/codegen/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ image:
1111
repository: opea/codegen
1212
pullPolicy: IfNotPresent
1313
# Overrides the image tag whose default is the chart appVersion.
14-
tag: ""
14+
tag: "latest"
1515

1616
port: 7778
1717
service:

helm-charts/codetrans/Chart.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ description: The Helm chart to deploy CodeTrans
77
type: application
88
dependencies:
99
- name: tgi
10-
version: 0.9.0
10+
version: 1.0.0
1111
repository: "file://../common/tgi"
1212
- name: llm-uservice
13-
version: 0.9.0
13+
version: 1.0.0
1414
repository: "file://../common/llm-uservice"
15-
version: 0.9.0
16-
appVersion: "v0.9"
15+
version: 1.0.0
16+
appVersion: "v1.0"

helm-charts/codetrans/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ image:
1212
repository: opea/codetrans
1313
pullPolicy: IfNotPresent
1414
# Overrides the image tag whose default is the chart appVersion.
15-
tag: ""
15+
tag: "latest"
1616

1717
port: 7777
1818
service:

helm-charts/common/asr/Chart.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ apiVersion: v2
55
name: asr
66
description: The Helm chart for deploying asr as microservice
77
type: application
8-
version: 0.9.0
8+
version: 1.0.0
99
# The asr microservice server version
10-
appVersion: "v0.9"
10+
appVersion: "v1.0"
1111
dependencies:
1212
- name: whisper
13-
version: 0.9.0
13+
version: 1.0.0
1414
repository: file://../whisper
1515
condition: autodependency.enabled

0 commit comments

Comments
 (0)