Compare commits

..

2 commits

Author SHA1 Message Date
2e98e6cc02 refactor: streamline .drone.yml for improved readability and maintainability
Some checks failed
continuous-integration/drone/push Build is failing
2025-09-16 18:58:39 -07:00
de2745e433 Update deployment configuration to support Git LFS 2025-09-16 18:55:28 -07:00

View file

@ -3,23 +3,28 @@ type: docker
name: deploy
steps:
- name: build
image: node:18-alpine
commands:
- npm ci || npm install
- npm run build || npm build
- name: build
image: node:18-alpine
commands:
- npm ci || npm install
- npm run build || npm build
- name: sync-files
image: alpine:latest
volumes:
- name: website-data
path: /host-target
commands:
- cp -a . /host-target
- chmod -R 777 /host-target
- name: sync-files
image: alpine:latest
volumes:
- name: website-data
path: /host-target
commands:
# Install git-lfs in the container
- apk add --no-cache git git-lfs
# Initialize LFS and pull LFS files
- git lfs install
- git lfs pull
# Then copy all files (including LFS files)
- cp -a . /host-target
- chmod -R 777 /host-target
volumes:
- name: website-data
host:
path: /root/kh3website/data/html
- name: website-data
host:
path: /root/kh3website/data/html