Skip to content

Commit 0771a5e

Browse files
committed
feat(subdomain): reconned and listed on all interfaces
1 parent c57d394 commit 0771a5e

12 files changed

Lines changed: 668 additions & 142 deletions

File tree

.github/workflows/commit.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,33 +33,33 @@ jobs:
3333
- uses: actions/checkout@v6
3434
- uses: actions/setup-go@v6
3535
with:
36-
go-version: "1.25.6"
36+
go-version: "1.26.1"
3737

3838
- run: go mod verify
3939

4040
- run: go test -v ./...
4141

4242
- uses: golangci/golangci-lint-action@v9
4343
with:
44-
version: v2.8.0
44+
version: v2.11.3
4545

4646
build:
4747
runs-on: ubuntu-24.04
4848
steps:
4949
- uses: actions/checkout@v6
5050
- uses: actions/setup-go@v6
5151
with:
52-
go-version: "1.25.6"
52+
go-version: "1.26.1"
5353

5454
- name: Set up QEMU for cross-compilation of Docker images
55-
uses: docker/setup-qemu-action@v3
55+
uses: docker/setup-qemu-action@v4
5656

5757
- name: Set up Docker Buildx
58-
uses: docker/setup-buildx-action@v3
58+
uses: docker/setup-buildx-action@v4
5959

6060
- run: go mod download
6161

62-
- uses: goreleaser/goreleaser-action@v6
62+
- uses: goreleaser/goreleaser-action@v7
6363
id: goreleaser
6464
with:
6565
distribution: goreleaser
@@ -70,15 +70,15 @@ jobs:
7070

7171
- name: Extract metadata (tags, labels) for Docker base on Goreleaser
7272
id: meta
73-
uses: docker/metadata-action@v5
73+
uses: docker/metadata-action@v6
7474
with:
7575
images: |
7676
ghcr.io/${{ github.repository }}
7777
tags: |
7878
type=raw,value=${{ fromJSON(steps.goreleaser.outputs.metadata).version }}
7979
8080
- name: Test build of Docker images
81-
uses: docker/build-push-action@v6
81+
uses: docker/build-push-action@v7
8282
with:
8383
context: .
8484
push: false

.github/workflows/release.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,22 @@ jobs:
1919

2020
- uses: actions/setup-go@v6
2121
with:
22-
go-version: "1.25.6"
22+
go-version: "1.26.1"
2323

2424
- name: Set up QEMU for cross-compilation of Docker images
25-
uses: docker/setup-qemu-action@v3
25+
uses: docker/setup-qemu-action@v4
2626

2727
- name: Set up Docker Buildx
28-
uses: docker/setup-buildx-action@v3
28+
uses: docker/setup-buildx-action@v4
2929

3030
- name: Log in to the Container registry
31-
uses: docker/login-action@v3
31+
uses: docker/login-action@v4
3232
with:
3333
registry: ghcr.io
3434
username: ${{ github.actor }}
3535
password: ${{ secrets.GITHUB_TOKEN }}
3636

37-
- uses: goreleaser/goreleaser-action@v6
37+
- uses: goreleaser/goreleaser-action@v7
3838
id: goreleaser
3939
with:
4040
distribution: goreleaser
@@ -45,7 +45,7 @@ jobs:
4545

4646
- name: Extract metadata (tags, labels) for Docker base on Goreleaser
4747
id: meta
48-
uses: docker/metadata-action@v5
48+
uses: docker/metadata-action@v6
4949
with:
5050
images: |
5151
ghcr.io/${{ github.repository }}
@@ -56,7 +56,7 @@ jobs:
5656
type=raw,value=${{ fromJSON(steps.goreleaser.outputs.metadata).version }}
5757
5858
- name: Build and push Docker images
59-
uses: docker/build-push-action@v6
59+
uses: docker/build-push-action@v7
6060
with:
6161
context: .
6262
push: true

.golangci.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This file is licensed under the terms of the MIT license https://opensource.org/license/mit
22
# Copyright (c) 2021-2026 Marat Reymers
33

4-
## Golden config for golangci-lint v2.8.0
4+
## Golden config for golangci-lint v2.11.3
55
#
66
# This is the best config for golangci-lint based on my experience and opinion.
77
# It is very strict, but not extremely strict.
@@ -450,18 +450,10 @@ linters:
450450
- common-false-positives
451451
# Excluding configuration per-path, per-linter, per-text and per-source.
452452
rules:
453-
- source: 'TODO'
454-
linters: [godot]
455453
- text: "should have a package comment"
456454
linters: [revive]
457455
- text: 'exported \S+ \S+ should have comment( \(or a comment on this block\))? or be unexported'
458456
linters: [revive]
459-
- text: 'package comment should be of the form ".+"'
460-
source: '// ?(nolint|TODO)'
461-
linters: [revive]
462-
- text: 'comment on exported \S+ \S+ should be of the form ".+"'
463-
source: '// ?(nolint|TODO)'
464-
linters: [revive, staticcheck]
465457
- path: '_test\.go'
466458
linters:
467459
- bodyclose

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Need a lot of additional configuration to build multi-arch images
55

66
# STAGE 1: building the executable
7-
FROM docker.io/golang:1.25.6-alpine3.23 AS builder
7+
FROM docker.io/golang:1.26.1-alpine3.23 AS builder
88
WORKDIR /build
99

1010
ARG VERSION

cmd/cname.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,14 +104,12 @@ func Cname(ctx context.Context) *cli.Command {
104104
if uint64(ttlUint) > maxUint32 {
105105
return fmt.Errorf("ttl value too large: %d (max allowed: %d)", ttlUint, maxUint32)
106106
}
107-
//nolint:gosec // safe: checked for overflow above
108107
ttl := uint32(ttlUint)
109108

110109
intervalUint := cCtx.Uint("interval")
111110
if uint64(intervalUint) > maxUint32 {
112111
return fmt.Errorf("interval value too large: %d (max allowed: %d)", intervalUint, maxUint32)
113112
}
114-
//nolint:gosec // safe: checked for overflow above
115113
interval := uint32(intervalUint)
116114

117115
fqdn := cCtx.String("fqdn")

0 commit comments

Comments
 (0)