Skip to content

Commit

Permalink
Move to go 1.21 (#456)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmasi authored Oct 31, 2023
1 parent 86e7cc0 commit 1abf64c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 199 deletions.
6 changes: 3 additions & 3 deletions cloudbuild/external.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ build {
provisioner "shell" {
inline = [
"echo Installing golang...",
"curl -O https://dl.google.com/go/go1.20.1.linux-amd64.tar.gz",
"sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.20.1.linux-amd64.tar.gz",
"rm go1.20.1.linux-amd64.tar.gz",
"curl -O https://dl.google.com/go/go1.21.3.linux-amd64.tar.gz",
"sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.21.3.linux-amd64.tar.gz",
"rm go1.21.3.linux-amd64.tar.gz",
"echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.bashrc",
"echo 'export PATH=$PATH:$(go env GOPATH)/bin' >> ~/.bashrc",
"/usr/local/go/bin/go version",
Expand Down
6 changes: 3 additions & 3 deletions cloudbuild/internal.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ build {
provisioner "shell" {
inline = [
"echo Installing golang...",
"curl -O https://dl.google.com/go/go1.20.1.linux-amd64.tar.gz",
"sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.20.1.linux-amd64.tar.gz",
"rm go1.20.1.linux-amd64.tar.gz",
"curl -O https://dl.google.com/go/go1.21.3.linux-amd64.tar.gz",
"sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.21.3.linux-amd64.tar.gz",
"rm go1.21.3.linux-amd64.tar.gz",
"echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.bashrc",
"echo 'export PATH=$PATH:$(go env GOPATH)/bin' >> ~/.bashrc",
"/usr/local/go/bin/go version",
Expand Down
177 changes: 0 additions & 177 deletions cloudbuild/internal_ubuntu.pkr.hcl

This file was deleted.

16 changes: 0 additions & 16 deletions cloudbuild/postsubmit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,6 @@ steps:
]
waitFor: [packer_init_internal]

- id: packer_init_internal_ubuntu
name: "us-west1-docker.pkg.dev/gep-kne/packer/packer:1.9.1"
args: ["init", "cloudbuild/internal_ubuntu.pkr.hcl"]
waitFor: ["-"] # run the builds concurrently

- id: packer_build_internal_ubuntu
name: "us-west1-docker.pkg.dev/gep-kne/packer/packer:1.9.1"
args: ["build", "cloudbuild/internal_ubuntu.pkr.hcl"]
env: [
"PKR_VAR_build_id=$BUILD_ID",
"PKR_VAR_short_sha=$SHORT_SHA",
"PKR_VAR_branch_name=$BRANCH_NAME",
"PKR_VAR_zone=${_ZONE}",
]
waitFor: [packer_init_internal_ubuntu]

timeout: 3600s

substitutions:
Expand Down

0 comments on commit 1abf64c

Please sign in to comment.