From 6035345fb1fee44d623e2816d46e6ed01681f442 Mon Sep 17 00:00:00 2001 From: Garrison Davis Date: Wed, 12 Oct 2022 12:32:52 -0600 Subject: [PATCH] Upgrade CI to Go 1.19.2 (#2246) All jobs now use GOVERSION or GOFUTURE to determine the docker image pulled. GOFUTURE is latest so that it will always use the latest version as new versions are released. We can later lock it to a specific minor version when there is another one released. Co-authored-by: Garrison Davis --- .gitlab/.gitlab-ci.yml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.gitlab/.gitlab-ci.yml b/.gitlab/.gitlab-ci.yml index c1b95e284..33d842f94 100644 --- a/.gitlab/.gitlab-ci.yml +++ b/.gitlab/.gitlab-ci.yml @@ -24,7 +24,8 @@ gosec-sast: - gosec convert gosec.json > gl-sast-report.json variables: - GOVERSION: "1.19.1" + GOVERSION: "1.19.2" + GOFUTURE: "latest" stages: - lint @@ -230,7 +231,7 @@ run go tests shardwidth22: # run the regular tests twice and also run the future tests. run go tests future: stage: test - image: golang:1.18 + image: golang:$GOFUTURE extends: .go-cache rules: - if: '$CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "schedule" || $CI_PIPELINE_SOURCE == "web"' @@ -248,7 +249,7 @@ run go tests future: run go tests future plg: stage: test - image: golang:1.18 + image: golang:$GOFUTURE extends: .go-cache rules: - if: '$CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "schedule" || $CI_PIPELINE_SOURCE == "web"' @@ -983,8 +984,8 @@ samsung-gauntlet: - chmod 700 /root/.ssh - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config' - apt update && apt -y install jq wget - - wget -q https://go.dev/dl/go1.19.1.linux-amd64.tar.gz - - tar -C /usr/local -xzf go1.19.1.linux-amd64.tar.gz + - wget -q "https://go.dev/dl/go$GOVERSION.linux-amd64.tar.gz" + - tar -C /usr/local -xzf "go$GOVERSION.linux-amd64.tar.gz" - export PATH=$PATH:/usr/local/go/bin - TF_VAR_cluster_prefix="pipeline-$CI_PIPELINE_ID-gauntlet-$CI_JOB_ID" - echo "Cluster Prefix --> $TF_VAR_cluster_prefix" @@ -1045,8 +1046,8 @@ backup-restore-gauntlet: - chmod 700 /root/.ssh - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config' - apt update && apt -y install jq wget - - wget -q https://go.dev/dl/go1.19.1.linux-amd64.tar.gz - - tar -C /usr/local -xzf go1.19.1.linux-amd64.tar.gz + - wget -q "https://go.dev/dl/go$GOVERSION.linux-amd64.tar.gz" + - tar -C /usr/local -xzf "go$GOVERSION.linux-amd64.tar.gz" - export PATH=$PATH:/usr/local/go/bin - TF_VAR_cluster_prefix="pipeline-$CI_PIPELINE_ID-gauntlet-$CI_JOB_ID" - echo "Cluster Prefix --> $TF_VAR_cluster_prefix" @@ -1170,8 +1171,8 @@ perf_delete: - chmod 700 /root/.ssh - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config' - apt update && apt -y install jq wget - - wget -q https://go.dev/dl/go1.19.1.linux-amd64.tar.gz - - tar -C /usr/local -xzf go1.19.1.linux-amd64.tar.gz + - wget -q "https://go.dev/dl/go$GOVERSION.linux-amd64.tar.gz" + - tar -C /usr/local -xzf "go$GOVERSION.linux-amd64.tar.gz" - export PATH=$PATH:/usr/local/go/bin - TF_VAR_cluster_prefix="pipeline-$CI_PIPELINE_ID-delete-$CI_JOB_ID" - echo "Cluster Prefix --> $TF_VAR_cluster_prefix"