update:测试新版镜像自动化编译

This commit is contained in:
hrz 2025-03-08 02:05:49 +08:00
parent d025d1228f
commit d878d5ec9d
2 changed files with 14 additions and 14 deletions

View file

@ -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

View file

@ -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