-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
50 lines (48 loc) · 1.02 KB
/
.drone.yml
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
39
40
41
42
43
44
45
46
47
48
49
50
kind: pipeline
type: docker
name: default
steps:
- name: build
image: golang
commands:
# - go test -v ./... # tests need elasticsearch
- go build
- name: publish
image: plugins/docker
environment:
DOCKER_BUILDKIT: 1
settings:
registry: docker.dasho.tv
username:
from_secret: docker_dasho_username
password:
from_secret: docker_dasho_password
repo: docker.dasho.tv/dashotv/scry
tags:
- latest
- ${DRONE_BUILD_NUMBER}
- name: deploy
image: appleboy/drone-ssh
settings:
host:
- 10.0.4.62
port: 22
username: deploy
key:
from_secret: ssh_key
command_timeout: 2m
script:
- cd /srv/dashotv && docker compose pull -q scry && docker compose up -d --no-deps scry
- name: slack
image: plugins/slack
settings:
webhook:
from_secret: slack_webhook
when:
status: [success, failure]
trigger:
branch:
- main
event:
- push
- custom