-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy path.drone.yml
42 lines (42 loc) · 1.04 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
workspace:
base: /go
path: src/github.com/iyacontrol/baa-cicd
pipeline:
build:
image: golang:latest
commands:
- go build -o baa-cicd
publish:
image: plugins/docker
registry: registry.xxx.com
repo: registry.xxx.com/test/baa-cicd
tags: latest
secrets: [ docker_username, docker_password ]
insecure: true
# scp:
# image: appleboy/drone-scp
# host: 10.xx.xx.170
# username: root
# key_path: deploy_rsa
# rm: true
# target:
# - /rc/local
# source:
# - baa-cicd
# ssh:
# image: appleboy/drone-ssh
# host:10.xx.xx.170
# username: root
# key_path: deploy_rsa
# script:
# - supervisorctl -c /rc/conf/supervisord.conf reload
notify:
image: plugins/slack
webhook: https://hooks.slack.com/services/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
channel: dev
template: >
{{#success build.status}}
build {{build.number}} succeeded. Good job.
{{else}}
build {{build.number}} failed. Fix me please.
{{/success}}