feat: use single pipeline for front- and backend
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
parent
884304a33f
commit
93c5e555ad
@ -1,15 +1,9 @@
|
|||||||
pipeline:
|
pipeline:
|
||||||
frontend:
|
build:
|
||||||
image: node:16-alpine
|
image: node:16-alpine
|
||||||
commands:
|
commands:
|
||||||
- cd client
|
- apk add make
|
||||||
- yarn install
|
- apk add go
|
||||||
- yarn generate
|
- apk add go-bindata
|
||||||
when:
|
- make setup-code
|
||||||
branch: none
|
- make build
|
||||||
backend:
|
|
||||||
image: golang:1.18-alpine
|
|
||||||
commands:
|
|
||||||
- apk add make go-bindata
|
|
||||||
- make -C server setup
|
|
||||||
- make -C server build
|
|
||||||
|
6
Makefile
6
Makefile
@ -7,7 +7,9 @@ info:
|
|||||||
@echo available targets:
|
@echo available targets:
|
||||||
@perl -ne 'm/^([\w\-]+):/ && print(" $$1\n");' Makefile
|
@perl -ne 'm/^([\w\-]+):/ && print(" $$1\n");' Makefile
|
||||||
|
|
||||||
setup:
|
setup: check-tools setup-code
|
||||||
|
|
||||||
|
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: " ; \
|
||||||
@ -16,6 +18,8 @@ setup:
|
|||||||
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"
|
||||||
|
Loading…
Reference in New Issue
Block a user