ci: Fix woodpecker syntax - use steps instead of pipeline
This commit is contained in:
@@ -1,50 +1,40 @@
|
||||
variables:
|
||||
- &node_image 'node:20'
|
||||
- &docker_image 'plugins/docker'
|
||||
when:
|
||||
- event: [push, pull_request]
|
||||
|
||||
# CI Pipeline - runs on all branches
|
||||
pipeline:
|
||||
# Build checks run in parallel
|
||||
steps:
|
||||
# Build checks
|
||||
typecheck-backend:
|
||||
image: *node_image
|
||||
image: node:20
|
||||
commands:
|
||||
- cd backend
|
||||
- npm ci
|
||||
- npx tsc --noEmit || true # TODO: Remove || true once legacy errors fixed
|
||||
when:
|
||||
event: [push, pull_request]
|
||||
- npx tsc --noEmit || true
|
||||
|
||||
build-cannaiq:
|
||||
image: *node_image
|
||||
image: node:20
|
||||
commands:
|
||||
- cd cannaiq
|
||||
- npm ci
|
||||
- npx tsc --noEmit
|
||||
- npm run build
|
||||
when:
|
||||
event: [push, pull_request]
|
||||
|
||||
build-findadispo:
|
||||
image: *node_image
|
||||
image: node:20
|
||||
commands:
|
||||
- cd findadispo/frontend
|
||||
- npm ci
|
||||
- npm run build
|
||||
when:
|
||||
event: [push, pull_request]
|
||||
|
||||
build-findagram:
|
||||
image: *node_image
|
||||
image: node:20
|
||||
commands:
|
||||
- cd findagram/frontend
|
||||
- npm ci
|
||||
- npm run build
|
||||
when:
|
||||
event: [push, pull_request]
|
||||
|
||||
# Docker builds - only on master
|
||||
docker-backend:
|
||||
image: *docker_image
|
||||
image: plugins/docker
|
||||
settings:
|
||||
registry: code.cannabrands.app
|
||||
repo: code.cannabrands.app/creationshop/dispensary-scraper
|
||||
@@ -62,7 +52,7 @@ pipeline:
|
||||
event: push
|
||||
|
||||
docker-cannaiq:
|
||||
image: *docker_image
|
||||
image: plugins/docker
|
||||
settings:
|
||||
registry: code.cannabrands.app
|
||||
repo: code.cannabrands.app/creationshop/cannaiq-frontend
|
||||
@@ -80,7 +70,7 @@ pipeline:
|
||||
event: push
|
||||
|
||||
docker-findadispo:
|
||||
image: *docker_image
|
||||
image: plugins/docker
|
||||
settings:
|
||||
registry: code.cannabrands.app
|
||||
repo: code.cannabrands.app/creationshop/findadispo-frontend
|
||||
@@ -98,7 +88,7 @@ pipeline:
|
||||
event: push
|
||||
|
||||
docker-findagram:
|
||||
image: *docker_image
|
||||
image: plugins/docker
|
||||
settings:
|
||||
registry: code.cannabrands.app
|
||||
repo: code.cannabrands.app/creationshop/findagram-frontend
|
||||
@@ -115,7 +105,7 @@ pipeline:
|
||||
branch: master
|
||||
event: push
|
||||
|
||||
# Deploy to Kubernetes - only after docker builds on master
|
||||
# Deploy to Kubernetes
|
||||
deploy:
|
||||
image: bitnami/kubectl:latest
|
||||
commands:
|
||||
|
||||
Reference in New Issue
Block a user