client/.drone.yml
Artem Anufrij c89ed9e54e
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
drone: exclude pr from docker build
2023-02-17 22:42:45 +01:00

30 lines
670 B
YAML

kind: pipeline
name: default
steps:
- name: frontend-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: plugins/docker
settings:
registry: code.anufrij.de
repo: code.anufrij.de/webplay/client
tags: latest
dockerfile: ./docker/Dockerfile
username:
from_secret: username
password:
from_secret: password
when:
branch:
- main
event:
exclude:
- pull_request