chore(tools): install gh in cloud setup
This commit is contained in:
1 parent
16d98dd47c
commit
ede2102c60
1 file changed
+10
@@ -46,6 +46,16 @@ echo "deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] h
|
||||
$SUDO apt-get update
|
||||
$SUDO apt-get install -y --no-install-recommends postgresql-client-18
|
||||
|
||||
# gh authenticates from GH_TOKEN, set as an environment secret.
|
||||
$SUDO install -d -m 755 /etc/apt/keyrings
|
||||
$SUDO curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg \
|
||||
-o /etc/apt/keyrings/githubcli-archive-keyring.gpg
|
||||
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" \
|
||||
| $SUDO tee /etc/apt/sources.list.d/github-cli.list >/dev/null
|
||||
$SUDO apt-get update
|
||||
$SUDO apt-get install -y --no-install-recommends gh
|
||||
gh auth setup-git || true
|
||||
|
||||
go install "github.com/go-task/task/v3/cmd/task@$TASK_VERSION"
|
||||
go install "github.com/golangci/golangci-lint/v2/cmd/golangci-lint@$GOLANGCI_VERSION"
|
||||
go install "mvdan.cc/gofumpt@$GOFUMPT_VERSION"
|
||||
|
||||
Reference in new issue
Block a user