-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.drone.yml
More file actions
38 lines (37 loc) · 808 Bytes
/
.drone.yml
File metadata and controls
38 lines (37 loc) · 808 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
kind: pipeline
type: docker
name: default
steps:
- name: test
image: golang:1.26-alpine
commands:
- apk add --no-cache gcc musl-dev sqlite-dev
- go test -mod=vendor -tags libsqlite3 -cover ./...
- name: publish
image: plugins/docker
settings:
repo: cjsaylor/chessbot
username:
from_secret: docker_username
password:
from_secret: docker_password
tags: latest
when:
branch: master
event: push
status: success
- name: deploy
image: appleboy/drone-ssh
settings:
host: box2.chris-saylor.com
username: root
port: 22
script:
- cd /root/chessbot && bash deploy.sh
key:
from_secret: ssh_key
when:
branch: master
event: push
status: success