-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit introduces the Anexia webhook as an webhook provider for the externalDNS project.
- Loading branch information
1 parent
09e06a2
commit 65a2eaf
Showing
25 changed files
with
2,842 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
policies: | ||
- type: commit | ||
spec: | ||
header: | ||
length: 200 | ||
imperative: true | ||
case: lower | ||
invalidLastCharacters: . | ||
body: | ||
required: false | ||
dco: false | ||
gpg: false | ||
spellcheck: | ||
locale: US | ||
maximumOfOneCommit: false | ||
conventional: | ||
types: | ||
- refactor | ||
- perf | ||
- chore | ||
- test | ||
- docs | ||
- no_type | ||
scopes: | ||
- release | ||
- deps | ||
- ci | ||
descriptionLength: 100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: gomod | ||
directory: / | ||
schedule: | ||
interval: daily | ||
- package-ecosystem: github-actions | ||
directory: / | ||
schedule: | ||
interval: daily | ||
- package-ecosystem: docker | ||
directory: / | ||
schedule: | ||
interval: daily |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,150 @@ | ||
--- | ||
name: Verify | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: read | ||
pull-requests: read | ||
packages: read | ||
id-token: write | ||
|
||
env: | ||
GO111MODULE: "on" | ||
|
||
jobs: | ||
conform: | ||
runs-on: ubuntu-latest | ||
name: Conform | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: siderolabs/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
lint_provider: | ||
runs-on: ubuntu-latest | ||
name: Lint Provider | ||
strategy: | ||
max-parallel: 4 | ||
matrix: | ||
go-version: [1.22.x] | ||
golangci-lint-version: [v1.54.2] | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: "${{ matrix.go-version }}" | ||
|
||
- name: Lint Provider | ||
uses: golangci/golangci-lint-action@v5 | ||
with: | ||
version: "${{ matrix.golangci-lint-version }}" | ||
args: -c .golangci.yml | ||
|
||
- name: Vet Provider | ||
run: | | ||
go vet ./... | ||
test: | ||
runs-on: ubuntu-latest | ||
name: Unit Tests | ||
strategy: | ||
max-parallel: 4 | ||
matrix: | ||
go-version: [1.22.x] | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: "${{ matrix.go-version }}" | ||
|
||
- name: Run Tests | ||
run: | | ||
make test | ||
- run: | | ||
go install github.com/mattn/goveralls@latest | ||
goveralls -coverprofile=covprofile -service=github | ||
env: | ||
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
dockerfile_lint: | ||
runs-on: ubuntu-latest | ||
name: Lint Dockerfile | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Lint Dockerfile | ||
uses: hadolint/[email protected] | ||
with: | ||
dockerfile: Dockerfile | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
name: Build Provider and Container | ||
needs: | ||
- lint_provider | ||
- dockerfile_lint | ||
- test | ||
strategy: | ||
max-parallel: 4 | ||
matrix: | ||
go-version: [1.22.x] | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: "${{ matrix.go-version }}" | ||
|
||
- name: Install cosign | ||
uses: sigstore/[email protected] | ||
- name: Download Syft | ||
uses: anchore/sbom-action/[email protected] | ||
|
||
- name: Setup QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
- name: Setup Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Release via GoReleaser | ||
uses: goreleaser/goreleaser-action@v5 | ||
with: | ||
args: -p 3 release --snapshot --clean --skip=publish --timeout 60m0s | ||
version: latest | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
CI_COMMIT_TIMESTAMP: ${{ github.event.pull_request.updated_at }} | ||
CI_COMMIT_SHA: ${{ github.sha }} | ||
CI_COMMIT_TAG: ${{ github.sha }}-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
--- | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- v* | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
packages: write | ||
id-token: write | ||
|
||
env: | ||
GO111MODULE: "on" | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
name: Release | ||
outputs: | ||
release_created: ${{ steps.release.outputs.release_created }} | ||
tag_name: ${{ steps.release.outputs.tag_name }} | ||
|
||
steps: | ||
- uses: google-github-actions/release-please-action@v4 | ||
id: release | ||
|
||
provider: | ||
if: needs.release.outputs.release_created | ||
runs-on: ubuntu-latest | ||
name: Publish Provider | ||
needs: | ||
- release | ||
strategy: | ||
max-parallel: 4 | ||
matrix: | ||
go-version: [1.22.x] | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: "${{ matrix.go-version }}" | ||
|
||
- name: Install cosign | ||
uses: sigstore/[email protected] | ||
- name: Download Syft | ||
uses: anchore/sbom-action/[email protected] | ||
|
||
- name: Setup QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
- name: Setup Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Login to ghcr.io | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Release via GoReleaser | ||
uses: goreleaser/goreleaser-action@v5 | ||
with: | ||
args: -p 3 release --clean --timeout 60m0s | ||
version: latest | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
CI_COMMIT_TIMESTAMP: ${{ github.event.repository.updated_at }} | ||
CI_COMMIT_SHA: ${{ github.sha }} | ||
CI_COMMIT_TAG: ${{ needs.release.outputs.tag_name }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.idea/ | ||
.vscode/ | ||
build/ | ||
dist/ | ||
reports/ | ||
|
||
covprofile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
linters: | ||
enable: | ||
- errcheck | ||
- revive | ||
- govet | ||
- ineffassign | ||
- lll | ||
- gosimple | ||
- staticcheck | ||
- unused | ||
- misspell | ||
- nakedret | ||
- unconvert | ||
- unused | ||
enable-all: false | ||
linters-settings: | ||
lll: | ||
line-length: 250 | ||
run: | ||
timeout: 10m |
Oops, something went wrong.