36 lines
651 B
YAML
36 lines
651 B
YAML
kind: pipeline
|
|
name: default
|
|
steps:
|
|
- name: build
|
|
image: gcc
|
|
commands:
|
|
- apt-get -y update
|
|
- apt-get -y install libusb-1.0
|
|
- make
|
|
- name: docs
|
|
image: corentinaltepe/doxygen
|
|
commands:
|
|
- doxygen
|
|
- name: release-dev
|
|
image: alpine
|
|
volumes:
|
|
- name: output
|
|
path: /output
|
|
commands:
|
|
- mkdir -p /output/dev/
|
|
- cp -r docs/html/* /output/dev/docs/
|
|
|
|
- name: release-tag
|
|
image: alpine
|
|
volumes:
|
|
- name: output
|
|
path: /output
|
|
commands:
|
|
- cp -r /output/dev/ /output/${DRONE_SEMVER}/
|
|
when:
|
|
event:
|
|
- tag
|
|
volumes:
|
|
- name: output
|
|
host:
|
|
path: /home/jct/apps/http/share.jcktrue.dk/${DRONE_REPO_NAME}/ |