feat: separate pipeline steps for frontend and backend

This commit is contained in:
Settel 2022-11-05 22:00:14 +01:00
parent 34ef10c6e6
commit bb9cd154fb
2 changed files with 2 additions and 7 deletions

View File

@ -1,5 +1,4 @@
pipeline: pipeline:
frontend: frontend:
image: node:16-alpine image: node:16-alpine
commands: commands:
@ -12,4 +11,4 @@ pipeline:
commands: commands:
- apk add go-bindata - apk add go-bindata
- make -C server setup - make -C server setup
- make -C server build - make -C server build

View File

@ -7,9 +7,7 @@ info:
@echo available targets: @echo available targets:
@perl -ne 'm/^([\w\-]+):/ && print(" $$1\n");' Makefile @perl -ne 'm/^([\w\-]+):/ && print(" $$1\n");' Makefile
setup: check-tools setup-code setup
check-tools:
@echo "I checking for tools" @echo "I checking for tools"
@for binary in go tmux node yarn npx podman; do \ @for binary in go tmux node yarn npx podman; do \
echo -n " $$binary: " ; \ echo -n " $$binary: " ; \
@ -18,8 +16,6 @@ check-tools:
exit 1 ;\ exit 1 ;\
fi ;\ fi ;\
done done
setup-code:
@echo "I installing client dependencies" @echo "I installing client dependencies"
( cd client && yarn install ) ( cd client && yarn install )
@echo "I installing server dependencies" @echo "I installing server dependencies"