khy-website/.drone.yml

24 lines
No EOL
480 B
YAML

kind: pipeline
type: docker
name: deploy
steps:
- name: sync-files
image: alpine:latest
volumes:
- name: website-data
path: /host-target
commands:
# 1. Repository is AUTOMATICALLY available in container
# Current directory = repository root
# 2. Copy ALL repository files to volume
- cp -a . /host-target
# 3. Set permissions
- chmod -R 777 /host-target
volumes:
- name: website-data
host:
path: /root/khy-website/data/html