mirror of
https://git.kh3group.com/georgebiri/kh3_website.git
synced 2026-07-02 06:23:44 +00:00
Enhance Drone CI configuration by adding volume for website data, updating build commands, and including verification steps for deployment success.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
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:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: node:18-alpine
|
image: node:18-alpine
|
||||||
|
volumes:
|
||||||
|
- name: website-data
|
||||||
|
path: /host-target
|
||||||
commands:
|
commands:
|
||||||
- npm ci || npm install
|
- npm ci || npm install
|
||||||
- npm run build || npm build
|
- npm run build
|
||||||
|
- cp -a . /host-target
|
||||||
|
- chmod -R 777 /host-target
|
||||||
|
|
||||||
- name: sync-files
|
- name: sync-files
|
||||||
image: alpine:latest
|
image: alpine:latest
|
||||||
|
|
@ -15,9 +20,10 @@ steps:
|
||||||
- name: website-data
|
- name: website-data
|
||||||
path: /host-target
|
path: /host-target
|
||||||
commands:
|
commands:
|
||||||
- cp -a . /host-target
|
- ls -la /host-target
|
||||||
|
- ls -la /host-target/assets/images/
|
||||||
- chmod -R 777 /host-target
|
- ls -la /host-target/assets/icons/
|
||||||
|
- echo "Deployment completed successfully"
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: website-data
|
- name: website-data
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue