mirror of
https://git.kh3group.com/georgebiri/kh3_website.git
synced 2026-10-16 23:31:47 +00:00
Compare commits
No commits in common. "2e98e6cc0293bbfd3b94edd633a59d3d39debfa9" and "bef8c25c0c402c7afbde24d87afdda3beb1de230" have entirely different histories.
2e98e6cc02
...
bef8c25c0c
1 changed files with 17 additions and 22 deletions
39
.drone.yml
39
.drone.yml
|
|
@ -3,28 +3,23 @@ type: docker
|
|||
name: deploy
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: node:18-alpine
|
||||
commands:
|
||||
- npm ci || npm install
|
||||
- npm run build || npm build
|
||||
- name: build
|
||||
image: node:18-alpine
|
||||
commands:
|
||||
- npm ci || npm install
|
||||
- npm run build || npm build
|
||||
|
||||
- name: sync-files
|
||||
image: alpine:latest
|
||||
volumes:
|
||||
- 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
|
||||
- name: sync-files
|
||||
image: alpine:latest
|
||||
volumes:
|
||||
- name: website-data
|
||||
path: /host-target
|
||||
commands:
|
||||
- cp -a . /host-target
|
||||
|
||||
- chmod -R 777 /host-target
|
||||
|
||||
volumes:
|
||||
- name: website-data
|
||||
host:
|
||||
path: /root/kh3website/data/html
|
||||
- name: website-data
|
||||
host:
|
||||
path: /root/kh3website/data/html
|
||||
Loading…
Add table
Add a link
Reference in a new issue