Final Drone CI configuration: proper build and deployment pipeline
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
George Birikorang 2025-09-17 09:57:01 -07:00
parent c7df029881
commit ebf88177ce

View file

@ -5,6 +5,9 @@ name: deploy
steps:
- name: build
image: node:18-alpine
volumes:
- name: website-data
path: /host-target
commands:
# Install git-lfs in the build container
- apk add --no-cache git git-lfs
@ -14,6 +17,9 @@ steps:
# Install dependencies and build
- npm ci || npm install
- npm run build || npm build
# Copy built files to deployment directory
- cp -a . /host-target
- chmod -R 777 /host-target
- name: sync-files
image: alpine:latest
@ -21,9 +27,9 @@ steps:
- name: website-data
path: /host-target
commands:
# Copy all files (LFS files already pulled in build step)
- cp -a . /host-target
- chmod -R 777 /host-target
# Verify deployment was successful
- ls -la /host-target
- echo "Deployment completed successfully"
volumes:
- name: website-data