C and C++ web framework. http://rapida.vilor.one/docs
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

89 lines
1.8 KiB

kind: pipeline
type: docker
name: development
when:
event: [ push ]
branch: [ dev ]
trigger:
branch:
- dev
steps:
- name: build
image: gcc:11-bullseye
commands:
- apt update -y
- apt install -y libfcgi-dev libfcgi-bin doxygen git
- git clone https://github.com/cesanta/mongoose.git
- cd mongoose && make install && cd ..
- make all DEBUG=1
- make docs
#- name: tests
# image: gcc:11-bullseye
# commands:
# - apt update -y
# - apt install -y libfcgi-dev libfcgi-bin catch2
# - make -j1 run_tests
# - ./run_tests
- name: deploy-docs
image: drillster/drone-rsync
settings:
hosts:
from_secret: deploy_docs_hosts
user:
from_secret: deploy_docs_user
key:
from_secret: deploy_docs_ssh_key
target:
from_secret: deploy_docs_dev_target
source: docs/dist/html/
delete: true
---
kind: pipeline
type: docker
name: production
when:
event: [ push ]
branch: [ master ]
trigger:
branch:
- master
steps:
- name: build
image: gcc:11-bullseye
commands:
- apt update -y
- apt install -y libfcgi-dev libfcgi-bin doxygen git
- git clone https://github.com/cesanta/mongoose.git
- cd mongoose && make install && cd ..
- make all DEBUG=1
- make docs
#- name: tests
# image: gcc:11-bullseye
# commands:
# - apt update -y
# - apt install -y libfcgi-dev libfcgi-bin catch2
# - make -j1 run_tests
# - ./run_tests
- name: deploy-docs
image: drillster/drone-rsync
settings:
hosts:
from_secret: deploy_docs_hosts
user:
from_secret: deploy_docs_user
key:
from_secret: deploy_docs_ssh_key
target:
from_secret: deploy_docs_target
source: docs/dist/html/
delete: true