From 8f3685cdb7725b09e5a717b4e61d9d298cde8218 Mon Sep 17 00:00:00 2001 From: George Birikorang Date: Wed, 17 Sep 2025 19:23:07 -0700 Subject: [PATCH] Enhance Drone CI configuration by adding volume for website data, updating build commands, and including verification steps for deployment success. --- .drone.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index f53390c..d3c86b1 100644 --- a/.drone.yml +++ b/.drone.yml @@ -5,9 +5,14 @@ name: deploy steps: - name: build image: node:18-alpine + volumes: + - name: website-data + path: /host-target commands: - npm ci || npm install - - npm run build || npm build + - npm run build + - cp -a . /host-target + - chmod -R 777 /host-target - name: sync-files image: alpine:latest @@ -15,9 +20,10 @@ steps: - name: website-data path: /host-target commands: - - cp -a . /host-target - - - chmod -R 777 /host-target + - ls -la /host-target + - ls -la /host-target/assets/images/ + - ls -la /host-target/assets/icons/ + - echo "Deployment completed successfully" volumes: - name: website-data