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
# - cat upload.json | cut -d '"' -f 12
- name: build-web
image: ghcr.io/cirruslabs/flutter:3.13.9
volumes:
- name: build
path: /tmp/smartfit_build
commands:
- flutter build web --web-renderer canvaskit
- cp -r ./build/web/* /tmp/smartfit_build
# - mountpoint /tmp/smartfit_build
# - name: build-web
# image: ghcr.io/cirruslabs/flutter:3.13.9
# volumes:
# - name: build
# path: /tmp/smartfit_build
# commands:
# - flutter build web --web-renderer canvaskit
# - cp -r ./build/web/* /tmp/smartfit_build
# # - mountpoint /tmp/smartfit_build
- name: build-web-image
image: plugins/docker

@ -1,2 +1,10 @@
FROM httpd:2.4
COPY /build/ /usr/local/apache2/htdocs/
FROM ghcr.io/cirruslabs/flutter:3.16.0
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