👷 Created Drone CI config

This commit is contained in:
Maxim Lebedev 2023-03-15 05:26:15 +06:00
parent d0a00f0331
commit 28a1498f76
Signed by: toby3d
GPG Key ID: 1F14E25B7C119FC5
1 changed files with 49 additions and 0 deletions

49
build/ci/drone.yml Normal file
View File

@ -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: {}