meta: add CI to build debian package (#1)
Build Coredns with netboxdns plugin / build (push) Successful in 4s
Build Coredns with netboxdns plugin / build (push) Successful in 4s
This change adds a CI job that builds the latest version of coredns with this plugin installed and uploads it to the gitea package registry. The package version is calculated from the coredns version and the current timestamp (to the minute). Reviewed-on: #1
This commit was merged in pull request #1.
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
name: Build Coredns with netboxdns plugin
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v5
|
||||
|
||||
- name: Restore build state
|
||||
uses: actions/cache/restore@v4
|
||||
with:
|
||||
path: .build-state
|
||||
key: coredns-netboxdns-${{ runner.os }}
|
||||
|
||||
- name: Build
|
||||
env:
|
||||
CI_REGISTRY_USER: ${{ secrets.CI_REGISTRY_USER }}
|
||||
CI_REGISTRY_PASSWORD: ${{ secrets.CI_REGISTRY_PASSWORD }}
|
||||
run: ./ci/build.sh
|
||||
|
||||
- name: Save build metadata
|
||||
uses: actions/cache/save@v4
|
||||
with:
|
||||
path: .build-state
|
||||
key: coredns-netboxdns-${{ runner.os }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user