drone ci configu*
This commit is contained in:
parent
41af5fb5cd
commit
4463eb2783
@ -1,4 +1,3 @@
|
||||
build.sh
|
||||
Dockerfile
|
||||
.git
|
||||
.idea
|
||||
|
51
.drone.yml
Normal file
51
.drone.yml
Normal file
@ -0,0 +1,51 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: staging
|
||||
|
||||
trigger:
|
||||
branches:
|
||||
- master
|
||||
event:
|
||||
- push
|
||||
|
||||
steps:
|
||||
- name: test
|
||||
image: golang:1.13.5
|
||||
commands:
|
||||
- go test ./...
|
||||
|
||||
- name: build
|
||||
image: plugins/docker
|
||||
settings:
|
||||
username:
|
||||
from_secret: dockerlogin
|
||||
password:
|
||||
from_secret: dockerpassword
|
||||
repo: llehouerou/zbbot
|
||||
tags: latest
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: ssh
|
||||
name: deploy
|
||||
|
||||
server:
|
||||
host:
|
||||
from_secret: host
|
||||
user:
|
||||
from_secret: username
|
||||
ssh_key:
|
||||
from_secret: ssh_key
|
||||
|
||||
clone:
|
||||
disable: true
|
||||
|
||||
steps:
|
||||
- name: deploy
|
||||
commands:
|
||||
- cd /home/laurent/docker/
|
||||
- docker-compose pull dnsupdater
|
||||
- docker-compose up -d dnsupdater
|
||||
|
||||
depends_on:
|
||||
- staging
|
Loading…
Reference in New Issue
Block a user