aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorDmitri Shuralyov <dmitshur@golang.org>2023-02-01 18:27:37 -0500
committerGopher Robot <gobot@golang.org>2023-02-02 18:12:57 +0000
commitb3fbc1164aea57ec60389406e75fe6bc02cdc2c8 (patch)
tree5aa83b0d796d05c7cbf06717e92ceaa8f97b4a41 /cmd
parent60ed43b1ad4791687871e28a7ecc28e2b82692c2 (diff)
downloadgo-x-website-b3fbc1164aea57ec60389406e75fe6bc02cdc2c8.tar.xz
cmd/golangorg: move _GO_REF value from trigger to config file
The cmd/golangorg/cloudbuild.yaml Cloud Build configuration file is used by a single Cloud Build trigger that substitutes _GO_REF with the current Go release branch: "release-branch.go1.20" as of Feb 1. This value changes whenever there's a major Go release. With the way things are set up now, it seems there's less overhead in changing this value via a Gerrit CL than by editing the trigger, so remove the _GO_REF layer of indirection. If something about the Go release process or website deployment changes to make it easier to maintain this value externally, we can change this once again. Change-Id: Ie8ebc257031c7fd5c10f0cd91dd71093e69ba157 Reviewed-on: https://go-review.googlesource.com/c/website/+/464595 Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Michael Knyszek <mknyszek@google.com> Reviewed-by: Jamal Carvalho <jamal@golang.org> Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/golangorg/cloudbuild.yaml2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/golangorg/cloudbuild.yaml b/cmd/golangorg/cloudbuild.yaml
index f2652fc2..38ad0cea 100644
--- a/cmd/golangorg/cloudbuild.yaml
+++ b/cmd/golangorg/cloudbuild.yaml
@@ -4,7 +4,7 @@
steps:
- name: gcr.io/cloud-builders/git
- args: ["clone", "--branch=${_GO_REF}", "--depth=1", "https://go.googlesource.com/go", "_gotmp"]
+ args: ["clone", "--branch=release-branch.go1.20", "--depth=1", "https://go.googlesource.com/go", "_gotmp"]
- name: gcr.io/cloud-builders/git
args: ["archive", "--format=zip", "--output=../_goroot.zip", "HEAD"]
dir: _gotmp