Skip to content

Commit

Permalink
Add go version
Browse files Browse the repository at this point in the history
  • Loading branch information
denis256 committed Nov 9, 2023
1 parent a350c0d commit e415f88
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ env: &env
environment:
GRUNTWORK_INSTALLER_VERSION: v0.0.36
MODULE_CI_VERSION: v0.46.0
GO_VERSION: 1.21.1
GO111MODULE: auto

defaults: &defaults
machine:
enabled: true
Expand All @@ -15,6 +18,13 @@ install_gruntwork_utils: &install_gruntwork_utils
gruntwork-install --module-name "gruntwork-module-circleci-helpers" --repo "https://github.com/gruntwork-io/terraform-aws-ci" --tag "${MODULE_CI_VERSION}"
gruntwork-install --module-name "kubernetes-circleci-helpers" --repo "https://github.com/gruntwork-io/terraform-aws-ci" --tag "${MODULE_CI_VERSION}"
echo "Installing Go version $GO_VERSION"
curl -O --silent --location --fail --show-error "https://golang.org/dl/go${GO_VERSION}.linux-amd64.tar.gz"
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf "go${GO_VERSION}.linux-amd64.tar.gz"
sudo ln -s /usr/local/go/bin/go /usr/bin/go
echo "The installed version of Go is now $(go version)"
version: 2
jobs:
setup:
Expand Down

0 comments on commit e415f88

Please sign in to comment.