chore(ci): implement DroneCI [skip ci]
This commit is contained in:
parent
2ce9b9bec2
commit
5353a79536
|
@ -0,0 +1,51 @@
|
|||
kind: pipeline
|
||||
type: docker
|
||||
|
||||
name: publish
|
||||
|
||||
steps:
|
||||
- name: build-push
|
||||
image: plugins/docker
|
||||
settings:
|
||||
repo: ghcr.io/datahearth/ddnsclient
|
||||
registry: ghcr.io
|
||||
username:
|
||||
from_secret: ghcr_username
|
||||
password:
|
||||
from_secret: ghcr_password
|
||||
auto_tag: true
|
||||
when:
|
||||
branch:
|
||||
- master
|
||||
event:
|
||||
include:
|
||||
- push
|
||||
- tag
|
||||
|
||||
---
|
||||
|
||||
kind: pipeline
|
||||
type: docker
|
||||
|
||||
name: build-and-test
|
||||
|
||||
steps:
|
||||
- name: build-testing-pr
|
||||
image: golang
|
||||
commands:
|
||||
- go build ./cmd/main.go
|
||||
- go test
|
||||
when:
|
||||
event:
|
||||
- pull_request
|
||||
|
||||
- name: build-testing-master
|
||||
image: golang
|
||||
commands:
|
||||
- go build ./cmd/main.go
|
||||
- go test
|
||||
when:
|
||||
branch:
|
||||
- master
|
||||
event:
|
||||
- push
|
Loading…
Reference in New Issue