mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-10 02:22:57 +01:00
Add Rust lang
This commit is contained in:
parent
207a35971c
commit
2001e1f9f1
8 changed files with 72 additions and 1 deletions
|
|
@ -61,6 +61,18 @@ function print_golang_args() {
|
|||
printf -- "--build-arg GOLANG_DOWNLOAD_SHA256=%q " "${GOLANG_DOWNLOAD_SHA256[*]}"
|
||||
}
|
||||
|
||||
function print_rust_args() {
|
||||
case "$1" in
|
||||
1.65.0)
|
||||
RUST_VERSION="1.65.0"
|
||||
;;
|
||||
|
||||
*) fail "Unknown rust version $1" ;;
|
||||
esac
|
||||
|
||||
printf -- "--build-arg RUST_VERSION=%s " "$RUST_VERSION"
|
||||
}
|
||||
|
||||
# If you add a new minor version here, be sure to check that the
|
||||
# Chrome versions can be found at https://www.ubuntuupdates.org/pm/google-chrome-stable.
|
||||
# ChromeDriver supports this: https://sites.google.com/chromium.org/driver/downloads
|
||||
|
|
@ -339,6 +351,7 @@ function parse_arguments() {
|
|||
BUNDLER) print_bundler_args $version ;;
|
||||
RUBYGEMS) print_rubygems_args $version ;;
|
||||
GOLANG) print_golang_args $version ;;
|
||||
RUST) print_rust_args $version ;;
|
||||
CHROME) print_chrome_args $version ;;
|
||||
DOCKER) print_docker_args $version ;;
|
||||
BUILDX) print_buildx_args $version ;;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue