2023-02-08 12:37:55 +01:00
|
|
|
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
|
2023-02-13 22:25:11 +01:00
|
|
|
- npm run build
|
|
|
|
|
2023-02-13 22:37:20 +01:00
|
|
|
- name: docker-build
|
2023-02-13 22:25:11 +01:00
|
|
|
image: docker
|
2023-02-13 23:12:36 +01:00
|
|
|
stdin_open: true
|
|
|
|
tty: true
|
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
2023-02-13 22:37:20 +01:00
|
|
|
commands:
|
2023-02-13 23:12:36 +01:00
|
|
|
- docker build -t code.anufrij.de/webplay/client:latest ./docker
|
|
|
|
|
2023-02-13 22:58:34 +01:00
|
|
|
|
|
|
|
- name: docker-test
|
|
|
|
image: docker
|
|
|
|
commands:
|
2023-02-13 23:12:36 +01:00
|
|
|
- docker run code.anufrij.de/webplay/client:latest npm test
|
2023-02-13 23:10:15 +01:00
|
|
|
|
|
|
|
- name: docker-publish
|
|
|
|
image: docker
|