👷 Created Drone CI config
This commit is contained in:
parent
d0a00f0331
commit
28a1498f76
|
@ -0,0 +1,49 @@
|
|||
---
|
||||
kind: "pipeline"
|
||||
type: "docker"
|
||||
name: "default"
|
||||
|
||||
environment:
|
||||
CGO_ENABLED: 0
|
||||
|
||||
steps:
|
||||
- name: "test"
|
||||
image: "golang:alpine"
|
||||
volumes:
|
||||
- name: "modules"
|
||||
path: "/go/pkg/mod"
|
||||
commands:
|
||||
- "make check"
|
||||
|
||||
- name: "build"
|
||||
image: "golang:alpine"
|
||||
volumes:
|
||||
- name: "modules"
|
||||
path: "/go/pkg/mod"
|
||||
commands:
|
||||
- "make"
|
||||
depends_on:
|
||||
- "test"
|
||||
|
||||
- name: "delivery"
|
||||
image: "drillster/drone-rsync"
|
||||
settings:
|
||||
hosts:
|
||||
from_secret: "SSH_HOST_IP"
|
||||
key:
|
||||
from_secret: "SSH_PRIVATE_KEY"
|
||||
source: "./hub"
|
||||
target: "/etc/hub/"
|
||||
prescript:
|
||||
- "systemctl stop websub"
|
||||
script:
|
||||
- "systemctl start websub"
|
||||
depends_on:
|
||||
- build
|
||||
when:
|
||||
branch:
|
||||
- master
|
||||
|
||||
volumes:
|
||||
- name: modules
|
||||
temp: {}
|
Loading…
Reference in New Issue