Add Go 1.21 to GitLab and Gitaly images

There is currently no FIPS branch for Go 1.21 yet, so we use
the Go 1.20.6 branch as a placeholder for now.
This commit is contained in:
Stan Hu 2023-08-08 22:37:04 -07:00
parent 6baabc07e5
commit 31fffdee1f
No known key found for this signature in database
GPG key ID: 8D3931AD39CC7A20
4 changed files with 13 additions and 5 deletions

View file

@ -32,6 +32,9 @@ function build_ubi() {
# This is a workaround until https://github.com/golang-fips/go/issues/82 is resolved.
if [[ $GO_MAJOR_VERSION == "1.20" ]]; then
GO_BRANCH="go1.20.5-2-openssl-fips"
# This is a workaround until https://github.com/golang-fips/go/pull/107 is released.
elif [[ $GO_MAJOR_VERSION == "1.21" ]]; then
GO_BRANCH="go1.20.6-1-openssl-fips"
else
GO_BRANCH="go${GO_MAJOR_VERSION}-fips-release"
fi