You've already forked dyndns-client
							
							Compare commits
	
		
			1 Commits
		
	
	
		
			master
			...
			f2599d43fa
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| f2599d43fa | 
| @@ -1 +1 @@ | |||||||
| dyndns-client | bin | ||||||
							
								
								
									
										124
									
								
								.drone.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										124
									
								
								.drone.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,124 @@ | |||||||
|  | --- | ||||||
|  | kind: pipeline | ||||||
|  | type: kubernetes | ||||||
|  | name: linter | ||||||
|  |  | ||||||
|  | clone: | ||||||
|  |   disable: true | ||||||
|  |  | ||||||
|  | steps: | ||||||
|  | - name: clone | ||||||
|  |   image: git.cryptic.systems/volker.raschek/git:1.4.0 | ||||||
|  |  | ||||||
|  | - name: markdown lint | ||||||
|  |   commands: | ||||||
|  |   - markdownlint *.md | ||||||
|  |   image: git.cryptic.systems/volker.raschek/markdownlint:0.44.0 | ||||||
|  |   resources: | ||||||
|  |     limits: | ||||||
|  |       cpu: 150 | ||||||
|  |       memory: 150M | ||||||
|  |  | ||||||
|  | - name: golangci lint | ||||||
|  |   commands: | ||||||
|  |   - golangci-lint run | ||||||
|  |   image: docker.io/golangci/golangci-lint:v1.64.8-alpine | ||||||
|  |   resources: | ||||||
|  |     limits: | ||||||
|  |       cpu: 500 | ||||||
|  |       memory: 1G | ||||||
|  |  | ||||||
|  | - name: email-notification | ||||||
|  |   environment: | ||||||
|  |     SMTP_FROM_ADDRESS: | ||||||
|  |       from_secret: smtp_from_address | ||||||
|  |     SMTP_FROM_NAME: | ||||||
|  |       from_secret: smtp_from_name | ||||||
|  |     SMTP_HOST: | ||||||
|  |       from_secret: smtp_host | ||||||
|  |     SMTP_USERNAME: | ||||||
|  |       from_secret: smtp_username | ||||||
|  |     SMTP_PASSWORD: | ||||||
|  |       from_secret: smtp_password | ||||||
|  |   image: git.cryptic.systems/volker.raschek/drone-email:0.1.5 | ||||||
|  |   resources: | ||||||
|  |     limits: | ||||||
|  |       cpu: 150 | ||||||
|  |       memory: 150M | ||||||
|  |   when: | ||||||
|  |     status: | ||||||
|  |     - changed | ||||||
|  |     - failure | ||||||
|  |  | ||||||
|  | trigger: | ||||||
|  |   event: | ||||||
|  |     exclude: | ||||||
|  |     - tag | ||||||
|  |  | ||||||
|  | --- | ||||||
|  | kind: pipeline | ||||||
|  | type: kubernetes | ||||||
|  | name: unit-test-amd64 | ||||||
|  |  | ||||||
|  | clone: | ||||||
|  |   disable: true | ||||||
|  |  | ||||||
|  | depends_on: | ||||||
|  | - linter | ||||||
|  |  | ||||||
|  | node_selector: | ||||||
|  |   kubernetes.io/arch: amd64 | ||||||
|  |  | ||||||
|  | steps: | ||||||
|  | - name: clone | ||||||
|  |   image: git.cryptic.systems/volker.raschek/git:1.4.0 | ||||||
|  |  | ||||||
|  | - name: unit-test | ||||||
|  |   commands: | ||||||
|  |   - go test -v ./... | ||||||
|  |   image: docker.io/library/golang:1.24.3 | ||||||
|  |   resources: | ||||||
|  |     limits: | ||||||
|  |       cpu: 250 | ||||||
|  |       memory: 500M | ||||||
|  |  | ||||||
|  | trigger: | ||||||
|  |   event: | ||||||
|  |     exclude: | ||||||
|  |     - tag | ||||||
|  |  | ||||||
|  | --- | ||||||
|  | kind: pipeline | ||||||
|  | type: docker | ||||||
|  | name: unit-test-arm64 | ||||||
|  |  | ||||||
|  | clone: | ||||||
|  |   disable: true | ||||||
|  |  | ||||||
|  | depends_on: | ||||||
|  | - linter | ||||||
|  |  | ||||||
|  | # node_selector: | ||||||
|  | #   kubernetes.io/arch: arm64 | ||||||
|  |  | ||||||
|  | platform: | ||||||
|  |   os: linux | ||||||
|  |   arch: arm64 | ||||||
|  |  | ||||||
|  | steps: | ||||||
|  | - name: clone | ||||||
|  |   image: git.cryptic.systems/volker.raschek/git:1.4.0 | ||||||
|  |  | ||||||
|  | - name: unit-test | ||||||
|  |   commands: | ||||||
|  |   - go test -v ./... | ||||||
|  |   image: docker.io/library/golang:1.24.3 | ||||||
|  |   # resources: | ||||||
|  |   #   limits: | ||||||
|  |   #     cpu: 250 | ||||||
|  |   #     memory: 500M | ||||||
|  |  | ||||||
|  | trigger: | ||||||
|  |   event: | ||||||
|  |     exclude: | ||||||
|  |     - tag | ||||||
| @@ -1,13 +1,12 @@ | |||||||
| # Editor configuration, see http://editorconfig.org |  | ||||||
| root = true | root = true | ||||||
|  |  | ||||||
| [*] | [*] | ||||||
| charset = utf-8 |  | ||||||
| end_of_line = lf |  | ||||||
| indent_size = 2 |  | ||||||
| indent_style = space | indent_style = space | ||||||
| insert_final_newline = false | indent_size = 2 | ||||||
|  | end_of_line = lf | ||||||
|  | charset = utf-8 | ||||||
| trim_trailing_whitespace = true | trim_trailing_whitespace = true | ||||||
|  | insert_final_newline = false | ||||||
|  |  | ||||||
| [{Makefile,*.go}] | [Makefile] | ||||||
| indent_style = tab | indent_style = tab | ||||||
							
								
								
									
										1
									
								
								.gitattributes
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								.gitattributes
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | |||||||
|  | **/Makefile eol=lf | ||||||
| @@ -1,29 +0,0 @@ | |||||||
| name: "Lint Golang files" |  | ||||||
|  |  | ||||||
| on: |  | ||||||
|   pull_request: |  | ||||||
|     types: [ "opened", "reopened", "synchronize" ] |  | ||||||
|   push: |  | ||||||
|     branches: [ '**' ] |  | ||||||
|     tags-ignore: [ '**' ] |  | ||||||
|   workflow_dispatch: {} |  | ||||||
|  |  | ||||||
| permissions: |  | ||||||
|   contents: read |  | ||||||
|  |  | ||||||
| jobs: |  | ||||||
|   golangci: |  | ||||||
|     name: "Run golang CI linter" |  | ||||||
|     runs-on: ${{ matrix.os }} |  | ||||||
|     strategy: |  | ||||||
|       matrix: |  | ||||||
|         go: [ stable ] |  | ||||||
|         os: [ ubuntu-latest-amd64, ubuntu-latest-arm64 ] |  | ||||||
|     steps: |  | ||||||
|     - uses: actions/checkout@v5.0.0 |  | ||||||
|     - uses: actions/setup-go@v6.0.0 |  | ||||||
|       with: |  | ||||||
|         go-version: ${{ matrix.go }} |  | ||||||
|     - uses: golangci/golangci-lint-action@v8.0.0 |  | ||||||
|       with: |  | ||||||
|         version: v2.6.0 # renovate: datasource=github-releases depName=golangci/golangci-lint |  | ||||||
| @@ -1,42 +0,0 @@ | |||||||
| name: "Run Golang tests" |  | ||||||
|  |  | ||||||
| on: |  | ||||||
|   pull_request: |  | ||||||
|     types: [ "opened", "reopened", "synchronize" ] |  | ||||||
|   push: |  | ||||||
|     branches: [ '**' ] |  | ||||||
|     tags-ignore: [ '**' ] |  | ||||||
|   workflow_dispatch: {} |  | ||||||
|  |  | ||||||
| jobs: |  | ||||||
|   # integration-test: |  | ||||||
|   #   name: "Run integration tests" |  | ||||||
|   #   runs-on: ${{ matrix.os }} |  | ||||||
|   #   strategy: |  | ||||||
|   #     matrix: |  | ||||||
|   #       go: [ stable ] |  | ||||||
|   #       os: [ ubuntu-latest-amd64, ubuntu-latest-arm64 ] |  | ||||||
|   #   steps: |  | ||||||
|   #   - uses: actions/checkout@v4.3.0 |  | ||||||
|   #   - uses: actions/setup-go@v5.5.0 |  | ||||||
|   #     with: |  | ||||||
|   #       go-version: ${{ matrix.go }} |  | ||||||
|   #   - env: |  | ||||||
|   #       GOPROXY: ${{ vars.GOPROXY }} |  | ||||||
|   #     run: make test/integration |  | ||||||
|  |  | ||||||
|   unit-test: |  | ||||||
|     name: "Run unit tests" |  | ||||||
|     runs-on: ${{ matrix.os }} |  | ||||||
|     strategy: |  | ||||||
|       matrix: |  | ||||||
|         go: [ stable ] |  | ||||||
|         os: [ ubuntu-latest-amd64, ubuntu-latest-arm64 ] |  | ||||||
|     steps: |  | ||||||
|     - uses: actions/checkout@v5.0.0 |  | ||||||
|     - uses: actions/setup-go@v6.0.0 |  | ||||||
|       with: |  | ||||||
|         go-version: ${{ matrix.go }} |  | ||||||
|     - env: |  | ||||||
|         GOPROXY: ${{ vars.GOPROXY }} |  | ||||||
|       run: make test/unit |  | ||||||
| @@ -1,19 +0,0 @@ | |||||||
| name: "Lint Markdown files" |  | ||||||
|  |  | ||||||
| on: |  | ||||||
|   pull_request: |  | ||||||
|     types: [ "opened", "reopened", "synchronize" ] |  | ||||||
|   push: |  | ||||||
|     branches: [ '*' ] |  | ||||||
|     tags-ignore: [ '*' ] |  | ||||||
|   workflow_dispatch: {} |  | ||||||
|  |  | ||||||
| jobs: |  | ||||||
|   markdown-lint: |  | ||||||
|     name: "Run markdown linter" |  | ||||||
|     runs-on: ubuntu-latest |  | ||||||
|     steps: |  | ||||||
|     - uses: actions/checkout@v5.0.0 |  | ||||||
|     - uses: DavidAnson/markdownlint-cli2-action@v20.0.0 |  | ||||||
|       with: |  | ||||||
|         globs: '**/*.md' |  | ||||||
| @@ -1,53 +0,0 @@ | |||||||
| name: "Release" |  | ||||||
|  |  | ||||||
| on: |  | ||||||
|   push: |  | ||||||
|     tags: [ '**' ] |  | ||||||
|  |  | ||||||
| permissions: |  | ||||||
|   contents: write |  | ||||||
|  |  | ||||||
| jobs: |  | ||||||
|   release: |  | ||||||
|     name: "Release application" |  | ||||||
|     runs-on: ubuntu-latest |  | ||||||
|     steps: |  | ||||||
|     - uses: actions/checkout@v5.0.0 |  | ||||||
|     - uses: docker/setup-qemu-action@v3.6.0 |  | ||||||
|     - uses: actions/setup-go@v6.0.0 |  | ||||||
|       with: |  | ||||||
|         go-version: stable |  | ||||||
|     - uses: docker/login-action@v3.6.0 |  | ||||||
|       with: |  | ||||||
|         registry: git.cryptic.systems |  | ||||||
|         username: ${{ github.repository_owner }} |  | ||||||
|         password: ${{ secrets.GIT_CRYPTIC_SYSTEMS_PACKAGE_REGISTRY_TOKEN }} |  | ||||||
|     - env: |  | ||||||
|         GITEA_TOKEN: ${{ secrets.GIT_CRYPTIC_SYSTEMS_PACKAGE_REGISTRY_TOKEN }} |  | ||||||
|         GONOSUMDB: ${{ vars.GONOSUMDB }} |  | ||||||
|         GOPROXY: ${{ vars.GOPROXY }} |  | ||||||
|       uses: goreleaser/goreleaser-action@v6.4.0 |  | ||||||
|       with: |  | ||||||
|         version: v2.12.7 # renovate: datasource=github-releases depName=goreleaser/goreleaser |  | ||||||
|         args: release --clean |  | ||||||
|  |  | ||||||
|   sync-to-hub-docker-io: |  | ||||||
|     name: "Upload Images to docker.io" |  | ||||||
|     needs: |  | ||||||
|     - release |  | ||||||
|     runs-on: ubuntu-latest |  | ||||||
|     steps: |  | ||||||
|     - name: Copy images to docker.io |  | ||||||
|       run: | |  | ||||||
|         TAG=$(echo ${{ github.ref_name }} | sed 's/v//gm') |  | ||||||
|  |  | ||||||
|         apt-get update --yes |  | ||||||
|         apt-get install --yes skopeo |  | ||||||
|         skopeo copy \ |  | ||||||
|           --all \ |  | ||||||
|           --dest-password ${{ secrets.DOCKER_IO_PASSWORD }} \ |  | ||||||
|           --dest-username ${{ secrets.DOCKER_IO_USERNAME }} \ |  | ||||||
|           --src-password ${{ secrets.GIT_CRYPTIC_SYSTEMS_PACKAGE_REGISTRY_TOKEN }} \ |  | ||||||
|           --src-username volker.raschek \ |  | ||||||
|             docker://git.cryptic.systems/volker.raschek/dyndns-client:${TAG} \ |  | ||||||
|             docker://docker.io/volkerraschek/dyndns-client:${TAG} |  | ||||||
| @@ -1,20 +0,0 @@ | |||||||
| name: Update Docker Hub Description |  | ||||||
|  |  | ||||||
| on: |  | ||||||
|   push: |  | ||||||
|     branches: [ 'master' ] |  | ||||||
|     paths: [ 'README.md' ] |  | ||||||
|   workflow_dispatch: {} |  | ||||||
|  |  | ||||||
| jobs: |  | ||||||
|   update-description-on-hub-docker-io: |  | ||||||
|     runs-on: |  | ||||||
|     - ubuntu-latest |  | ||||||
|     steps: |  | ||||||
|     - uses: actions/checkout@v5.0.0 |  | ||||||
|     - uses: peter-evans/dockerhub-description@v5.0.0 |  | ||||||
|       with: |  | ||||||
|         username: ${{ secrets.DOCKER_IO_USERNAME }} |  | ||||||
|         password: ${{ secrets.DOCKER_IO_PASSWORD }} |  | ||||||
|         repository: volkerraschek/dyndns-client |  | ||||||
|         readme-filepath: README.md |  | ||||||
| @@ -1,13 +0,0 @@ | |||||||
| version: "2" |  | ||||||
| linters: |  | ||||||
|   default: standard |  | ||||||
|   enable: |  | ||||||
|   - errname |  | ||||||
|   - gosec |  | ||||||
|  |  | ||||||
|   exclusions: |  | ||||||
|     rules: [] |  | ||||||
|     warn-unused: true |  | ||||||
|  |  | ||||||
| run: |  | ||||||
|   tests: true |  | ||||||
							
								
								
									
										28
									
								
								.golangci.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								.golangci.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,28 @@ | |||||||
|  | issues: | ||||||
|  |   exclude-dirs: | ||||||
|  |   - it | ||||||
|  |  | ||||||
|  | run: | ||||||
|  |   timeout: 10m | ||||||
|  |   tests: true | ||||||
|  |  | ||||||
|  | linters: | ||||||
|  |   disable-all: true | ||||||
|  |   enable: | ||||||
|  |   # Default | ||||||
|  |   - errcheck | ||||||
|  |   - gosimple | ||||||
|  |   - govet | ||||||
|  |   - ineffassign | ||||||
|  |   - staticcheck | ||||||
|  |   - typecheck | ||||||
|  |   - unused | ||||||
|  |  | ||||||
|  |   # Additionally linters | ||||||
|  |   - bodyclose | ||||||
|  |   - misspell | ||||||
|  |   - nilerr | ||||||
|  |   - rowserrcheck | ||||||
|  |   - sqlclosecheck | ||||||
|  |   - unparam | ||||||
|  |   - whitespace | ||||||
							
								
								
									
										175
									
								
								.goreleaser.yaml
									
									
									
									
									
								
							
							
						
						
									
										175
									
								
								.goreleaser.yaml
									
									
									
									
									
								
							| @@ -1,175 +0,0 @@ | |||||||
| project_name: dyndns-client |  | ||||||
|  |  | ||||||
| archives: |  | ||||||
| - formats: [ "tar.xz" ] |  | ||||||
|   files: |  | ||||||
|   - README.md |  | ||||||
|   - LICENSE |  | ||||||
|  |  | ||||||
| before: |  | ||||||
|   hooks: |  | ||||||
|   - go mod tidy |  | ||||||
|  |  | ||||||
| builds: |  | ||||||
| - main: main.go |  | ||||||
|   binary: >- |  | ||||||
|     {{ .ProjectName }}- |  | ||||||
|     {{- .Version }}- |  | ||||||
|     {{- .Os }}- |  | ||||||
|     {{- if eq .Arch "amd64" }}amd64 |  | ||||||
|     {{- else if eq .Arch "amd64_v1" }}amd64 |  | ||||||
|     {{- else }}{{ .Arch }}{{ end }} |  | ||||||
|     {{- if .Arm }}-{{ .Arm }}{{ end }} |  | ||||||
|   env: |  | ||||||
|   - CGO_ENABLED=0 |  | ||||||
|   - GONOSUMDB={{ .Env.GONOSUMDB }} |  | ||||||
|   - GOPROXY={{ .Env.GOPROXY }} |  | ||||||
|   goos: |  | ||||||
|   - linux |  | ||||||
|   goarch: |  | ||||||
|   - amd64 |  | ||||||
|   - arm |  | ||||||
|   - arm64 |  | ||||||
|   - riscv64 |  | ||||||
|   goarm: |  | ||||||
|   - "6" |  | ||||||
|   - "7" |  | ||||||
|   flags: |  | ||||||
|   - -trimpath |  | ||||||
|   ldflags: |  | ||||||
|   - -s -w -X 'main.version={{ trimprefix .Tag "v" }}' |  | ||||||
|  |  | ||||||
| changelog: |  | ||||||
|   filters: |  | ||||||
|     exclude: |  | ||||||
|     - '^chore' |  | ||||||
|     - '^docs' |  | ||||||
|     - '^test' |  | ||||||
|     - Merge pull request |  | ||||||
|     - Merge branch |  | ||||||
|     - go mod tidy |  | ||||||
|   format: "{{.SHA}}: {{.Message}} (@{{.AuthorUsername}})" |  | ||||||
|   groups: |  | ||||||
|   - title: Features |  | ||||||
|     regexp: '^.*?feat(\([[:word:]]+\))??!?:.+$' |  | ||||||
|     order: 0 |  | ||||||
|   - title: "Bug fixes" |  | ||||||
|     regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$' |  | ||||||
|     order: 1 |  | ||||||
|   - title: Others |  | ||||||
|     order: 999 |  | ||||||
|   sort: asc |  | ||||||
|   use: git |  | ||||||
|  |  | ||||||
| dockers: |  | ||||||
| - build_flag_templates: |  | ||||||
|   - --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }} |  | ||||||
|   - --label=org.opencontainers.image.description={{ .ProjectName }} |  | ||||||
|   - --label=org.opencontainers.image.documentation={{ .ProjectName }} |  | ||||||
|   - --label=org.opencontainers.image.revision={{ .FullCommit }} |  | ||||||
|   - --label=org.opencontainers.image.source={{ .GitURL }} |  | ||||||
|   - --label=org.opencontainers.image.title={{ .ProjectName }} |  | ||||||
|   - --label=org.opencontainers.image.url=https://git.cryptic.systems/volker.raschek/{{ .ProjectName }} |  | ||||||
|   - --label=org.opencontainers.image.version={{ trimprefix .Tag "v" }} |  | ||||||
|   - --platform=linux/amd64 |  | ||||||
|   - --pull |  | ||||||
|   dockerfile: Dockerfile |  | ||||||
|   goarch: amd64 |  | ||||||
|   goos: linux |  | ||||||
|   image_templates: |  | ||||||
|   - 'git.cryptic.systems/volker.raschek/{{ .ProjectName }}:{{ trimprefix .Tag "v" }}-amd64' |  | ||||||
|   skip_push: false |  | ||||||
|   use: buildx |  | ||||||
|  |  | ||||||
| - build_flag_templates: |  | ||||||
|   - --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }} |  | ||||||
|   - --label=org.opencontainers.image.description={{ .ProjectName }} |  | ||||||
|   - --label=org.opencontainers.image.documentation={{ .ProjectName }} |  | ||||||
|   - --label=org.opencontainers.image.revision={{ .FullCommit }} |  | ||||||
|   - --label=org.opencontainers.image.source={{ .GitURL }} |  | ||||||
|   - --label=org.opencontainers.image.title={{ .ProjectName }} |  | ||||||
|   - --label=org.opencontainers.image.url=https://git.cryptic.systems/volker.raschek/{{ .ProjectName }} |  | ||||||
|   - --label=org.opencontainers.image.version={{ trimprefix .Tag "v" }} |  | ||||||
|   - --platform=linux/arm/v6 |  | ||||||
|   - --pull |  | ||||||
|   dockerfile: Dockerfile |  | ||||||
|   goarch: arm |  | ||||||
|   goarm: "6" |  | ||||||
|   goos: linux |  | ||||||
|   image_templates: |  | ||||||
|   - 'git.cryptic.systems/volker.raschek/{{ .ProjectName }}:{{ trimprefix .Tag "v" }}-arm-v6' |  | ||||||
|   skip_push: false |  | ||||||
|   use: buildx |  | ||||||
|  |  | ||||||
| - build_flag_templates: |  | ||||||
|   - --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }} |  | ||||||
|   - --label=org.opencontainers.image.description={{ .ProjectName }} |  | ||||||
|   - --label=org.opencontainers.image.documentation={{ .ProjectName }} |  | ||||||
|   - --label=org.opencontainers.image.revision={{ .FullCommit }} |  | ||||||
|   - --label=org.opencontainers.image.source={{ .GitURL }} |  | ||||||
|   - --label=org.opencontainers.image.title={{ .ProjectName }} |  | ||||||
|   - --label=org.opencontainers.image.url=https://git.cryptic.systems/volker.raschek/{{ .ProjectName }} |  | ||||||
|   - --label=org.opencontainers.image.version={{ trimprefix .Tag "v" }} |  | ||||||
|   - --platform=linux/arm/v7 |  | ||||||
|   - --pull |  | ||||||
|   dockerfile: Dockerfile |  | ||||||
|   goarch: arm |  | ||||||
|   goarm: "7" |  | ||||||
|   goos: linux |  | ||||||
|   image_templates: |  | ||||||
|   - 'git.cryptic.systems/volker.raschek/{{ .ProjectName }}:{{ trimprefix .Tag "v" }}-arm-v7' |  | ||||||
|   skip_push: false |  | ||||||
|   use: buildx |  | ||||||
|  |  | ||||||
| - build_flag_templates: |  | ||||||
|   - --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }} |  | ||||||
|   - --label=org.opencontainers.image.description={{ .ProjectName }} |  | ||||||
|   - --label=org.opencontainers.image.documentation={{ .ProjectName }} |  | ||||||
|   - --label=org.opencontainers.image.revision={{ .FullCommit }} |  | ||||||
|   - --label=org.opencontainers.image.source={{ .GitURL }} |  | ||||||
|   - --label=org.opencontainers.image.title={{ .ProjectName }} |  | ||||||
|   - --label=org.opencontainers.image.url=https://git.cryptic.systems/volker.raschek/{{ .ProjectName }} |  | ||||||
|   - --label=org.opencontainers.image.version={{ trimprefix .Tag "v" }} |  | ||||||
|   - --platform=linux/arm64 |  | ||||||
|   - --pull |  | ||||||
|   dockerfile: Dockerfile |  | ||||||
|   goarch: arm64 |  | ||||||
|   goos: linux |  | ||||||
|   image_templates: |  | ||||||
|   - 'git.cryptic.systems/volker.raschek/{{ .ProjectName }}:{{ trimprefix .Tag "v" }}-arm64' |  | ||||||
|   skip_push: false |  | ||||||
|   use: buildx |  | ||||||
|  |  | ||||||
| - build_flag_templates: |  | ||||||
|   - --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }} |  | ||||||
|   - --label=org.opencontainers.image.description={{ .ProjectName }} |  | ||||||
|   - --label=org.opencontainers.image.documentation={{ .ProjectName }} |  | ||||||
|   - --label=org.opencontainers.image.revision={{ .FullCommit }} |  | ||||||
|   - --label=org.opencontainers.image.source={{ .GitURL }} |  | ||||||
|   - --label=org.opencontainers.image.title={{ .ProjectName }} |  | ||||||
|   - --label=org.opencontainers.image.url=https://git.cryptic.systems/volker.raschek/{{ .ProjectName }} |  | ||||||
|   - --label=org.opencontainers.image.version={{ trimprefix .Tag "v" }} |  | ||||||
|   - --platform=linux/riscv64 |  | ||||||
|   - --pull |  | ||||||
|   dockerfile: Dockerfile |  | ||||||
|   goarch: riscv64 |  | ||||||
|   goos: linux |  | ||||||
|   image_templates: |  | ||||||
|   - 'git.cryptic.systems/volker.raschek/{{ .ProjectName }}:{{ trimprefix .Tag "v" }}-riscv64' |  | ||||||
|   skip_push: false |  | ||||||
|   use: buildx |  | ||||||
|  |  | ||||||
| docker_manifests: |  | ||||||
| - name_template: 'git.cryptic.systems/volker.raschek/{{ .ProjectName }}:{{ trimprefix .Tag "v" }}' |  | ||||||
|   image_templates: |  | ||||||
|   - 'git.cryptic.systems/volker.raschek/{{ .ProjectName }}:{{ trimprefix .Tag "v" }}-amd64' |  | ||||||
|   - 'git.cryptic.systems/volker.raschek/{{ .ProjectName }}:{{ trimprefix .Tag "v" }}-arm-v6' |  | ||||||
|   - 'git.cryptic.systems/volker.raschek/{{ .ProjectName }}:{{ trimprefix .Tag "v" }}-arm-v7' |  | ||||||
|   - 'git.cryptic.systems/volker.raschek/{{ .ProjectName }}:{{ trimprefix .Tag "v" }}-arm64' |  | ||||||
|   - 'git.cryptic.systems/volker.raschek/{{ .ProjectName }}:{{ trimprefix .Tag "v" }}-riscv64' |  | ||||||
|  |  | ||||||
| gitea_urls: |  | ||||||
|   api: https://git.cryptic.systems/api/v1 |  | ||||||
|   download: https://git.cryptic.systems |  | ||||||
|  |  | ||||||
| version: 2 |  | ||||||
| @@ -1,136 +0,0 @@ | |||||||
| # markdownlint YAML configuration |  | ||||||
| # https://github.com/DavidAnson/markdownlint/blob/main/schema/.markdownlint.yaml |  | ||||||
|  |  | ||||||
| # Default state for all rules |  | ||||||
| default: true |  | ||||||
|  |  | ||||||
| # Path to configuration file to extend |  | ||||||
| extends: null |  | ||||||
|  |  | ||||||
| # MD003/heading-style/header-style - Heading style |  | ||||||
| MD003: |  | ||||||
|   # Heading style |  | ||||||
|   style: "atx" |  | ||||||
|  |  | ||||||
| # MD004/ul-style - Unordered list style |  | ||||||
| MD004: |  | ||||||
|   style: "dash" |  | ||||||
|  |  | ||||||
| # MD007/ul-indent - Unordered list indentation |  | ||||||
| MD007: |  | ||||||
|   # Spaces for indent |  | ||||||
|   indent: 2 |  | ||||||
|   # Whether to indent the first level of the list |  | ||||||
|   start_indented: false |  | ||||||
|  |  | ||||||
| # MD009/no-trailing-spaces - Trailing spaces |  | ||||||
| MD009: |  | ||||||
|   # Spaces for line break |  | ||||||
|   br_spaces: 2 |  | ||||||
|   # Allow spaces for empty lines in list items |  | ||||||
|   list_item_empty_lines: false |  | ||||||
|   # Include unnecessary breaks |  | ||||||
|   strict: false |  | ||||||
|  |  | ||||||
| # MD010/no-hard-tabs - Hard tabs |  | ||||||
| MD010: |  | ||||||
|   # Include code blocks |  | ||||||
|   code_blocks: true |  | ||||||
|  |  | ||||||
| # MD012/no-multiple-blanks - Multiple consecutive blank lines |  | ||||||
| MD012: |  | ||||||
|   # Consecutive blank lines |  | ||||||
|   maximum: 1 |  | ||||||
|  |  | ||||||
| # MD013/line-length - Line length |  | ||||||
| MD013: |  | ||||||
|   # Number of characters |  | ||||||
|   line_length: 120 |  | ||||||
|   # Number of characters for headings |  | ||||||
|   heading_line_length: 120 |  | ||||||
|   # Number of characters for code blocks |  | ||||||
|   code_block_line_length: 120 |  | ||||||
|   # Include code blocks |  | ||||||
|   code_blocks: false |  | ||||||
|   # Include tables |  | ||||||
|   tables: false |  | ||||||
|   # Include headings |  | ||||||
|   headings: true |  | ||||||
|   # Strict length checking |  | ||||||
|   strict: false |  | ||||||
|   # Stern length checking |  | ||||||
|   stern: false |  | ||||||
|  |  | ||||||
| # MD022/blanks-around-headings/blanks-around-headers - Headings should be surrounded by blank lines |  | ||||||
| MD022: |  | ||||||
|   # Blank lines above heading |  | ||||||
|   lines_above: 1 |  | ||||||
|   # Blank lines below heading |  | ||||||
|   lines_below: 1 |  | ||||||
|  |  | ||||||
| # MD025/single-title/single-h1 - Multiple top-level headings in the same document |  | ||||||
| MD025: |  | ||||||
|   # Heading level |  | ||||||
|   level: 1 |  | ||||||
|   # RegExp for matching title in front matter |  | ||||||
|   front_matter_title: "^\\s*title\\s*[:=]" |  | ||||||
|  |  | ||||||
| # MD026/no-trailing-punctuation - Trailing punctuation in heading |  | ||||||
| MD026: |  | ||||||
|   # Punctuation characters |  | ||||||
|   punctuation: ".,;:!。,;:!" |  | ||||||
|  |  | ||||||
| # MD029/ol-prefix - Ordered list item prefix |  | ||||||
| MD029: |  | ||||||
|   # List style |  | ||||||
|   style: "one_or_ordered" |  | ||||||
|  |  | ||||||
| # MD030/list-marker-space - Spaces after list markers |  | ||||||
| MD030: |  | ||||||
|   # Spaces for single-line unordered list items |  | ||||||
|   ul_single: 1 |  | ||||||
|   # Spaces for single-line ordered list items |  | ||||||
|   ol_single: 1 |  | ||||||
|   # Spaces for multi-line unordered list items |  | ||||||
|   ul_multi: 1 |  | ||||||
|   # Spaces for multi-line ordered list items |  | ||||||
|   ol_multi: 1 |  | ||||||
|  |  | ||||||
| # MD033/no-inline-html - Inline HTML |  | ||||||
| MD033: |  | ||||||
|   # Allowed elements |  | ||||||
|   allowed_elements: [] |  | ||||||
|  |  | ||||||
| # MD035/hr-style - Horizontal rule style |  | ||||||
| MD035: |  | ||||||
|   # Horizontal rule style |  | ||||||
|   style: "---" |  | ||||||
|  |  | ||||||
| # MD036/no-emphasis-as-heading/no-emphasis-as-header - Emphasis used instead of a heading |  | ||||||
| MD036: |  | ||||||
|   # Punctuation characters |  | ||||||
|   punctuation: ".,;:!?。,;:!?" |  | ||||||
|  |  | ||||||
| # MD041/first-line-heading/first-line-h1 - First line in a file should be a top-level heading |  | ||||||
| MD041: |  | ||||||
|   # Heading level |  | ||||||
|   level: 1 |  | ||||||
|   # RegExp for matching title in front matter |  | ||||||
|   front_matter_title: "^\\s*title\\s*[:=]" |  | ||||||
|  |  | ||||||
| # MD044/proper-names - Proper names should have the correct capitalization |  | ||||||
| MD044: |  | ||||||
|   # List of proper names |  | ||||||
|   names: [] |  | ||||||
|   # Include code blocks |  | ||||||
|   code_blocks: false |  | ||||||
|  |  | ||||||
| # MD046/code-block-style - Code block style |  | ||||||
| MD046: |  | ||||||
|   # Block style |  | ||||||
|   style: "fenced" |  | ||||||
|  |  | ||||||
| # MD048/code-fence-style - Code fence style |  | ||||||
| MD048: |  | ||||||
|   # Code fence syle |  | ||||||
|   style: "backtick" |  | ||||||
| @@ -1,5 +0,0 @@ | |||||||
| FROM scratch AS build |  | ||||||
|  |  | ||||||
| COPY dyndns-client-* /usr/bin/app |  | ||||||
|  |  | ||||||
| ENTRYPOINT [ "/usr/bin/dyndns-client" ] |  | ||||||
							
								
								
									
										117
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										117
									
								
								Makefile
									
									
									
									
									
								
							| @@ -1,114 +1,53 @@ | |||||||
| dcmergeEXECUTABLE=dyndns-client | # VERSION | ||||||
| VERSION ?= $(shell git describe --abbrev=0)+hash.$(shell git rev-parse --short HEAD) | VERSION ?= $(shell git describe --abbrev=0)+hash.$(shell git rev-parse --short HEAD) | ||||||
|  |  | ||||||
| # Destination directory and prefix to place the compiled binaries, documentaions |  | ||||||
| # and other files. |  | ||||||
| DESTDIR ?= | DESTDIR ?= | ||||||
| PREFIX ?= /usr/local | PREFIX ?= /usr/local | ||||||
|  | EXECUTABLE := dyndns-client | ||||||
|  |  | ||||||
| # CONTAINER_RUNTIME | # BINARIES | ||||||
| # The CONTAINER_RUNTIME variable will be used to specified the path to a |  | ||||||
| # container runtime. This is needed to start and run a container image. |  | ||||||
| CONTAINER_RUNTIME?=$(shell which podman) |  | ||||||
|  |  | ||||||
| # DYNDNS_CLIENT_IMAGE_REGISTRY_NAME |  | ||||||
| # Defines the name of the new container to be built using several variables. |  | ||||||
| DYNDNS_CLIENT_IMAGE_REGISTRY_NAME:=git.cryptic.systems |  | ||||||
| DYNDNS_CLIENT_IMAGE_REGISTRY_USER:=volker.raschek |  | ||||||
|  |  | ||||||
| DYNDNS_CLIENT_IMAGE_NAMESPACE?=${DYNDNS_CLIENT_IMAGE_REGISTRY_USER} |  | ||||||
| DYNDNS_CLIENT_IMAGE_NAME:=${EXECUTABLE} |  | ||||||
| _IMAGE_VERSION?=latest |  | ||||||
| DYNDNS_CLIENT_IMAGE_FULLY_QUALIFIED=${DYNDNS_CLIENT_IMAGE_REGISTRY_NAME}/${DYNDNS_CLIENT_IMAGE_NAMESPACE}/${DYNDNS_CLIENT_IMAGE_NAME}:${DYNDNS_CLIENT_IMAGE_VERSION} |  | ||||||
|  |  | ||||||
| # BIN |  | ||||||
| # ============================================================================== | # ============================================================================== | ||||||
| dyndns-client: | all: ${EXECUTABLE} | ||||||
|  |  | ||||||
|  | ${EXECUTABLE}: | ||||||
| 	CGO_ENABLED=0 \ | 	CGO_ENABLED=0 \ | ||||||
|  | 	GOPRIVATE=$(shell go env GOPRIVATE) \ | ||||||
| 	GOPROXY=$(shell go env GOPROXY) \ | 	GOPROXY=$(shell go env GOPROXY) \ | ||||||
| 		go build -ldflags "-X 'main.version=${VERSION}'" -o ${@} main.go | 		go build -ldflags "-X main.version=${VERSION:v%=%}" -o ${@} | ||||||
|  |  | ||||||
|  | # TEST | ||||||
|  | # ============================================================================== | ||||||
|  | PHONY+=test | ||||||
|  | test: clean ${EXECUTABLE} | ||||||
|  | 	go test -v ./pkg/... | ||||||
|  |  | ||||||
| # CLEAN | # CLEAN | ||||||
| # ============================================================================== | # ============================================================================== | ||||||
| PHONY+=clean | PHONY+=clean | ||||||
| clean: | clean: | ||||||
| 	rm --force --recursive dyndns-client | 	rm --force ${EXECUTABLE} || true | ||||||
|  | 	rm --force --recursive bin || true | ||||||
|  |  | ||||||
| # TESTS | # UN/INSTALL | ||||||
| # ============================================================================== | # ============================================================================== | ||||||
| PHONY+=test/unit | PHONY+=install | ||||||
| test/unit: | install: ${EXECUTABLE} | ||||||
| 	CGO_ENABLED=0 \ |  | ||||||
| 	GOPROXY=$(shell go env GOPROXY) \ |  | ||||||
| 		go test -v -p 1 -coverprofile=coverage.txt -covermode=count -timeout 1200s ./pkg/... |  | ||||||
|  |  | ||||||
| PHONY+=test/integration |  | ||||||
| test/integration: |  | ||||||
| 	CGO_ENABLED=0 \ |  | ||||||
| 	GOPROXY=$(shell go env GOPROXY) \ |  | ||||||
| 		go test -v -p 1 -count=1 -timeout 1200s ./it/... |  | ||||||
|  |  | ||||||
| PHONY+=test/coverage |  | ||||||
| test/coverage: test/unit |  | ||||||
| 	CGO_ENABLED=0 \ |  | ||||||
| 	GOPROXY=$(shell go env GOPROXY) \ |  | ||||||
| 		go tool cover -html=coverage.txt |  | ||||||
|  |  | ||||||
| # GOLANGCI-LINT |  | ||||||
| # ============================================================================== |  | ||||||
| PHONY+=golangci-lint |  | ||||||
| golangci-lint: |  | ||||||
| 	golangci-lint run --concurrency=$(shell nproc) |  | ||||||
|  |  | ||||||
| # INSTALL |  | ||||||
| # ============================================================================== |  | ||||||
| PHONY+=uninstall |  | ||||||
| install: dyndns-client |  | ||||||
| 	install --directory ${DESTDIR}/etc/bash_completion.d |  | ||||||
| 	./dyndns-client completion bash > ${DESTDIR}/etc/bash_completion.d/${EXECUTABLE} |  | ||||||
|  |  | ||||||
| 	install --directory ${DESTDIR}${PREFIX}/bin | 	install --directory ${DESTDIR}${PREFIX}/bin | ||||||
| 	install --mode 0755 ${EXECUTABLE} ${DESTDIR}${PREFIX}/bin/${EXECUTABLE} | 	install --mode 755 ${EXECUTABLE} ${DESTDIR}${PREFIX}/bin/${EXECUTABLE} | ||||||
|  |  | ||||||
| 	install --directory ${DESTDIR}${PREFIX}/share/licenses/${EXECUTABLE} | 	install --directory ${DESTDIR}/usr/lib/systemd/system | ||||||
| 	install --mode 0644 LICENSE ${DESTDIR}${PREFIX}/share/licenses/${EXECUTABLE}/LICENSE | 	install --mode 644 systemd/${EXECUTABLE}.service ${DESTDIR}/usr/lib/systemd/system | ||||||
|  |  | ||||||
|  | 	install --directory ${DESTDIR}/usr/share/licenses/${EXECUTABLE} | ||||||
|  | 	install --mode 644 LICENSE ${DESTDIR}/usr/share/licenses/${EXECUTABLE}/LICENSE | ||||||
|  |  | ||||||
| # UNINSTALL |  | ||||||
| # ============================================================================== |  | ||||||
| PHONY+=uninstall | PHONY+=uninstall | ||||||
| uninstall: | uninstall: | ||||||
| 	-rm --force --recursive \ | 	-rm --recursive --force \ | ||||||
| 		${DESTDIR}/etc/bash_completion.d/${EXECUTABLE} \ |  | ||||||
| 		${DESTDIR}${PREFIX}/bin/${EXECUTABLE} \ | 		${DESTDIR}${PREFIX}/bin/${EXECUTABLE} \ | ||||||
| 		${DESTDIR}${PREFIX}/share/licenses/${EXECUTABLE} | 		${DESTDIR}/usr/lib/systemd/system/${EXECUTABLE}.service \ | ||||||
|  | 		${DESTDIR}/usr/share/licenses/${EXECUTABLE}/LICENSE | ||||||
| # BUILD CONTAINER IMAGE |  | ||||||
| # ============================================================================== |  | ||||||
| PHONY+=container-image/build |  | ||||||
| container-image/build: |  | ||||||
| 	${CONTAINER_RUNTIME} build \ |  | ||||||
| 		--build-arg VERSION=${VERSION} \ |  | ||||||
| 		--file Dockerfile \ |  | ||||||
| 		--no-cache \ |  | ||||||
| 		--pull \ |  | ||||||
| 		--tag ${DYNDNS_CLIENT_IMAGE_FULLY_QUALIFIED} \ |  | ||||||
| 		. |  | ||||||
|  |  | ||||||
| # DELETE CONTAINER IMAGE |  | ||||||
| # ============================================================================== |  | ||||||
| PHONY:=container-image/delete |  | ||||||
| container-image/delete: |  | ||||||
| 	- ${CONTAINER_RUNTIME} image rm ${DYNDNS_CLIENT_IMAGE_FULLY_QUALIFIED} |  | ||||||
|  |  | ||||||
| # PUSH CONTAINER IMAGE |  | ||||||
| # ============================================================================== |  | ||||||
| PHONY+=container-image/push |  | ||||||
| container-image/push: |  | ||||||
| 	echo ${DYNDNS_CLIENT_IMAGE_REGISTRY_PASSWORD} | ${CONTAINER_RUNTIME} login ${DYNDNS_CLIENT_IMAGE_REGISTRY_NAME} --username ${DYNDNS_CLIENT_IMAGE_REGISTRY_USER} --password-stdin |  | ||||||
| 	${CONTAINER_RUNTIME} push ${DYNDNS_CLIENT_IMAGE_FULLY_QUALIFIED} |  | ||||||
|  |  | ||||||
| # PHONY | # PHONY | ||||||
| # ============================================================================== | # ============================================================================== | ||||||
| # Declare the contents of the PHONY variable as phony.  We keep that information |  | ||||||
| # in a variable so we can use it in if_changed. |  | ||||||
| .PHONY: ${PHONY} | .PHONY: ${PHONY} | ||||||
| @@ -1,5 +1,7 @@ | |||||||
| # dyndns-client | # dyndns-client | ||||||
|  |  | ||||||
|  | [](https://drone.cryptic.systems/volker.raschek/dyndns-client) | ||||||
|  |  | ||||||
| dyndns-client is a Daemon to listen on interface notifications produced by the linux | dyndns-client is a Daemon to listen on interface notifications produced by the linux | ||||||
| kernel of a client machine to update one or more DNS zones. | kernel of a client machine to update one or more DNS zones. | ||||||
|  |  | ||||||
|   | |||||||
							
								
								
									
										4
									
								
								go.mod
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								go.mod
									
									
									
									
									
								
							| @@ -5,10 +5,10 @@ go 1.20 | |||||||
| require ( | require ( | ||||||
| 	github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 | 	github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 | ||||||
| 	github.com/sirupsen/logrus v1.9.3 | 	github.com/sirupsen/logrus v1.9.3 | ||||||
| 	github.com/vishvananda/netlink v1.3.1 | 	github.com/vishvananda/netlink v1.3.0 | ||||||
| ) | ) | ||||||
|  |  | ||||||
| require ( | require ( | ||||||
| 	github.com/vishvananda/netns v0.0.5 // indirect | 	github.com/vishvananda/netns v0.0.4 // indirect | ||||||
| 	golang.org/x/sys v0.10.0 // indirect | 	golang.org/x/sys v0.10.0 // indirect | ||||||
| ) | ) | ||||||
|   | |||||||
							
								
								
									
										8
									
								
								go.sum
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								go.sum
									
									
									
									
									
								
							| @@ -10,10 +10,10 @@ github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVs | |||||||
| github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= | github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= | ||||||
| github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= | github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= | ||||||
| github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= | github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= | ||||||
| github.com/vishvananda/netlink v1.3.1 h1:3AEMt62VKqz90r0tmNhog0r/PpWKmrEShJU0wJW6bV0= | github.com/vishvananda/netlink v1.3.0 h1:X7l42GfcV4S6E4vHTsw48qbrV+9PVojNfIhZcwQdrZk= | ||||||
| github.com/vishvananda/netlink v1.3.1/go.mod h1:ARtKouGSTGchR8aMwmkzC0qiNPrrWO5JS/XMVl45+b4= | github.com/vishvananda/netlink v1.3.0/go.mod h1:i6NetklAujEcC6fK0JPjT8qSwWyO0HLn4UKG+hGqeJs= | ||||||
| github.com/vishvananda/netns v0.0.5 h1:DfiHV+j8bA32MFM7bfEunvT8IAqQ/NzSJHtcmW5zdEY= | github.com/vishvananda/netns v0.0.4 h1:Oeaw1EM2JMxD51g9uhtC0D7erkIjgmj8+JZc26m1YX8= | ||||||
| github.com/vishvananda/netns v0.0.5/go.mod h1:SpkAiCQRtJ6TvvxPnOSyH3BMl6unz3xZlaprSwhNNJM= | github.com/vishvananda/netns v0.0.4/go.mod h1:SpkAiCQRtJ6TvvxPnOSyH3BMl6unz3xZlaprSwhNNJM= | ||||||
| golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= | golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= | ||||||
| golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= | golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= | ||||||
| golang.org/x/sys v0.10.0 h1:SqMFp9UcQJZa+pmYuAKjd9xq1f0j5rLcDIk0mj4qAsA= | golang.org/x/sys v0.10.0 h1:SqMFp9UcQJZa+pmYuAKjd9xq1f0j5rLcDIk0mj4qAsA= | ||||||
|   | |||||||
| @@ -152,7 +152,7 @@ func getOutboundIP() net.IP { | |||||||
| 	if err != nil { | 	if err != nil { | ||||||
| 		log.Fatal(err) | 		log.Fatal(err) | ||||||
| 	} | 	} | ||||||
| 	defer func() { _ = conn.Close() }() | 	defer conn.Close() | ||||||
| 	localAddr := conn.LocalAddr().(*net.UDPAddr) | 	localAddr := conn.LocalAddr().(*net.UDPAddr) | ||||||
| 	return localAddr.IP | 	return localAddr.IP | ||||||
| } | } | ||||||
|   | |||||||
| @@ -6,16 +6,5 @@ | |||||||
|     "local>volker.raschek/renovate-config:actions#master", |     "local>volker.raschek/renovate-config:actions#master", | ||||||
|     "local>volker.raschek/renovate-config:golang#master", |     "local>volker.raschek/renovate-config:golang#master", | ||||||
|     "local>volker.raschek/renovate-config:regexp#master" |     "local>volker.raschek/renovate-config:regexp#master" | ||||||
|   ], |  | ||||||
|   "packageRules": [ |  | ||||||
|     { |  | ||||||
|       "enabled": false, |  | ||||||
|       "matchDatasources":[ |  | ||||||
|         "go" |  | ||||||
|       ], |  | ||||||
|       "matchPackageNames": [ |  | ||||||
|         "^github\\.com/asaskevich/govalidator" |  | ||||||
|       ] |  | ||||||
|     } |  | ||||||
|   ] |   ] | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user