23 lines
604 B
YAML
23 lines
604 B
YAML
|
pipeline:
|
||
|
build:
|
||
|
image: golang
|
||
|
commands:
|
||
|
- go get -d ./...
|
||
|
- go build .
|
||
|
publish:
|
||
|
image: plugins/docker
|
||
|
repo: klmp200/alfred
|
||
|
secrets: [ docker_username, docker_password ]
|
||
|
when:
|
||
|
branch: master
|
||
|
deploy:
|
||
|
image: appleboy/drone-ssh
|
||
|
host:
|
||
|
- ollivander.diagon-alley
|
||
|
username: dronedeploy
|
||
|
secrets: [ ssh_password ]
|
||
|
envs: [ ssh_password ]
|
||
|
script:
|
||
|
- echo $SSH_PASSWORD | sudo -S systemctl restart alfred-bot
|
||
|
when:
|
||
|
branch: master
|