mirror of
https://git.kh3group.com/georgebiri/kh3_website.git
synced 2026-10-16 20:41:47 +00:00
Compare commits
2 commits
68fcabfabd
...
ebf88177ce
| Author | SHA1 | Date | |
|---|---|---|---|
| ebf88177ce | |||
| c7df029881 |
1 changed files with 9 additions and 8 deletions
17
.drone.yml
17
.drone.yml
|
|
@ -5,6 +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
|
||||
|
|
@ -14,6 +17,9 @@ steps:
|
|||
# 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
|
||||
|
|
@ -21,14 +27,9 @@ steps:
|
|||
- name: website-data
|
||||
path: /host-target
|
||||
commands:
|
||||
# Install git-lfs in the container
|
||||
- apk add --no-cache git git-lfs
|
||||
# Initialize LFS and pull LFS files
|
||||
- git lfs install
|
||||
- git lfs pull
|
||||
# Then copy all files (including LFS files)
|
||||
- cp -a . /host-target
|
||||
- chmod -R 777 /host-target
|
||||
# Verify deployment was successful
|
||||
- ls -la /host-target
|
||||
- echo "Deployment completed successfully"
|
||||
|
||||
volumes:
|
||||
- name: website-data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue