Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CICD: GoReleaser version #2 #1

Closed
wants to merge 67 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
3ed24a9
DOCS: Rename build filenames (#2681)
cafferata Dec 5, 2023
76d93ac
CHORE: Remove dead code: txtutil.SplitSingleLongTxt() and txtutil.Seg…
tlimoncelli Dec 5, 2023
57216f0
DOCS: Update docs related to diff2 and clean up useless mentions of d…
tlimoncelli Dec 5, 2023
4e8fb89
CSCGLOBAL: Be less noisy about rate limit delays (#2686)
tlimoncelli Dec 5, 2023
dbb724b
CLOUDFLARE: Fixed bug: Zone not populated with records if domain was …
jpbede Dec 5, 2023
8541fb8
AZURE_PRIVATE_DNS: Enable building this provider by default (#2688)
matthewmgamble Dec 5, 2023
742eaaf
MSDNS: Remove pssession from docs (it doesn't work) (#2689)
tlimoncelli Dec 6, 2023
7e5d088
DOCS: Providers: Fixed the broken absolute link (#2696)
cafferata Dec 6, 2023
9fd65da
DOCS: Removed the (by GitBook) broken GitHub links (#2694)
cafferata Dec 6, 2023
0c70048
DOCS: Removed the Zoo cross-platform environment variables package (#…
cafferata Dec 6, 2023
3771939
CHORE: Clarify TXT string limits (#2691)
tlimoncelli Dec 6, 2023
3b6643b
AZURE_PRIVATE_DNS: Rename module to conform to Go styleguide (#2697)
tlimoncelli Dec 6, 2023
cd371c1
INWX: support MxNull records (#2700)
gvangool Dec 8, 2023
e917568
CICD: Removed the old Travis configurations (#2707)
cafferata Dec 10, 2023
11f072b
CICD: Removed the old Chocolatey configuration (#2706)
cafferata Dec 10, 2023
99e3f9f
CICD: Removed the old Azure Pipelines configurations (#2705)
cafferata Dec 10, 2023
a6091f2
BUG: Register an error if EnzureZoneExists fails (#2703)
costasd Dec 10, 2023
8f1b33a
CICD: GoReleaser generates TypeScript file (#2704)
cafferata Dec 10, 2023
a7e7643
TRANSIP: Fix TXT quoting (#2708)
blackshadev Dec 11, 2023
c29efea
CICD: Clean-up of Travis Go package dependency (#2711)
cafferata Dec 11, 2023
3ad9560
CICD: Fixed `go install` command (#2712)
cafferata Dec 11, 2023
9e1cb0f
CICD: Add stringer (#2714)
tlimoncelli Dec 11, 2023
a5a1fac
DOCS: add dhcid RR docs (#2715)
fritterhoff Dec 11, 2023
724ce29
DOCS: Fix CAA_BUILDER parameter types (issuewild type should be stri…
marte26 Dec 11, 2023
6e90946
Build(deps): Bump actions/setup-go from 4 to 5 (#2716)
dependabot[bot] Dec 11, 2023
790513a
CHORE: Fix golint and staticcheck errors/warnings (#2717)
tlimoncelli Dec 11, 2023
2e4aa7a
CHORE: Fix golint warnings about stuttering (#2718)
tlimoncelli Dec 12, 2023
0b8bb1d
FEATURE: Add experimental --reportmax flag (#2719)
tlimoncelli Dec 13, 2023
8b1739e
CHORE: Update deps and gogenerate (#2720)
tlimoncelli Dec 13, 2023
0da3f75
CICD: release needs stringer (#2721)
tlimoncelli Dec 13, 2023
7ce2eb4
AKAMAIEDGEDNS: Fix AKAMAICDN add/modify. Fix integrationTest. (#2722)
svernick Dec 13, 2023
e146fc5
BUG: Fix M365 Builder indexOf error (#2724)
tlimoncelli Dec 14, 2023
c0dc049
TRANSIP: Added audit record for a maximum of 1024 TXT-record characte…
cafferata Dec 15, 2023
d1a75e9
DOCS: Updates to `ovh` provider page (#2727)
llange Dec 18, 2023
36f6b19
AXFRDDNS: Support separate servers for AXFR and DDNS (#2723)
midnightveil Dec 18, 2023
edf0471
FEATURE: CAA_BUILDER: add `issue_critical` and `issuewild_critical` (…
llange Dec 18, 2023
b5d6b06
Build(deps): Bump github/codeql-action from 2 to 3 (#2732)
dependabot[bot] Dec 18, 2023
0ca5581
Build(deps): Bump actions/upload-artifact from 3.1.3 to 4.0.0 (#2731)
dependabot[bot] Dec 18, 2023
2586545
MSDNS: Fix failing DNS integration tests (#2734)
tlimoncelli Dec 18, 2023
1ebe440
BUG: --full outputs an extra newline when skipping providers (#2730)
tlimoncelli Dec 18, 2023
1bbf9c4
CICD: Revert actions/upload-artifact to 3.1.3 (from 4.0.0) (#2736)
tlimoncelli Dec 18, 2023
d5eedab
CICD: clean slate at the start, not end, of each testgroup (#2738)
tlimoncelli Dec 19, 2023
8f18f6e
CHORE: Bump golang.org/x/crypto from 0.16.0 to 0.17.0 (#2740)
tlimoncelli Dec 19, 2023
9e4969c
Docs: Use bullet list in opinion 2 (#2746)
case Dec 29, 2023
3f27388
CHORE: Upgrade aws/aws-sdk-go-v2 urfave/cli/v2 gopkg.in/ns1/ns1-go.v2…
tlimoncelli Jan 2, 2024
fe4e07b
CHORE: Upgrade deps (#2754)
tlimoncelli Jan 2, 2024
8ed137a
GCORE: Fix handling very long TXT records (#2744)
xddxdd Jan 2, 2024
17da0bc
CICD: GoReleaser version (#2737)
cafferata Jan 2, 2024
9221a06
Revert "CICD: GoReleaser version" (#2756)
tlimoncelli Jan 2, 2024
4cd3c78
DNSIMPLE: Add compatibility with TXT changes (#2745)
weppos Jan 2, 2024
94cdbc0
CICD: External PRs should not fail (#2757)
tlimoncelli Jan 2, 2024
afd0d76
NEW REGISTRAR: Dynadot (DYNADOT) (#2753)
e-im Jan 2, 2024
d4545c1
DOCS: Added GoDaddy as requested provider (#2729)
cafferata Jan 2, 2024
4270259
Build(deps): Bump alpine from 3.18.5 to 3.19.0 (#2752)
dependabot[bot] Jan 3, 2024
b71fd63
GCLOUD: display all correction messages affecting same label + type i…
asn-iac Jan 3, 2024
e7137f3
CICD: Write GoReleaser `ldflags` in a YAML multiline string.
cafferata Dec 19, 2023
7f3c513
CICD: Use the GoReleaser default `ldflags`.
cafferata Dec 19, 2023
02453e3
CICD: Removed the logging of `ldflags`.
cafferata Dec 19, 2023
d4ecf18
CICD: Removed the `version` package.
cafferata Dec 19, 2023
fb3e1cb
CICD: Refactored the version implementations.
cafferata Dec 19, 2023
14656be
CICD: Wrote the correct spelling for DNSControl.
cafferata Dec 19, 2023
d96de7c
CICD: Removed the unused `ldflags`: `commit` and `date`.
cafferata Dec 19, 2023
e07f6c6
CICD: Removed the GitHub GoReleaser version workaround.
cafferata Dec 19, 2023
ab78f8c
CICD: GitHub Action: `actions/checkout@v4` added `fetch-depth: 0`.
cafferata Jan 3, 2024
63a41d2
CICD: GitHub Action: `goreleaser/goreleaser-action@v5` removed the de…
cafferata Jan 3, 2024
e0efbc7
CICD: GitHub Action: `goreleaser/goreleaser-action@v5` removed the de…
cafferata Jan 3, 2024
4c976f0
CICD: GitHub Action: `actions/setup-go@v4` added Go set-up.
cafferata Jan 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -58,7 +58,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
Expand All @@ -71,6 +71,6 @@ jobs:
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
30 changes: 12 additions & 18 deletions .github/workflows/pr_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,21 @@ on:
env:
cache-key: 1639697695 #Change to force cache reset `pwsh > Get-Date -UFormat %s`
go-mod-path: /go/pkg/mod
BIND_DOMAIN: example.com

jobs:
build:
runs-on: ubuntu-latest
container:
image: golang:1.21
env:
TEST_RESULTS: "/tmp/test-results"
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: stable
- name: restore_cache
uses: actions/[email protected]
with:
Expand All @@ -33,16 +38,11 @@ jobs:
with:
path: "/tmp/test-results"

# For some reason goreleaser isn't correctly setting the version
# string used by "dnscontrol version". Therefore, we're forcing the
# string using the GORELEASER_CURRENT_TAG feature.
# TODO(tlim): Use the native gorelease version mechanism.
- name: Retrieve version
id: version
# Stringer is needed because .goreleaser includes "go generate ./..."
- name: Install stringer
run: |
echo "TAG_NAME=$(git config --global --add safe.directory /__w/dnscontrol/dnscontrol ; git describe)" >> $GITHUB_OUTPUT
- name: Reveal version
run: echo ${{ steps.version.outputs.TAG_NAME }}
go install golang.org/x/tools/cmd/stringer@latest

-
id: build_binaries_tagged
name: Build binaries (if tagged)
Expand All @@ -52,19 +52,13 @@ jobs:
distribution: goreleaser
version: latest
args: build
env:
GORELEASER_CURRENT_TAG: ${{ steps.version.outputs.TAG_NAME }}
-
id: build_binaries_not_tagged
name: Build binaries (not tagged)
if: github.ref_type != 'tag'
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: latest
args: build --snapshot
env:
GORELEASER_CURRENT_TAG: ${{ steps.version.outputs.TAG_NAME }}
integration-test-providers:
needs: build
runs-on: ubuntu-latest
Expand All @@ -91,7 +85,7 @@ jobs:
ENV_CONTEXT: ${{ toJson(env) }}
VARS_CONTEXT: ${{ toJson(vars) }}
SECRETS_CONTEXT: ${{ toJson(secrets) }}
integrtests-diff2:
integration-tests:
if: github.ref != 'refs/heads/master' && github.ref != 'refs/heads/main'
runs-on: ubuntu-latest
container:
Expand Down
16 changes: 4 additions & 12 deletions .github/workflows/release_draft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,22 +40,15 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: ^1.21

# For some reason goreleaser isn't correctly setting the version
# string used by "dnscontrol version". Therefore, we're forcing the
# string using the GORELEASER_CURRENT_TAG feature.
# TODO(tlim): Use the native gorelease version mechanism.

- name: Retrieve version
id: version
# Stringer is needed because .goreleaser includes "go generate ./..."
- name: Install stringer
run: |
echo "TAG_NAME=$(git config --global --add safe.directory /__w/dnscontrol/dnscontrol ; git describe --tags)" >> $GITHUB_OUTPUT
go install golang.org/x/tools/cmd/stringer@latest

- name: Reveal version
run: echo ${{ steps.version.outputs.TAG_NAME }}
-
id: release
name: Goreleaser release
Expand All @@ -66,4 +59,3 @@ jobs:
args: release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GORELEASER_CURRENT_TAG: ${{ steps.version.outputs.TAG_NAME }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/tmp
/commands/types/dnscontrol.d.ts
dnscontrol-Darwin
dnscontrol-Linux
dnscontrol.exe
Expand Down
9 changes: 6 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,13 @@ builds:
- goos: freebsd
goarch: "386"
ldflags:
- -linkmode=internal -s -w -X main.Version="{{ .Version }}" -X main.SHA="{{ .FullCommit }}" -X main.BuildTime={{ .Timestamp }}
- -linkmode=internal -s -w
- -X main.version={{ .Version }}
before:
hooks:
- go mod tidy
- go fmt ./...
- go mod tidy
- go generate ./...
changelog:
sort: asc
use: github
Expand All @@ -33,7 +36,7 @@ changelog:
regexp: "(?i)^.*(major|new provider|feature)[(\\w)]*:+.*$"
order: 1
- title: 'Provider-specific changes:'
regexp: "(?i)((akamaiedge|autodns|axfrd|azure|azure_private_dns|bind|cloudflare|cloudflareapi_old|cloudns|cscglobal|desec|digitalocean|dnsimple|dnsmadeeasy|doh|domainnameshop|easyname|exoscale|gandi|gcloud|gcore|hedns|hetzner|hexonet|hostingde|inwx|linode|loopia|luadns|msdns|mythicbeasts|namecheap|namedotcom|netcup|netlify|ns1|opensrs|oracle|ovh|packetframe|porkbun|powerdns|route53|rwth|softlayer|transip|vultr).*:)+.*"
regexp: "(?i)((akamaiedge|autodns|axfrd|azure|azure_private_dns|bind|cloudflare|cloudflareapi_old|cloudns|cscglobal|desec|digitalocean|dnsimple|dnsmadeeasy|doh|domainnameshop|dynadot|easyname|exoscale|gandi|gcloud|gcore|hedns|hetzner|hexonet|hostingde|inwx|linode|loopia|luadns|msdns|mythicbeasts|namecheap|namedotcom|netcup|netlify|ns1|opensrs|oracle|ovh|packetframe|porkbun|powerdns|route53|rwth|softlayer|transip|vultr).*:)+.*"
order: 2
- title: 'Documentation:'
regexp: "(?i)^.*(docs)[(\\w)]*:+.*$"
Expand Down
21 changes: 0 additions & 21 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# syntax = docker/dockerfile:1.4

FROM alpine:3.18.5@sha256:34871e7290500828b39e22294660bee86d966bc0017544e848dd9a255cdf59e0 as RUN
FROM alpine:3.19.0@sha256:51b67269f354137895d43f3b3d810bfacd3945438e94dc5ac55fdac340352f48 as RUN

# Add runtime dependencies
# - tzdata: Go time required external dependency eg: TRANSIP and possibly others
Expand Down
3 changes: 2 additions & 1 deletion OWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ providers/akamaiedgedns @svernick
providers/autodns @arnoschoon
providers/axfrddns @hnrgrgr
providers/azuredns @vatsalyagoel
providers/azure_private_dns @matthewmgamble
providers/azureprivatedns @matthewmgamble
providers/bind @tlimoncelli
providers/cloudflare @tresni
providers/cloudns @pragmaton
Expand All @@ -13,6 +13,7 @@ providers/dnsimple @onlyhavecans
providers/dnsmadeeasy @vojtad
providers/doh @mikenz
providers/domainnameshop @SimenBai
providers/dynadot @e-im
providers/easyname @tresni
providers/exoscale @pierre-emmanuelJ
providers/gandiv5 @TomOnTime
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# DNSControl

[![StackExchange/dnscontrol/build](https://github.com/StackExchange/dnscontrol/actions/workflows/build.yml/badge.svg)](https://github.com/StackExchange/dnscontrol/actions/workflows/build.yml)
[![StackExchange/dnscontrol/build](https://github.com/StackExchange/dnscontrol/actions/workflows/pr_test.yml/badge.svg)](https://github.com/StackExchange/dnscontrol/actions/workflows/pr_test.yml)
[![Gitter chat](https://badges.gitter.im/dnscontrol/Lobby.png)](https://gitter.im/dnscontrol/Lobby)
[![Google Group](https://img.shields.io/badge/google%20group-chat-green.svg)](https://groups.google.com/forum/#!forum/dnscontrol-discuss)
[![PkgGoDev](https://pkg.go.dev/badge/github.com/StackExchange/dnscontrol)](https://pkg.go.dev/github.com/StackExchange/dnscontrol/v4)
Expand Down Expand Up @@ -64,6 +64,7 @@ Currently supported Domain Registrars:
- AWS Route 53
- CSC Global
- DNSOVERHTTPS
- Dynadot
- easyname
- Gandi
- HEXONET
Expand Down
70 changes: 0 additions & 70 deletions azure-pipelines.yml

This file was deleted.

19 changes: 0 additions & 19 deletions build/azure-pipelines/choco.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions build/azure-pipelines/go-env.yaml

This file was deleted.

Loading
Loading