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:
parent
f0d200e6ee
commit
8f3685cdb7
1 changed files with 10 additions and 4 deletions
14
.drone.yml
14
.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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue