Add drone.yml

This commit is contained in:
Peter Stuifzand 2018-01-29 21:47:02 +01:00
parent 8c2bef754b
commit 05a0114efb

23
.drone.yml Normal file
View File

@ -0,0 +1,23 @@
pipeline:
build:
image: golang
commands:
- go get github.com/pstuifzand/websub-hub/cmd/hubserver
- go build github.com/pstuifzand/websub-hub/cmd/hubserver
# publish:
# image: plugins/docker
# repo: registry.stuifzandapp.com/websub-hub
# registry: registry.stuifzandapp.com
# secrets: [ docker_username, docker_password ]
# deploy:
# image: appleboy/drone-ssh
# host: publog.stuifzandapp.com
# username: publog
# secrets: ['ssh_key']
# script:
# - cd /home/publog/publog
# - docker-compose pull
# - docker-compose up -d
# when:
# event: deployment
# environment: production