forked from git.klmp200.net/ALFRED
36 lines
998 B
YAML
36 lines
998 B
YAML
pipeline:
|
|
build:
|
|
image: golang
|
|
group: build
|
|
commands:
|
|
- go get -v -d ./...
|
|
- sh build_plugins.sh
|
|
- go build .
|
|
test:
|
|
image: golang
|
|
group: build
|
|
secrets: [ test_api_token ]
|
|
environment: [ test_api_token ]
|
|
commands:
|
|
- go get -v -d ./...
|
|
- sh build_plugins.sh
|
|
- go test . ./commands ./settings ./plugin_manager/ ./shared/
|
|
publish:
|
|
image: plugins/docker
|
|
repo: klmp200/alfred
|
|
secrets: [ docker_username, docker_password ]
|
|
when:
|
|
branch: master
|
|
event: push
|
|
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
|
|
event: push |