From d878d5ec9d005f9a33312eb163d3e55b161ecd1e Mon Sep 17 00:00:00 2001 From: hrz <1710360675@qq.com> Date: Sat, 8 Mar 2025 02:05:49 +0800 Subject: [PATCH] =?UTF-8?q?update:=E6=B5=8B=E8=AF=95=E6=96=B0=E7=89=88?= =?UTF-8?q?=E9=95=9C=E5=83=8F=E8=87=AA=E5=8A=A8=E5=8C=96=E7=BC=96=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/docker-image.yml | 26 +++++++++++++------------- main/manager-api/Dockerfile | 2 +- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 53101101e..0718087d0 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -43,24 +43,24 @@ jobs: run: | echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV - # 构建 xiaozhi-server 镜像 - - name: Build and push xiaozhi-server - uses: docker/build-push-action@v6 - with: - context: ./main/xiaozhi-server - push: true - tags: | - ghcr.io/${{ github.repository }}:server_${{ env.VERSION }} - ghcr.io/${{ github.repository }}:server_latest - platforms: linux/amd64,linux/arm64 +# # 构建 xiaozhi-server 镜像 +# - name: Build and push xiaozhi-server +# uses: docker/build-push-action@v6 +# with: +# context: ./main/xiaozhi-server +# push: true +# tags: | +# ghcr.io/${{ github.repository }}:server_${{ env.VERSION }} +# ghcr.io/${{ github.repository }}:server_latest +# platforms: linux/amd64,linux/arm64 # 构建 manager-api 镜像 - - name: Build and push manager-api + - name: Build and push manager-web uses: docker/build-push-action@v6 with: context: ./main/manager-api push: true tags: | - ghcr.io/${{ github.repository }}:api_${{ env.VERSION }} - ghcr.io/${{ github.repository }}:api_latest + ghcr.io/${{ github.repository }}:web_${{ env.VERSION }} + ghcr.io/${{ github.repository }}:web_latest platforms: linux/amd64,linux/arm64 \ No newline at end of file diff --git a/main/manager-api/Dockerfile b/main/manager-api/Dockerfile index b41d25453..ed1ea5237 100644 --- a/main/manager-api/Dockerfile +++ b/main/manager-api/Dockerfile @@ -7,7 +7,7 @@ COPY ../manager-web . RUN npm run build # 第二阶段:构建Java后端 -FROM maven:3.8.6-openjdk-21 as api-builder +FROM maven:3-eclipse-temurin-21-alpine as api-builder WORKDIR /app COPY pom.xml . COPY src ./src