client/.drone.yml
Artem Anufrij 6b90eb7cdf
Some checks reported errors
continuous-integration/drone/push Build encountered an error
„.drone.yml“ ändern
2023-02-13 23:00:04 +01:00

24 lines
570 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
commands:
- docker build -t myimage:$DRONE_BUILD_NUMBER ./docker
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- name: docker-test
image: docker
commands:
- docker run myimage:$DRONE_BUILD_NUMBER npm test