2019-05-20 14:32:39 +02:00
|
|
|
### Drone is a Continuous Delivery platform built on Docker
|
|
|
|
|
2020-09-24 21:01:44 +02:00
|
|
|
URL : <a href="https://drone.web.rug.nl" target="_blank">https://drone.web.rug.nl</a>
|
2019-05-20 14:32:39 +02:00
|
|
|
|
|
|
|
|
|
|
|
```
|
2020-09-24 21:01:44 +02:00
|
|
|
login with you're git credentials -> https://git.web.rug.nl
|
2019-05-20 14:32:39 +02:00
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
#### 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
|
2020-09-24 21:01:44 +02:00
|
|
|
kind: pipeline
|
|
|
|
type: kubernetes
|
|
|
|
name: drone
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: docker
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
2019-05-20 14:32:39 +02:00
|
|
|
registry: registry.webhosting.rug.nl
|
2020-09-24 21:01:44 +02:00
|
|
|
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
|
2019-05-20 14:32:39 +02:00
|
|
|
port: 25
|
|
|
|
skip_verify: true
|
2020-09-24 21:01:44 +02:00
|
|
|
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
|
2019-05-20 14:32:39 +02:00
|
|
|
EOF
|
|
|
|
````
|