mirror of
https://git.kh3group.com/georgebiri/kh3_website.git
synced 2026-10-24 22:25:03 +00:00
Compare commits
No commits in common. "ebf88177ce278136deab733e604ad901365eeafc" and "68fcabfabd7ccbb072c1763be15b372431bb503c" have entirely different histories.
ebf88177ce
...
68fcabfabd
1 changed files with 8 additions and 9 deletions
17
.drone.yml
17
.drone.yml
|
|
@ -5,9 +5,6 @@ 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:
|
||||||
# Install git-lfs in the build container
|
# Install git-lfs in the build container
|
||||||
- apk add --no-cache git git-lfs
|
- apk add --no-cache git git-lfs
|
||||||
|
|
@ -17,9 +14,6 @@ steps:
|
||||||
# Install dependencies and build
|
# Install dependencies and build
|
||||||
- npm ci || npm install
|
- npm ci || npm install
|
||||||
- npm run build || npm build
|
- npm run build || npm build
|
||||||
# Copy built files to deployment directory
|
|
||||||
- cp -a . /host-target
|
|
||||||
- chmod -R 777 /host-target
|
|
||||||
|
|
||||||
- name: sync-files
|
- name: sync-files
|
||||||
image: alpine:latest
|
image: alpine:latest
|
||||||
|
|
@ -27,9 +21,14 @@ steps:
|
||||||
- name: website-data
|
- name: website-data
|
||||||
path: /host-target
|
path: /host-target
|
||||||
commands:
|
commands:
|
||||||
# Verify deployment was successful
|
# Install git-lfs in the container
|
||||||
- ls -la /host-target
|
- apk add --no-cache git git-lfs
|
||||||
- echo "Deployment completed successfully"
|
# 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
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: website-data
|
- name: website-data
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue