ekster/.drone.yml

23 lines
676 B
YAML
Raw Normal View History

2018-02-16 21:13:01 +00:00
pipeline:
build:
image: golang
commands:
2018-05-16 15:27:40 +00:00
- go get github.com/pstuifzand/microsub-server/cmd/eksterd
- go build github.com/pstuifzand/microsub-server/cmd/eksterd
2018-02-16 21:13:01 +00:00
publish:
image: plugins/docker
repo: registry.stuifzandapp.com/microsub-server
registry: registry.stuifzandapp.com
secrets: [ docker_username, docker_password ]
2018-02-16 22:11:37 +00:00
deploy:
image: appleboy/drone-ssh
host: microsub.stuifzandapp.com
2018-02-19 19:40:08 +00:00
username: microsub
2018-02-16 22:11:37 +00:00
secrets: ['ssh_key']
script:
2018-02-19 19:40:08 +00:00
- cd /home/microsub/microsub
2018-02-16 22:11:37 +00:00
- docker-compose pull web
- docker-compose up -d