website/docs/drone.md

59 lines
1.2 KiB
Markdown

### Drone is a Continuous Delivery platform built on Docker
URL : <a href="https://drone.web.rug.nl" target="_blank">https://drone.web.rug.nl</a>
```
login with you're git credentials -> https://git.web.rug.nl
```
#### Howto build
````
choose a repository from GIT
Enter the build
Go to the menu and add the secrets en registry
example :
docker_username = test
docker_password = secret
````
#### example drone.yml
````
cat > .drone.yml <<EOF
kind: pipeline
type: kubernetes
name: drone
steps:
- name: docker
image: plugins/docker
settings:
registry: registry.webhosting.rug.nl
repo: registry.webhosting.rug.nl/services/ssh-server-autofs
autotag: true
auto_tag_suffix: ssh
purge: true
username:
from_secret: docker_username
password:
from_secret: docker_password
- name: notify
image: drillster/drone-email
settings:
host: smtp.rug.nl
port: 25
skip_verify: true
from: drone@web.rug.nl
recipients:
- p.h.vos@rug.nl
- webhosting.cit@rug.nl
- name: notify-slack
image: plugins/slack
settings:
webhook: https://hooks.slack.com/services/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
channel: builds
EOF
````