mirror of
https://git.kh3group.com/georgebiri/kh3_website.git
synced 2026-07-02 07:03:46 +00:00
Refactor Drone CI configuration to streamline build and deployment steps, removing unnecessary git-lfs commands and simplifying file synchronization.
This commit is contained in:
parent
10e2de308d
commit
324103a9fa
1 changed files with 3 additions and 15 deletions
18
.drone.yml
18
.drone.yml
|
|
@ -5,21 +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
|
||||
# Initialize LFS and pull LFS files
|
||||
- git lfs install
|
||||
- git lfs pull
|
||||
# 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
|
||||
|
|
@ -27,9 +15,9 @@ steps:
|
|||
- name: website-data
|
||||
path: /host-target
|
||||
commands:
|
||||
# Verify deployment was successful
|
||||
- ls -la /host-target
|
||||
- echo "Deployment completed successfully"
|
||||
- cp -a . /host-target
|
||||
|
||||
- chmod -R 777 /host-target
|
||||
|
||||
volumes:
|
||||
- name: website-data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue