suckless-quark/.drone.yml
Armin Friedl 422a403d7c
Some checks failed
continuous-integration/drone/push Build is failing
Add minibomb for demonstration
2020-08-17 21:01:17 +02:00

37 lines
730 B
YAML

kind: pipeline
type: docker
name: default
steps:
- name: build
image: gcc
commands:
- make
- make minibomb
- name: run
image: debian
commands:
- cp quark /usr/local/bin
- useradd web
- mkdir -p web && cd web && echo "hello from quark" > index.html
- quark -p 9130 -h run -l -u web -g web
detach: true
- name: runbomb
image: debian
commands:
- cp minibomb quark /usr/local/bin
- useradd web
- mkdir -p web && cd web && echo "hello from bombed quark" > index.html
- su web -c minibomb
- quark -p 9131 -h runbomb -l -u web -g web
detach: true
- name: test
image: curlimages/curl
commands:
- sleep 20
- curl http://run:9130
- curl http://runbomb:9131