build: try to build web separately.

This commit is contained in:
liqiang-fit2cloud 2025-08-20 17:41:27 +08:00
parent 474e4d843f
commit faf6f47c97

View File

@ -92,7 +92,7 @@ jobs:
password: ${{ secrets.FIT2CLOUD_REGISTRY_PASSWORD }} password: ${{ secrets.FIT2CLOUD_REGISTRY_PASSWORD }}
- name: Build Web - name: Build Web
run: | run: |
docker buildx build --target web-build --output type=local,dest=./web-build-output . -f installer/Dockerfile docker buildx build --no-cache --target web-build --output type=local,dest=./web-build-output . -f installer/Dockerfile
rm -rf ./ui rm -rf ./ui
cp -r ./web-build-output/ui ./ cp -r ./web-build-output/ui ./
rm -rf ./web-build-output rm -rf ./web-build-output
@ -158,7 +158,7 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build Web - name: Build Web
run: | run: |
docker buildx build --target web-build --output type=local,dest=./web-build-output . -f installer/Dockerfile docker buildx build --no-cache --target web-build --output type=local,dest=./web-build-output . -f installer/Dockerfile
rm -rf ./ui rm -rf ./ui
cp -r ./web-build-output/ui ./ cp -r ./web-build-output/ui ./
rm -rf ./web-build-output rm -rf ./web-build-output