diff --git a/.drone.yml b/.drone.yml index c571c73..25dd339 100644 --- a/.drone.yml +++ b/.drone.yml @@ -5,9 +5,6 @@ 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 @@ -17,9 +14,6 @@ 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 @@ -27,9 +21,14 @@ steps: - name: website-data path: /host-target commands: - # Verify deployment was successful - - ls -la /host-target - - echo "Deployment completed successfully" + # 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