From 260d40ad67369aae36b96e3b9851cdb4b0fbbcc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jarno=20Kiesil=C3=A4inen?= Date: Sat, 2 Aug 2025 15:03:34 +0300 Subject: [PATCH] feat(ci): add Drone CI/CD pipeline for frontend --- .drone.yml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..596bdb4 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,42 @@ +kind: pipeline +type: docker +name: frontend-pipeline + +platform: + os: linux + arch: amd64 + +steps: + - name: lint-frontend + image: node:20-alpine + working_dir: /workspace/frontend + commands: + - npm ci + - npm run lint + volumes: + - name: node_modules + path: /workspace/frontend/node_modules + + - name: build-frontend + image: node:20-alpine + working_dir: /workspace/frontend + commands: + - npm ci + - npm run build + volumes: + - name: node_modules + path: /workspace/frontend/node_modules + depends_on: + - lint-frontend + +volumes: + - name: node_modules + temp: {} + +trigger: + branch: + - main + - develop + event: + - push + - pull_request \ No newline at end of file