fix: downgrade to Go 1.22.4 for Alpine builds

This commit is contained in:
Kévin Dunglas
2024-07-03 16:26:52 +02:00
parent 8ff6cfdda8
commit ae4ebd11f6

View File

@@ -38,6 +38,7 @@ function "tag" {
]
}
# cleanTag ensures that the tag is a valid Docker tag
# cleanTag ensures that the tag is a valid Docker tag
# see https://github.com/distribution/distribution/blob/v2.8.2/reference/regexp.go#L37
function "clean_tag" {
@@ -81,7 +82,8 @@ target "default" {
}
contexts = {
php-base = "docker-image://php:${php-version}-zts-${os}"
golang-base = "docker-image://golang:${GO_VERSION}-${os}"
# FIXME: temporary workaround for https://github.com/dunglas/symfony-docker/issues/646
golang-base = "docker-image://golang:${os == "alpine" ? "1.22.4" : GO_VERSION}-${os}"
}
dockerfile = os == "alpine" ? "alpine.Dockerfile" : "Dockerfile"
context = "./"
@@ -118,7 +120,9 @@ target "default" {
target "static-builder" {
contexts = {
golang-base = "docker-image://golang:${GO_VERSION}-alpine"
# FIXME: temporary workaround for https://github.com/dunglas/symfony-docker/issues/646
#golang-base = "docker-image://golang:${GO_VERSION}-alpine"
golang-base = "docker-image://golang:1.22.4-alpine"
}
dockerfile = "static-builder.Dockerfile"
context = "./"