client/.drone.yml
Artem Anufrij 0d9a70f839
Some checks reported errors
continuous-integration/drone/push Build encountered an error
drone docker
2023-02-13 23:37:08 +01:00

30 lines
684 B
YAML

kind: pipeline
name: default
steps:
- name: build
image: node:latest
commands:
- sed -i '/"electron":/d' ./package.json
- sed -i '/"electron-builder":/d' ./package.json
- sed -i '/"express":/d' ./package.json
- npm install
- npm run build
- name: docker-build
image: docker
volumes:
- source: /var/run/docker.sock
target: /var/run/docker.sock
privileged: true
commands:
- docker build -t code.anufrij.de/webplay/client:latest ./docker
- name: docker-test
image: docker
commands:
- docker run code.anufrij.de/webplay/client:latest npm test
- name: docker-publish
image: docker