mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
update heroku cli installation script (#8566)
This commit is contained in:
@@ -1,10 +1,21 @@
|
||||
#!/bin/bash -e
|
||||
################################################################################
|
||||
## File: heroku.sh
|
||||
## Desc: Installs Heroku CLI
|
||||
## Desc: This script installs Heroku CLI. Based on instructions found here: https://devcenter.heroku.com/articles/heroku-cli
|
||||
################################################################################
|
||||
|
||||
# Install Heroku CLI
|
||||
curl -fsSL https://cli-assets.heroku.com/install.sh | sh
|
||||
## Install Heroku CLI
|
||||
|
||||
# add heroku repository to apt
|
||||
echo "deb https://cli-assets.heroku.com/channels/stable/apt ./" > /etc/apt/sources.list.d/heroku.list
|
||||
|
||||
# install heroku's release key for package verification
|
||||
curl https://cli-assets.heroku.com/channels/stable/apt/release.key | apt-key add -
|
||||
|
||||
# install heroku
|
||||
apt-get update -y && apt-get install -y heroku
|
||||
|
||||
# remove heroku's apt repository
|
||||
rm /etc/apt/sources.list.d/heroku.list
|
||||
|
||||
invoke_tests "Tools" "Heroku"
|
||||
Reference in New Issue
Block a user