Skip to content

Commit fee9a37

Browse files
build: try to build web separately.
1 parent f988ec9 commit fee9a37

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/build-and-push.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,10 @@ jobs:
9292
password: ${{ secrets.FIT2CLOUD_REGISTRY_PASSWORD }}
9393
- name: Build Web
9494
run: |
95-
docker buildx build --target web-build --output type=local,dest=./web-build . -f installer/Dockerfile
96-
rm -rf ./ui && cp -r ./web-build/ui ./
95+
docker buildx build --target web-build --output type=local,dest=./web-build-output . -f installer/Dockerfile
96+
rm -rf ./ui
97+
cp -r ./web-build-output/ui ./
98+
rm -rf ./web-build-output
9799
- name: Docker Buildx (build-and-push)
98100
run: |
99101
sudo sync && echo 3 | sudo tee /proc/sys/vm/drop_caches && free -m
@@ -156,8 +158,10 @@ jobs:
156158
password: ${{ secrets.DOCKERHUB_TOKEN }}
157159
- name: Build Web
158160
run: |
159-
docker buildx build --target web-build --output type=local,dest=./web-build . -f installer/Dockerfile
160-
rm -rf ./ui && cp -r ./web-build/ui ./
161+
docker buildx build --target web-build --output type=local,dest=./web-build-output . -f installer/Dockerfile
162+
rm -rf ./ui
163+
cp -r ./web-build-output/ui ./
164+
rm -rf ./web-build-output
161165
- name: Docker Buildx (build-and-push)
162166
run: |
163167
sudo sync && echo 3 | sudo tee /proc/sys/vm/drop_caches && free -m

0 commit comments

Comments
 (0)