From 039ad033a37c2d0f6c6782a7dd6072973772b824 Mon Sep 17 00:00:00 2001 From: Nimbus318 <136771156+Nimbus318@users.noreply.github.com> Date: Mon, 30 Sep 2024 15:06:21 +0800 Subject: [PATCH] fix deployment and ci --- .github/workflows/{ci.yml => ci.yaml} | 3 ++- docs/installation/helm/index.md | 10 +++++++--- server/Dockerfile | 2 -- 3 files changed, 9 insertions(+), 6 deletions(-) rename .github/workflows/{ci.yml => ci.yaml} (97%) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yaml similarity index 97% rename from .github/workflows/ci.yml rename to .github/workflows/ci.yaml index f13f202..fa2239d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yaml @@ -56,8 +56,9 @@ jobs: - name: Run golint uses: golangci/golangci-lint-action@v6 with: + working-directory: ./server version: v1.60 - args: "--timeout=5m ./server/..." + args: "--timeout=5m" build-and-push-backend: name: Build and Push Backend Image diff --git a/docs/installation/helm/index.md b/docs/installation/helm/index.md index 07f7656..b794f49 100644 --- a/docs/installation/helm/index.md +++ b/docs/installation/helm/index.md @@ -88,13 +88,17 @@ When you create a new namespace in Kubernetes, you can better organize, allocate 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. - > It is **critical** to modify the values accordingly before deploying. +3. Before deploying, ensure that you configure the `values.yaml` file to match your cluster’s 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) + > _**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: ```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: diff --git a/server/Dockerfile b/server/Dockerfile index 4debb7e..9165b2b 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -2,8 +2,6 @@ FROM golang:1.23.1 AS builder WORKDIR /src -ENV GOPROXY=https://goproxy.cn,direct - COPY . . RUN apt-get update && apt-get install -y --no-install-recommends protobuf-compiler