chore(ci): implement DroneCI [skip ci]

This commit is contained in:
Antoine Langlois 2021-06-28 16:07:20 +02:00 committed by GitHub
parent 2ce9b9bec2
commit 5353a79536
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 52 additions and 0 deletions

51
.drone.yaml Normal file
View File

@ -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

View File

@ -1,3 +1,4 @@
[![Build Status](https://drone.antoine-langlois.net/api/badges/DataHearth/ddnsclient/status.svg)](https://drone.antoine-langlois.net/DataHearth/ddnsclient)
# DDNS Client
## How to install DDNS-CLIENT as dependency