This commit is contained in:
mkelcik
2023-12-09 16:20:31 +01:00
parent 17afc65f92
commit 316a40b662
3 changed files with 5 additions and 5 deletions

View File

@@ -22,7 +22,7 @@ jobs:
steps:
- uses: actions/setup-go@v4
with:
go-version: '1.20'
go-version: '1.21'
cache: false
- uses: actions/checkout@v3
- name: golangci-lint
@@ -39,7 +39,7 @@ jobs:
- name: Prepare go environment
uses: actions/setup-go@v4
with:
go-version: '1.20'
go-version: '1.21'
cache: false
- name: Install dep scanner
run: |
@@ -58,7 +58,7 @@ jobs:
- name: Prepare go environment
uses: actions/setup-go@v4
with:
go-version: '1.20'
go-version: '1.21'
cache: false
- name: Run tests
run: go test --cover -coverprofile coverage.out -covermode count -v ./...

View File

@@ -4,7 +4,7 @@ FROM golang:1.21 as build
COPY . /opt/project/
WORKDIR /opt/project
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates=20210119
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates
RUN CGO_ENABLED=0 go build -ldflags="-s -w" -o /cloudflare-ddns-updater

View File

@@ -83,7 +83,7 @@ func main() {
}
if config.OnChangeComment != "" {
update.Comment = config.OnChangeComment
update.Comment = &config.OnChangeComment
}
if _, err := api.UpdateDNSRecord(ctx, cloudflare.ZoneIdentifier(zoneID), update); err != nil {