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

@ -16,10 +16,10 @@ gitaly:
parallel:
matrix:
- OS: ['debian:bullseye']
GOLANG: ['1.19', '1.20']
GOLANG: ['1.19', '1.20', '1.21']
RUST: ['1.65']
GIT: ['2.36']
- OS: ['ubi:8.6']
GOLANG: ['1.19', '1.20']
GOLANG: ['1.19', '1.20', '1.21']
RUST: ['1.65']
GIT: ['2.36']

View file

@ -26,7 +26,7 @@ gitlab:
RUBY: ['3.0.patched', '3.1.patched', '3.2.patched']
GIT: ['2.36']
POSTGRESQL: ['12', '13', '14', '15']
GOLANG: ['1.19', '1.20']
GOLANG: ['1.19', '1.20', '1.21']
RUST: ['1.65']
NODE: ['18.17']
CHROME: ['109', '113']
@ -73,11 +73,11 @@ gitlab-workhorse:
matrix:
- OS: ['debian:bullseye']
RUBY: ['3.0', '3.1', '3.2']
GOLANG: ['1.19', '1.20']
GOLANG: ['1.19', '1.20', '1.21']
RUST: ['1.65']
GIT: ['2.36']
- OS: ['ubi:8.6']
RUBY: ['3.0', '3.1', '3.2']
GOLANG: ['1.19', '1.20']
GOLANG: ['1.19', '1.20', '1.21']
RUST: ['1.65']
GIT: ['2.36']

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

View file

@ -54,6 +54,11 @@ function print_golang_args() {
GOLANG_DOWNLOAD_SHA256[amd64]="d7ec48cde0d3d2be2c69203bc3e0a44de8660b9c09a6e85c4732a3f7dc442612"
GOLANG_DOWNLOAD_SHA256[arm64]="aa2fab0a7da20213ff975fa7876a66d47b48351558d98851b87d1cfef4360d09"
;;
1.21)
INSTALL_GOLANG_VERSION=1.21.0 # Update scripts/install-golang for FIPS if this version is bumped
GOLANG_DOWNLOAD_SHA256[amd64]="d0398903a16ba2232b389fb31032ddf57cac34efda306a0eebac34f0965a0742"
GOLANG_DOWNLOAD_SHA256[arm64]="f3d4548edf9b22f26bbd49720350bbfe59d75b7090a1a2bff1afad8214febaf3"
;;
*) fail "Unknown golang version $1" ;;
esac