Skip to content

Commit

Permalink
Dockerfile: align go version
Browse files Browse the repository at this point in the history
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
  • Loading branch information
crazy-max committed Mar 24, 2023
1 parent f5d698a commit b854eff
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions docker-bake.hcl
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
variable "GO_VERSION" {
default = "1.19.7"
default = null
}
variable "VERSION" {
default = ""
default = null
}
variable "USE_GLIBC" {
default = ""
default = null
}
variable "STRIP_TARGET" {
default = ""
default = null
}
variable "IMAGE_NAME" {
default = "docker-cli"
Expand Down Expand Up @@ -52,7 +52,7 @@ target "binary" {
platforms = ["local"]
output = ["build"]
args = {
BASE_VARIANT = USE_GLIBC != "" ? "bullseye" : "alpine"
BASE_VARIANT = USE_GLIBC == "1" ? "bullseye" : "alpine"
VERSION = VERSION
PACKAGER_NAME = PACKAGER_NAME
GO_STRIP = STRIP_TARGET
Expand All @@ -72,7 +72,7 @@ target "plugins" {
platforms = ["local"]
output = ["build"]
args = {
BASE_VARIANT = USE_GLIBC != "" ? "bullseye" : "alpine"
BASE_VARIANT = USE_GLIBC == "1" ? "bullseye" : "alpine"
VERSION = VERSION
GO_STRIP = STRIP_TARGET
}
Expand Down Expand Up @@ -155,7 +155,7 @@ target "e2e-image" {
output = ["type=docker"]
tags = ["${IMAGE_NAME}"]
args = {
BASE_VARIANT = USE_GLIBC != "" ? "bullseye" : "alpine"
BASE_VARIANT = USE_GLIBC == "1" ? "bullseye" : "alpine"
VERSION = VERSION
}
}
2 changes: 1 addition & 1 deletion dockerfiles/Dockerfile.vendor
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1

ARG GO_VERSION=1.19.4
ARG GO_VERSION=1.19.7
ARG ALPINE_VERSION=3.16
ARG MODOUTDATED_VERSION=v0.8.0

Expand Down

0 comments on commit b854eff

Please sign in to comment.