ci: Fix woodpecker syntax - use steps instead of pipeline

This commit is contained in:
Kelly
2025-12-07 13:21:00 -07:00
parent 566872eae8
commit c779e6919f

View File

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