mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-29 05:09:46 +01:00
update:测试新版镜像自动化编译
This commit is contained in:
parent
d025d1228f
commit
d878d5ec9d
2 changed files with 14 additions and 14 deletions
26
.github/workflows/docker-image.yml
vendored
26
.github/workflows/docker-image.yml
vendored
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue