Skip to content

Commit a47b4c3

Browse files
authored
Merge pull request #17 from skdltmxn/config/go-version
update go version to 1.19
2 parents abbc92c + 30c855d commit a47b4c3

File tree

5 files changed

+198
-1065
lines changed

5 files changed

+198
-1065
lines changed

.github/workflows/go.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,28 @@ on:
77
branches: [ main ]
88

99
jobs:
10-
1110
build:
1211
runs-on: ubuntu-latest
1312
steps:
14-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v3
1514

1615
- name: Set up Go
17-
uses: actions/setup-go@v2
16+
uses: actions/setup-go@v3
1817
with:
19-
go-version: 1.16
18+
go-version: 1.19
19+
check-latest: true
2020

2121
- name: Build
22-
run: go build -v ./...
22+
run: make
2323

2424
- name: Test
2525
run: go test -v ./...
2626
env:
2727
TEST_DOCKER_PRIVATE_SKIP: "1"
2828
TEST_DOCKER_ECR_SKIP: "1"
29-
29+
30+
- name: Archive
31+
uses: actions/upload-artifact@v3
32+
with:
33+
name: kube-image-deployer
34+
path: build/*

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
__debug_bin
22
.env
3+
build

Makefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/make -f
2+
3+
BUILDDIR ?= $(CURDIR)/build
4+
5+
ldflags := -w -s
6+
BUILD_FLAGS := -ldflags '$(ldflags)' -trimpath
7+
8+
.PHONY: all kube-image-deployer
9+
10+
all: kube-image-deployer
11+
12+
kube-image-deployer:
13+
@go build -mod=readonly $(BUILD_FLAGS) -o $(BUILDDIR)/kube-image-deployer ./main.go

go.mod

Lines changed: 56 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,63 @@
11
module github.com/pubg/kube-image-deployer
22

3-
go 1.16
3+
go 1.19
44

55
require (
6-
github.com/aws/aws-sdk-go v1.40.49
7-
github.com/google/go-containerregistry v0.6.0
6+
github.com/aws/aws-sdk-go v1.44.158
7+
github.com/google/go-containerregistry v0.12.1
88
github.com/joho/godotenv v1.4.0
9-
k8s.io/api v0.22.2
10-
k8s.io/apimachinery v0.22.2
11-
k8s.io/client-go v0.22.2
9+
k8s.io/api v0.26.0
10+
k8s.io/apimachinery v0.26.0
11+
k8s.io/client-go v0.26.0
1212
k8s.io/klog v1.0.0
13-
k8s.io/klog/v2 v2.9.0
13+
k8s.io/klog/v2 v2.80.1
14+
)
15+
16+
require (
17+
github.com/davecgh/go-spew v1.1.1 // indirect
18+
github.com/docker/cli v20.10.21+incompatible // indirect
19+
github.com/docker/distribution v2.8.1+incompatible // indirect
20+
github.com/docker/docker v20.10.21+incompatible // indirect
21+
github.com/docker/docker-credential-helpers v0.7.0 // indirect
22+
github.com/emicklei/go-restful/v3 v3.10.1 // indirect
23+
github.com/go-logr/logr v1.2.3 // indirect
24+
github.com/go-openapi/jsonpointer v0.19.5 // indirect
25+
github.com/go-openapi/jsonreference v0.20.0 // indirect
26+
github.com/go-openapi/swag v0.22.3 // indirect
27+
github.com/gogo/protobuf v1.3.2 // indirect
28+
github.com/golang/protobuf v1.5.2 // indirect
29+
github.com/google/gnostic v0.6.9 // indirect
30+
github.com/google/go-cmp v0.5.9 // indirect
31+
github.com/google/gofuzz v1.2.0 // indirect
32+
github.com/imdario/mergo v0.3.13 // indirect
33+
github.com/jmespath/go-jmespath v0.4.0 // indirect
34+
github.com/josharian/intern v1.0.0 // indirect
35+
github.com/json-iterator/go v1.1.12 // indirect
36+
github.com/mailru/easyjson v0.7.7 // indirect
37+
github.com/mitchellh/go-homedir v1.1.0 // indirect
38+
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
39+
github.com/modern-go/reflect2 v1.0.2 // indirect
40+
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
41+
github.com/opencontainers/go-digest v1.0.0 // indirect
42+
github.com/opencontainers/image-spec v1.1.0-rc2 // indirect
43+
github.com/pkg/errors v0.9.1 // indirect
44+
github.com/sirupsen/logrus v1.9.0 // indirect
45+
github.com/spf13/pflag v1.0.5 // indirect
46+
golang.org/x/net v0.4.0 // indirect
47+
golang.org/x/oauth2 v0.3.0 // indirect
48+
golang.org/x/sync v0.1.0 // indirect
49+
golang.org/x/sys v0.3.0 // indirect
50+
golang.org/x/term v0.3.0 // indirect
51+
golang.org/x/text v0.5.0 // indirect
52+
golang.org/x/time v0.3.0 // indirect
53+
google.golang.org/appengine v1.6.7 // indirect
54+
google.golang.org/protobuf v1.28.1 // indirect
55+
gopkg.in/inf.v0 v0.9.1 // indirect
56+
gopkg.in/yaml.v2 v2.4.0 // indirect
57+
gopkg.in/yaml.v3 v3.0.1 // indirect
58+
k8s.io/kube-openapi v0.0.0-20221207184640-f3cff1453715 // indirect
59+
k8s.io/utils v0.0.0-20221128185143-99ec85e7a448 // indirect
60+
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
61+
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
62+
sigs.k8s.io/yaml v1.3.0 // indirect
1463
)

0 commit comments

Comments
 (0)