suckless-quark/.drone.yml

38 lines
730 B
YAML
Raw Normal View History

2020-08-16 21:19:36 +00:00
kind: pipeline
type: docker
name: default
steps:
- name: build
image: gcc
commands:
- make
2020-08-16 22:55:45 +00:00
- make minibomb
2020-08-16 21:19:36 +00:00
- name: run
image: debian
commands:
- cp quark /usr/local/bin
2020-08-16 22:55:45 +00:00
- useradd web
2020-08-16 21:19:36 +00:00
- mkdir -p web && cd web && echo "hello from quark" > index.html
- quark -p 9130 -h run -l -u web -g web
detach: true
2020-08-16 22:55:45 +00:00
- 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
2020-08-16 21:19:36 +00:00
- name: test
image: curlimages/curl
commands:
2020-08-16 22:55:45 +00:00
- sleep 20
2020-08-16 21:19:36 +00:00
- curl http://run:9130
2020-08-16 22:55:45 +00:00
- curl http://runbomb:9131