diff --git a/.woodpecker.yml b/.woodpecker.yml index bf6db0a..edb3b0f 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,15 +1,9 @@ pipeline: - frontend: + build: image: node:16-alpine commands: - - cd client - - yarn install - - yarn generate - when: - branch: none - backend: - image: golang:1.18-alpine - commands: - - apk add make go-bindata - - make -C server setup - - make -C server build + - apk add make + - apk add go + - apk add go-bindata + - make setup-code + - make build diff --git a/Makefile b/Makefile index e88c9ea..0be8835 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,9 @@ info: @echo available targets: @perl -ne 'm/^([\w\-]+):/ && print(" $$1\n");' Makefile -setup: +setup: check-tools setup-code + +check-tools: @echo "I checking for tools" @for binary in go tmux node yarn npx podman; do \ echo -n " $$binary: " ; \ @@ -16,6 +18,8 @@ setup: exit 1 ;\ fi ;\ done + +setup-code: @echo "I installing client dependencies" ( cd client && yarn install ) @echo "I installing server dependencies"