fej/.woodpecker.yml

44 lines
1.1 KiB
YAML

pipeline:
build-frontend:
image: node:15-alpine3.13
pull: true
commands:
- cd web
- yarn install
- yarn run build
lint-frontend:
image: node:15-alpine3.13
commands:
- cd web
- yarn run lint
# This doesn't require compiling anything
lint-backend:
image: chewingbever/fej-builder:latest
pull: true
commands:
- cargo fmt -- --check
# publish-builder:
# image: plugins/docker
# repo: chewingbever/fej-builder
# dockerfile: docker/Dockerfile.builder
# tag: [ latest ]
# secrets: [ docker_username, docker_password ]
# when:
# branch: develop
# event: push
# Backend cicd jobs are disabled until we can figure out a way to cache stuff
# test-backend:
# image: chewingbever/fej-builder:latest
# # Always update the builder image
# pull: true
# commands:
# - cargo test
# TODO build dev & rel image, deploy these images
# branches: [ master, develop ]