Enhance Drone CI configuration by adding volume for website data, updating build commands, and including verification steps for deployment success.

This commit is contained in:
George Birikorang 2025-09-17 19:23:07 -07:00
parent f0d200e6ee
commit 8f3685cdb7

View file

@ -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