Skip to content

Commit 4186d80

Browse files
authored
Merge pull request #21 from calebdoxsey/upgrade
upgrades
2 parents b83bc1d + b809017 commit 4186d80

File tree

8 files changed

+735
-99
lines changed

8 files changed

+735
-99
lines changed

.github/workflows/build.yaml

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches:
6+
- "master"
7+
tags:
8+
- "v*"
9+
pull_request:
10+
branches:
11+
- "master"
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: checkout
18+
uses: actions/checkout@v2
19+
20+
- name: setup qemu
21+
uses: docker/setup-qemu-action@v1
22+
- name: setup buildx
23+
uses: docker/setup-buildx-action@v1
24+
with:
25+
install: true
26+
27+
- name: docker metadata
28+
id: metadata
29+
uses: docker/metadata-action@v3
30+
with:
31+
images: quay.io/calebdoxsey/kubernetes-cloudflare-sync
32+
33+
- name: docker login
34+
uses: docker/login-action@v1
35+
with:
36+
registry: quay.io
37+
username: ${{ secrets.QUAY_USERNAME }}
38+
password: ${{ secrets.QUAY_PASSWORD }}
39+
40+
- name: build and push
41+
uses: docker/build-push-action@v2
42+
with:
43+
context: .
44+
push: true
45+
tags: ${{ steps.metadata.outputs.tags }}
46+
labels: ${{ steps.metadata.outputs.labels }}

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
bin/
1+
.vscode/
2+
bin/

Dockerfile

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
FROM golang:1.12-alpine as build
2-
ENV GO111MODULE=on
1+
FROM golang:1.17-alpine as build
32

43
RUN apk add --update --no-cache build-base git
54

@@ -12,7 +11,7 @@ WORKDIR /src
1211

1312

1413

15-
COPY go.mod ./
14+
COPY go.mod go.sum ./
1615
RUN go mod download
1716

1817
COPY *.go ./

go.mod

+35-28
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,43 @@
11
module github.com/calebdoxsey/kubernetes-cloudflare-sync
22

3+
go 1.17
4+
5+
require (
6+
github.com/cloudflare/cloudflare-go v0.30.0
7+
github.com/pkg/errors v0.9.1
8+
github.com/stretchr/testify v1.7.0
9+
k8s.io/api v0.23.2
10+
k8s.io/apimachinery v0.23.2
11+
k8s.io/client-go v0.23.2
12+
)
13+
314
require (
4-
github.com/cloudflare/cloudflare-go v0.8.5
515
github.com/davecgh/go-spew v1.1.1 // indirect
6-
github.com/ghodss/yaml v1.0.0 // indirect
7-
github.com/gogo/protobuf v1.1.1 // indirect
8-
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b // indirect
9-
github.com/golang/groupcache v0.0.0-20181024230925-c65c006176ff // indirect
10-
github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c // indirect
11-
github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf // indirect
12-
github.com/googleapis/gnostic v0.2.0 // indirect
13-
github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7 // indirect
14-
github.com/hashicorp/golang-lru v0.5.0 // indirect
15-
github.com/json-iterator/go v1.1.5 // indirect
16+
github.com/go-logr/logr v1.2.2 // indirect
17+
github.com/gogo/protobuf v1.3.2 // indirect
18+
github.com/golang/protobuf v1.5.2 // indirect
19+
github.com/google/go-cmp v0.5.7 // indirect
20+
github.com/google/gofuzz v1.2.0 // indirect
21+
github.com/googleapis/gnostic v0.5.5 // indirect
22+
github.com/json-iterator/go v1.1.12 // indirect
1623
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
17-
github.com/modern-go/reflect2 v1.0.1 // indirect
18-
github.com/peterbourgon/diskv v2.0.1+incompatible // indirect
19-
github.com/pkg/errors v0.8.0
24+
github.com/modern-go/reflect2 v1.0.2 // indirect
2025
github.com/pmezard/go-difflib v1.0.0 // indirect
21-
github.com/spf13/pflag v1.0.2 // indirect
22-
github.com/stretchr/testify v1.2.2
23-
golang.org/x/crypto v0.0.0-20180904163835-0709b304e793 // indirect
24-
golang.org/x/net v0.0.0-20180906233101-161cd47e91fd // indirect
25-
golang.org/x/oauth2 v0.0.0-20181203162652-d668ce993890 // indirect
26-
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f // indirect
27-
golang.org/x/sys v0.0.0-20180907202204-917fdcba135d // indirect
28-
golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2 // indirect
29-
google.golang.org/appengine v1.4.0 // indirect
26+
golang.org/x/net v0.0.0-20220121210141-e204ce36a2ba // indirect
27+
golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8 // indirect
28+
golang.org/x/sys v0.0.0-20220114195835-da31bd327af9 // indirect
29+
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 // indirect
30+
golang.org/x/text v0.3.7 // indirect
31+
golang.org/x/time v0.0.0-20211116232009-f0f3c7e86c11 // indirect
32+
google.golang.org/appengine v1.6.7 // indirect
33+
google.golang.org/protobuf v1.27.1 // indirect
3034
gopkg.in/inf.v0 v0.9.1 // indirect
31-
gopkg.in/yaml.v2 v2.2.1 // indirect
32-
k8s.io/api v0.0.0-20181221193117-173ce66c1e39
33-
k8s.io/apimachinery v0.0.0-20181108192626-90473842928c
34-
k8s.io/client-go v9.0.0+incompatible
35-
sigs.k8s.io/yaml v1.1.0 // indirect
35+
gopkg.in/yaml.v2 v2.4.0 // indirect
36+
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
37+
k8s.io/klog/v2 v2.40.1 // indirect
38+
k8s.io/kube-openapi v0.0.0-20220124234850-424119656bbf // indirect
39+
k8s.io/utils v0.0.0-20211208161948-7d6a63dca704 // indirect
40+
sigs.k8s.io/json v0.0.0-20211208200746-9f7c6b3444d2 // indirect
41+
sigs.k8s.io/structured-merge-diff/v4 v4.2.1 // indirect
42+
sigs.k8s.io/yaml v1.3.0 // indirect
3643
)

0 commit comments

Comments
 (0)