Prepare CI/CD
All checks were successful
Prepare releases / build (push) Successful in 2m34s

This commit is contained in:
Dryusdan 2024-02-26 14:32:14 +01:00
commit 00d8a75215
Signed by: Dryusdan
GPG key ID: EC1438DDE24E27D7
5 changed files with 98 additions and 0 deletions

View file

@ -0,0 +1,29 @@
---
name: Prepare releases
run-name: Prepare_releases
on:
push:
tags:
- '*'
jobs:
build:
runs-on: go1.22
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Clone and build CoreDNS
run: |
git clone https://github.com/coredns/coredns.git
cp plugin.cfg coredns/
cd coredns
while read -r repository; do go get $repository; done < ../repositories.txt
go generate
go build
- name: Release CoreDNS
uses: https://gitea.com/actions/gitea-release-action@main
with:
files: |-
coredns/coredns
md5sum: true
sha256sum: true

10
LICENSE Normal file
View file

@ -0,0 +1,10 @@
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.
In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
For more information, please refer to <http://unlicense.org/>

3
README.md Normal file
View file

@ -0,0 +1,3 @@
# CoreDNS-netbox
A CI/CD for https://github.com/coredns/coredns with custom plugin

55
plugin.cfg Normal file
View file

@ -0,0 +1,55 @@
# Directives are registered in the order they should be executed.
#
# Ordering is VERY important. Every plugin will feel the effects of all other
# plugin below (after) them during a request, but they must not care what plugin
# above them are doing.
# How to rebuild with updated plugin configurations: Modify the list below and
# run `go generate && go build`
# The parser takes the input format of:
#
# <plugin-name>:<package-name>
# Or
# <plugin-name>:<fully-qualified-package-name>
#
# External plugin example:
#
# log:github.com/coredns/coredns/plugin/log
# Local plugin example:
# log:log
root:root
metadata:metadata
cancel:cancel
timeouts:timeouts
bufsize:bufsize
bind:bind
debug:debug
trace:trace
ready:ready
health:health
errors:errors
log:log
local:local
acl:acl
any:any
tsig:tsig
cache:cache
rewrite:rewrite
header:header
dnssec:dnssec
autopath:autopath
minimal:minimal
template:template
transfer:transfer
hosts:hosts
auto:auto
secondary:secondary
loop:loop
forward:forward
grpc:grpc
on:github.com/coredns/caddy/onevent
sign:sign
view:view
netbox:github.com/oz123/coredns-netbox-plugin

1
repositories.txt Normal file
View file

@ -0,0 +1 @@
github.com/oz123/coredns-netbox-plugin