mirror of
https://git.kh3group.com/georgebiri/kh3_website.git
synced 2026-07-02 05:23:42 +00:00
All checks were successful
continuous-integration/drone/push Build is passing
31 lines
659 B
YAML
31 lines
659 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: deploy
|
|
|
|
steps:
|
|
- name: build
|
|
image: node:18-alpine
|
|
volumes:
|
|
- name: website-data
|
|
path: /host-target
|
|
commands:
|
|
- npm ci || npm install
|
|
- npm run build
|
|
- cp -a . /host-target
|
|
- chmod -R 777 /host-target
|
|
|
|
- name: sync-files
|
|
image: alpine:latest
|
|
volumes:
|
|
- name: website-data
|
|
path: /host-target
|
|
commands:
|
|
- ls -la /host-target
|
|
- ls -la /host-target/assets/images/
|
|
- ls -la /host-target/assets/icons/
|
|
- echo "Deployment completed successfully"
|
|
|
|
volumes:
|
|
- name: website-data
|
|
host:
|
|
path: /root/kh3website/data/html
|