36 lines
754 B
YAML
36 lines
754 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
|
|
stdin_open: true
|
|
tty: true
|
|
volumes:
|
|
- name: docker-socket
|
|
path: /var/run/docker.sock
|
|
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
|
|
|
|
volumes:
|
|
- name: docker-socket
|
|
host:
|
|
path: /var/run/docker.sock |