From c7df0298811150799e43efebc7f22cd3ee915c67 Mon Sep 17 00:00:00 2001 From: George Birikorang Date: Wed, 17 Sep 2025 09:42:06 -0700 Subject: [PATCH 1/2] chore: simplify .drone.yml by removing redundant git-lfs commands --- .drone.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.drone.yml b/.drone.yml index 25dd339..e4e3c5f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -21,12 +21,7 @@ steps: - 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) + # Copy all files (LFS files already pulled in build step) - cp -a . /host-target - chmod -R 777 /host-target From ebf88177ce278136deab733e604ad901365eeafc Mon Sep 17 00:00:00 2001 From: George Birikorang Date: Wed, 17 Sep 2025 09:57:01 -0700 Subject: [PATCH 2/2] Final Drone CI configuration: proper build and deployment pipeline --- .drone.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index e4e3c5f..c571c73 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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