Skip to content

Commit 1c01714

Browse files
committed
fix 修改为使用 Helm 部署应用程序
1 parent ab439a1 commit 1c01714

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

.github/workflows/deployment.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,21 @@ jobs:
3232
fi
3333
echo ::set-output name=VERSION::${VERSION}
3434
# TODO 修改为使用 Helm 部署应用程序
35+
- name: 'Deploy'
36+
uses: 'deliverybot/helm@v1'
37+
with:
38+
release: 'profiler-dev'
39+
namespace: 'profiler-system'
40+
chart: 'profiler'
41+
token: '${{ github.token }}'
42+
values: |
43+
image.tag: ${{ steps.get_version.outputs.VERSION }}
44+
value-files: >-
45+
[
46+
"values.dev.yaml"
47+
]
48+
env:
49+
KUBECONFIG_FILE: '${{ secrets.KUBE_CONFIG_DATA }}'
3550
- name: deploy to cluster
3651
uses: steebchen/[email protected]
3752
with: # defaults to latest kubectl binary version

charts/profiler/values.dev.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ image:
207207
repository: xyctruth/profiler
208208
pullPolicy: IfNotPresent
209209
# Overrides the image tag whose default is the chart appVersion.
210-
tag: "v0.2.5"
210+
tag: "latest"
211211

212212
imagePullSecrets: []
213213
nameOverride: ""

charts/profiler/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ image:
1919
repository: xyctruth/profiler
2020
pullPolicy: IfNotPresent
2121
# Overrides the image tag whose default is the chart appVersion.
22-
tag: "v0.2.5"
22+
tag: "v0.2.6"
2323

2424
imagePullSecrets: []
2525
nameOverride: ""

0 commit comments

Comments
 (0)