remake web ci
continuous-integration/drone/push Build encountered an error Details

profile
remrem 2 years ago
parent f53fcc6f2e
commit 62ba004654

@ -18,15 +18,15 @@ steps:
# - curl -F "file=@$sfm_apk" https://anonfiles.me/api/v1/upload > upload.json # - curl -F "file=@$sfm_apk" https://anonfiles.me/api/v1/upload > upload.json
# - cat upload.json | cut -d '"' -f 12 # - cat upload.json | cut -d '"' -f 12
- name: build-web # - name: build-web
image: ghcr.io/cirruslabs/flutter:3.13.9 # image: ghcr.io/cirruslabs/flutter:3.13.9
volumes: # volumes:
- name: build # - name: build
path: /tmp/smartfit_build # path: /tmp/smartfit_build
commands: # commands:
- flutter build web --web-renderer canvaskit # - flutter build web --web-renderer canvaskit
- cp -r ./build/web/* /tmp/smartfit_build # - cp -r ./build/web/* /tmp/smartfit_build
# - mountpoint /tmp/smartfit_build # # - mountpoint /tmp/smartfit_build
- name: build-web-image - name: build-web-image
image: plugins/docker image: plugins/docker

@ -1,2 +1,10 @@
FROM httpd:2.4 FROM ghcr.io/cirruslabs/flutter:3.16.0
COPY /build/ /usr/local/apache2/htdocs/ RUN apt-get install php
RUN pwd
RUN ls
COPY ./ ./
WORKDIR ./
RUN flutter build web --renderer canvaskit
ENTRYPOINT php -S localhost:8080 -t ./build/web/

Loading…
Cancel
Save