2020-10-07 13:49:40 +05:00
|
|
|
#!/bin/bash -e
|
2019-12-13 09:48:00 -05:00
|
|
|
################################################################################
|
2023-11-22 21:49:23 +01:00
|
|
|
## File: install-heroku.sh
|
|
|
|
|
## Desc: Install Heroku CLI. Based on instructions found here: https://devcenter.heroku.com/articles/heroku-cli
|
2019-12-13 09:48:00 -05:00
|
|
|
################################################################################
|
|
|
|
|
|
2023-12-29 18:11:55 +01:00
|
|
|
REPO_URL="https://cli-assets.heroku.com/channels/stable/apt"
|
|
|
|
|
GPG_KEY="/usr/share/keyrings/heroku.gpg"
|
|
|
|
|
REPO_PATH="/etc/apt/sources.list.d/heroku.list"
|
2023-10-17 09:31:49 +02:00
|
|
|
|
2023-12-29 18:11:55 +01:00
|
|
|
# add heroku repository to apt
|
|
|
|
|
curl -fsSL "${REPO_URL}/release.key" | gpg --dearmor -o $GPG_KEY
|
2024-04-23 11:06:00 +02:00
|
|
|
echo "deb [trusted=yes] $REPO_URL ./" > $REPO_PATH
|
2023-10-17 09:31:49 +02:00
|
|
|
|
|
|
|
|
# install heroku
|
2024-05-29 13:43:07 +02:00
|
|
|
apt-get update
|
|
|
|
|
apt-get install heroku
|
2023-10-17 09:31:49 +02:00
|
|
|
|
|
|
|
|
# remove heroku's apt repository
|
2023-12-29 18:11:55 +01:00
|
|
|
rm $REPO_PATH
|
|
|
|
|
rm $GPG_KEY
|
2023-10-17 09:31:49 +02:00
|
|
|
|
|
|
|
|
invoke_tests "Tools" "Heroku"
|