Skip to content

Commit

Permalink
Merge pull request #17 from skdltmxn/config/go-version
Browse files Browse the repository at this point in the history
update go version to 1.19
  • Loading branch information
bitofsky authored Dec 14, 2022
2 parents abbc92c + 30c855d commit a47b4c3
Show file tree
Hide file tree
Showing 5 changed files with 198 additions and 1,065 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,28 @@ on:
branches: [ main ]

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: 1.16
go-version: 1.19
check-latest: true

- name: Build
run: go build -v ./...
run: make

- name: Test
run: go test -v ./...
env:
TEST_DOCKER_PRIVATE_SKIP: "1"
TEST_DOCKER_ECR_SKIP: "1"


- name: Archive
uses: actions/upload-artifact@v3
with:
name: kube-image-deployer
path: build/*
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
__debug_bin
.env
build
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/make -f

BUILDDIR ?= $(CURDIR)/build

ldflags := -w -s
BUILD_FLAGS := -ldflags '$(ldflags)' -trimpath

.PHONY: all kube-image-deployer

all: kube-image-deployer

kube-image-deployer:
@go build -mod=readonly $(BUILD_FLAGS) -o $(BUILDDIR)/kube-image-deployer ./main.go
63 changes: 56 additions & 7 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,14 +1,63 @@
module github.com/pubg/kube-image-deployer

go 1.16
go 1.19

require (
github.com/aws/aws-sdk-go v1.40.49
github.com/google/go-containerregistry v0.6.0
github.com/aws/aws-sdk-go v1.44.158
github.com/google/go-containerregistry v0.12.1
github.com/joho/godotenv v1.4.0
k8s.io/api v0.22.2
k8s.io/apimachinery v0.22.2
k8s.io/client-go v0.22.2
k8s.io/api v0.26.0
k8s.io/apimachinery v0.26.0
k8s.io/client-go v0.26.0
k8s.io/klog v1.0.0
k8s.io/klog/v2 v2.9.0
k8s.io/klog/v2 v2.80.1
)

require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/docker/cli v20.10.21+incompatible // indirect
github.com/docker/distribution v2.8.1+incompatible // indirect
github.com/docker/docker v20.10.21+incompatible // indirect
github.com/docker/docker-credential-helpers v0.7.0 // indirect
github.com/emicklei/go-restful/v3 v3.10.1 // indirect
github.com/go-logr/logr v1.2.3 // indirect
github.com/go-openapi/jsonpointer v0.19.5 // indirect
github.com/go-openapi/jsonreference v0.20.0 // indirect
github.com/go-openapi/swag v0.22.3 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/google/gnostic v0.6.9 // indirect
github.com/google/go-cmp v0.5.9 // indirect
github.com/google/gofuzz v1.2.0 // indirect
github.com/imdario/mergo v0.3.13 // indirect
github.com/jmespath/go-jmespath v0.4.0 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/opencontainers/go-digest v1.0.0 // indirect
github.com/opencontainers/image-spec v1.1.0-rc2 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/sirupsen/logrus v1.9.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
golang.org/x/net v0.4.0 // indirect
golang.org/x/oauth2 v0.3.0 // indirect
golang.org/x/sync v0.1.0 // indirect
golang.org/x/sys v0.3.0 // indirect
golang.org/x/term v0.3.0 // indirect
golang.org/x/text v0.5.0 // indirect
golang.org/x/time v0.3.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/protobuf v1.28.1 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
k8s.io/kube-openapi v0.0.0-20221207184640-f3cff1453715 // indirect
k8s.io/utils v0.0.0-20221128185143-99ec85e7a448 // indirect
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
sigs.k8s.io/yaml v1.3.0 // indirect
)
Loading

0 comments on commit a47b4c3

Please sign in to comment.