fix deployment and ci

main
Nimbus318 11 months ago
parent 0fc9c1ed6c
commit 039ad033a3

@ -56,8 +56,9 @@ jobs:
- name: Run golint - name: Run golint
uses: golangci/golangci-lint-action@v6 uses: golangci/golangci-lint-action@v6
with: with:
working-directory: ./server
version: v1.60 version: v1.60
args: "--timeout=5m ./server/..." args: "--timeout=5m"
build-and-push-backend: build-and-push-backend:
name: Build and Push Backend Image name: Build and Push Backend Image

@ -88,13 +88,17 @@ When you create a new namespace in Kubernetes, you can better organize, allocate
helm search repo hami-charts/hami-webui helm search repo hami-charts/hami-webui
``` ```
3. Before proceeding, navigate to the [Configuration Guide for HAMi-WebUI Helm Chart](../../../charts/hami-webui/README.md#configuration-guide-for-hamiwebui-helm-chart), where you'll find instructions on configuring the necessary `values.yaml` based on your cluster's requirements. 3. Before deploying, ensure that you configure the `values.yaml` file to match your clusters requirements. For detailed instructions, refer to the [Configuration Guide for HAMi-WebUI Helm Chart](../../../charts/hami-webui/README.md#configuration-guide-for-hamiwebui-helm-chart)
> It is **critical** to modify the values accordingly before deploying. > _**Important**_: You must adjust the values.yaml before proceeding with the deployment.
Download the `values.yaml` file from the Helm Charts repository:
https://github.com/Project-HAMi/HAMi-WebUI/blob/main/charts/hami-webui/values.yaml
4. Once you've adjusted the `values.yaml`, run the following command to deploy the HAMi-WebUI Helm Chart inside your namespace: 4. Once you've adjusted the `values.yaml`, run the following command to deploy the HAMi-WebUI Helm Chart inside your namespace:
```bash ```bash
helm install my-hami-webui hami-charts/hami-webui --namespace hami helm install my-hami-webui hami-charts/hami-webui --namespace hami -f values.yaml
``` ```
Where: Where:

@ -2,8 +2,6 @@ FROM golang:1.23.1 AS builder
WORKDIR /src WORKDIR /src
ENV GOPROXY=https://goproxy.cn,direct
COPY . . COPY . .
RUN apt-get update && apt-get install -y --no-install-recommends protobuf-compiler RUN apt-get update && apt-get install -y --no-install-recommends protobuf-compiler

Loading…
Cancel
Save