42 lines
823 B
YAML
42 lines
823 B
YAML
|
|
kind: pipeline
|
|
name: default
|
|
|
|
steps:
|
|
- name: testing
|
|
image: golang:1.12
|
|
commands:
|
|
- go get -u ./...
|
|
- go build -u ./...
|
|
- go test ./...
|
|
|
|
- name: publish
|
|
image: plugins/docker
|
|
settings:
|
|
repo: registry.stuifzandapp.com/wiki
|
|
registry: registry.stuifzandapp.com
|
|
username:
|
|
from_secret: docker_username
|
|
password:
|
|
from_secret: docker_password
|
|
|
|
- name: deploy
|
|
image: appleboy/drone-ssh
|
|
settings:
|
|
host: wiki.p83.nl
|
|
username: wiki
|
|
ssh_key:
|
|
from_secret: ssh_key
|
|
script:
|
|
- cd /home/wiki/wiki
|
|
- docker-compose pull web
|
|
- docker-compose up -d
|
|
|
|
- name: notify
|
|
image: plugins/webhook
|
|
settings:
|
|
debug: true
|
|
secrets:
|
|
- source: result_webhook
|
|
target: plugin_urls
|