Skip to content

Commit

Permalink
Merge pull request #2239 from cpanato/GH-2238-images
Browse files Browse the repository at this point in the history
[go] Build go1.17.1 and go1.16.8 images
  • Loading branch information
k8s-ci-robot authored Sep 10, 2021
2 parents 7b14165 + 7f4e835 commit 962f405
Show file tree
Hide file tree
Showing 13 changed files with 65 additions and 30 deletions.
2 changes: 1 addition & 1 deletion Dockerfile-kubepkg
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM golang:1.17-buster AS builder
FROM golang:1.17.1-buster AS builder

ENV GO111MODULE=on

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile-kubepkg-rpm
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM golang:1.17-buster AS builder
FROM golang:1.17.1-buster AS builder

ENV GO111MODULE=on

Expand Down
2 changes: 1 addition & 1 deletion cmd/kpromo/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ IMAGE = $(REGISTRY)/$(IMGNAME)
TAG ?= $(shell git describe --tags --always --dirty)

# Build args
GO_VERSION ?= 1.17
GO_VERSION ?= 1.17.1
OS_CODENAME ?= buster
DISTROLESS_IMAGE ?= static-debian10

Expand Down
2 changes: 1 addition & 1 deletion cmd/kpromo/variants.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
variants:
default:
IMAGE_VERSION: 'v0.1.0-1'
GO_VERSION: '1.17'
GO_VERSION: '1.17.1'
OS_CODENAME: 'buster'
DISTROLESS_IMAGE: 'static-debian10'
2 changes: 1 addition & 1 deletion cmd/vulndash/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ IMAGE = $(REGISTRY)/$(IMGNAME)
TAG ?= $(shell git describe --tags --always --dirty)

# Build args
GO_VERSION ?= 1.17
GO_VERSION ?= 1.17.1
OS_CODENAME ?= buster
DISTROLESS_IMAGE ?= static-debian10

Expand Down
2 changes: 1 addition & 1 deletion cmd/vulndash/variants.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
variants:
default:
IMAGE_VERSION: 'v0.4.3-8'
GO_VERSION: '1.17'
GO_VERSION: '1.17.1'
OS_CODENAME: 'buster'
DISTROLESS_IMAGE: 'static-debian10'
57 changes: 46 additions & 11 deletions dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ dependencies:

# Golang
- name: "golang"
version: 1.17
version: 1.17.1
refPaths:
- path: Dockerfile-kubepkg
match: FROM golang:\d+.\d+(alpha|beta|rc)?\.?(\d+)-(bullseye|buster) AS builder
Expand Down Expand Up @@ -178,7 +178,7 @@ dependencies:
match: v((([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)-([0-9]+)

- name: "k8s.gcr.io/build-image/go-runner"
version: v2.3.1-go1.17-buster.0
version: v2.3.1-go1.17.1-buster.0
refPaths:
- path: images/build/go-runner/variants.yaml
match: v((([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)
Expand All @@ -192,7 +192,7 @@ dependencies:
match: REVISION:\ '\d+'

- name: "k8s.gcr.io/build-image/kube-cross"
version: v1.23.0-go1.17-buster.0
version: v1.23.0-go1.17.1-buster.0
refPaths:
- path: images/build/cross/variants.yaml
match: "IMAGE_VERSION: 'v((([0-9]+)\\.([0-9]+)\\.([0-9]+)(?:-([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)'"
Expand Down Expand Up @@ -238,7 +238,7 @@ dependencies:
match: REVISION:\ '\d+'

- name: "k8s.gcr.io/build-image/go-runner (next candidate)"
version: v2.3.1-go1.17-buster.0
version: v2.3.1-go1.17.1-buster.0
refPaths:
- path: images/build/go-runner/variants.yaml
match: "IMAGE_VERSION: 'v((([0-9]+)\\.([0-9]+)\\.([0-9]+)(?:-([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)'"
Expand All @@ -250,7 +250,7 @@ dependencies:
match: REVISION:\ '\d+'

- name: "k8s.gcr.io/build-image/kube-cross (next candidate)"
version: v1.23.0-go1.17-buster.0
version: v1.23.0-go1.17.1-buster.0
refPaths:
- path: images/build/cross/variants.yaml
match: "IMAGE_VERSION: 'v((([0-9]+)\\.([0-9]+)\\.([0-9]+)(?:-([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)'"
Expand All @@ -267,7 +267,24 @@ dependencies:
- path: images/k8s-cloud-builder/variants.yaml
match: "KUBE_CROSS_VERSION: 'v((([0-9]+)\\.([0-9]+)\\.([0-9]+)(?:-([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)'"

# Golang (for previous release branches)
# Golang (for previous release branches 1.21/1.22)
- name: "golang (for previous release branches)"
version: 1.16.8
refPaths:
- path: images/build/cross/variants.yaml
match: \d+.\d+(alpha|beta|rc)?\.?(\d+)?
- path: images/build/go-runner/variants.yaml
match: \d+.\d+(alpha|beta|rc)?\.?(\d+)?
- path: images/releng/ci/variants.yaml
match: \d+.\d+(alpha|beta|rc)?\.?(\d+)?

- name: "golang: after kubernetes/kubernetes update (for previous release branches 1.21/1.22)"
version: 1.16.7
refPaths:
- path: images/releng/k8s-ci-builder/variants.yaml
match: \d+.\d+(alpha|beta|rc)?\.?(\d+)?

# Golang (for previous release branches 1.19/1.20)
- name: "golang (for previous release branches)"
version: 1.15.15
refPaths:
Expand All @@ -278,7 +295,7 @@ dependencies:
- path: images/releng/ci/variants.yaml
match: \d+.\d+(alpha|beta|rc)?\.?(\d+)?

- name: "golang: after kubernetes/kubernetes update (for previous release branches)"
- name: "golang: after kubernetes/kubernetes update (for previous release branches 1.19/1.20)"
version: 1.15.15
refPaths:
- path: images/releng/k8s-ci-builder/variants.yaml
Expand All @@ -291,7 +308,13 @@ dependencies:
- path: images/releng/ci/variants.yaml
match: REVISION:\ '\d+'

- name: "k8s.gcr.io/build-image/go-runner (for previous release branches)"
- name: "k8s.gcr.io/build-image/go-runner (for previous release branches 1.21/1.22)"
version: v2.3.1-go1.16.8-buster.0
refPaths:
- path: images/build/go-runner/variants.yaml
match: v((([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)

- name: "k8s.gcr.io/build-image/go-runner (for previous release branches 1.19/1.20)"
version: v2.3.1-go1.15.15-buster.0
refPaths:
- path: images/build/go-runner/variants.yaml
Expand All @@ -303,19 +326,31 @@ dependencies:
- path: images/build/go-runner/variants.yaml
match: REVISION:\ '\d+'

- name: "k8s.gcr.io/build-image/kube-cross (for previous release branches)"
- name: "k8s.gcr.io/build-image/kube-cross (for previous release branches 1.21/1.22)"
version: v1.22.0-go1.16.8-buster.0
refPaths:
- path: images/build/cross/variants.yaml
match: "IMAGE_VERSION: 'v((([0-9]+)\\.([0-9]+)\\.([0-9]+)(?:-([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)'"

- name: "k8s.gcr.io/build-image/kube-cross: config variant (for previous release branches 1.21/1.22)"
version: go1.16-buster
refPaths:
- path: images/build/cross/variants.yaml
match: "CONFIG: 'go\\d+.\\d+-(bullseye|buster)'"

- name: "k8s.gcr.io/build-image/kube-cross (for previous release branches 1.19/1.20)"
version: v1.20.0-go1.15.15-buster.0
refPaths:
- path: images/build/cross/variants.yaml
match: "IMAGE_VERSION: 'v((([0-9]+)\\.([0-9]+)\\.([0-9]+)(?:-([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)'"

- name: "k8s.gcr.io/build-image/kube-cross: config variant (for previous release branches)"
- name: "k8s.gcr.io/build-image/kube-cross: config variant (for previous release branches 1.19/1.20)"
version: go1.15-buster
refPaths:
- path: images/build/cross/variants.yaml
match: "CONFIG: 'go\\d+.\\d+-(bullseye|buster)'"

- name: "k8s.gcr.io/build-image/kube-cross: dependents (for previous release branches)"
- name: "k8s.gcr.io/build-image/kube-cross: dependents (for previous release branches 1.19/1.20)"
version: v1.15.15-legacy-1
refPaths:
- path: images/k8s-cloud-builder/variants.yaml
Expand Down
2 changes: 1 addition & 1 deletion images/build/cross/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ IMGNAME = kube-cross
# - v1.100.0-go1.17-buster.0 satisfies SemVer regex, while:
# - v1.100-go1.17-buster.0 does not
KUBERNETES_VERSION ?= v1.22.0
GO_VERSION ?= 1.17
GO_VERSION ?= 1.17.1
GO_MAJOR_VERSION ?= 1.17
OS_CODENAME ?= buster
REVISION ?= 0
Expand Down
8 changes: 4 additions & 4 deletions images/build/cross/variants.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ variants:
go1.17-buster:
CONFIG: 'go1.17-buster'
TYPE: 'default'
IMAGE_VERSION: 'v1.23.0-go1.17-buster.0'
IMAGE_VERSION: 'v1.23.0-go1.17.1-buster.0'
KUBERNETES_VERSION: 'v1.23.0'
GO_VERSION: '1.17'
GO_VERSION: '1.17.1'
GO_MAJOR_VERSION: '1.17'
OS_CODENAME: 'buster'
REVISION: '0'
PROTOBUF_VERSION: '3.7.0'
go1.16-buster:
CONFIG: 'go1.16-buster'
TYPE: 'default'
IMAGE_VERSION: 'v1.22.0-go1.16.7-buster.0'
IMAGE_VERSION: 'v1.22.0-go1.16.8-buster.0'
KUBERNETES_VERSION: 'v1.22.0'
GO_VERSION: '1.16.7'
GO_VERSION: '1.16.8'
GO_MAJOR_VERSION: '1.16'
OS_CODENAME: 'buster'
REVISION: '0'
Expand Down
2 changes: 1 addition & 1 deletion images/build/go-runner/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ GO_MAJOR_VERSION ?= 1.17
REVISION ?= 0

# Build args
GO_VERSION ?= 1.17
GO_VERSION ?= 1.17.1
OS_CODENAME ?= buster
DISTROLESS_IMAGE ?= static-debian10

Expand Down
8 changes: 4 additions & 4 deletions images/build/go-runner/variants.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
variants:
go1.17-buster:
CONFIG: 'go1.17-buster'
IMAGE_VERSION: 'v2.3.1-go1.17-buster.0'
IMAGE_VERSION: 'v2.3.1-go1.17.1-buster.0'
GO_MAJOR_VERSION: '1.17'
OS_CODENAME: 'buster'
REVISION: '0'
GO_VERSION: '1.17'
GO_VERSION: '1.17.1'
DISTROLESS_IMAGE: 'static-debian10'
go1.16-buster:
CONFIG: 'go1.16-buster'
IMAGE_VERSION: 'v2.3.1-go1.16.7-buster.0'
IMAGE_VERSION: 'v2.3.1-go1.16.8-buster.0'
GO_MAJOR_VERSION: '1.16'
OS_CODENAME: 'buster'
REVISION: '0'
GO_VERSION: '1.16.7'
GO_VERSION: '1.16.8'
DISTROLESS_IMAGE: 'static-debian10'
go1.15-buster:
CONFIG: 'go1.15-buster'
Expand Down
4 changes: 2 additions & 2 deletions images/releng/ci/variants.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
variants:
go1.17-buster:
CONFIG: 'go1.17-buster'
GO_VERSION: '1.17'
GO_VERSION: '1.17.1'
OS_CODENAME: 'buster'
REVISION: '0'
go1.16-buster:
CONFIG: 'go1.16-buster'
GO_VERSION: '1.16.7'
GO_VERSION: '1.16.8'
OS_CODENAME: 'buster'
REVISION: '0'
go1.15-buster:
Expand Down
2 changes: 1 addition & 1 deletion packages/deb/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM golang:1.17-buster
FROM golang:1.17.1-buster

RUN export DEBIAN_FRONTEND=noninteractive \
&& apt-get update -y \
Expand Down

0 comments on commit 962f405

Please sign in to comment.