Files
runner-images-sangeeth/images/ubuntu/scripts/build/install-heroku.sh
T

24 lines
766 B
Bash
Raw Normal View History

2020-10-07 13:49:40 +05:00
#!/bin/bash -e
################################################################################
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
################################################################################
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"
# 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
# install heroku
2024-05-29 13:43:07 +02:00
apt-get update
apt-get install heroku
# remove heroku's apt repository
rm $REPO_PATH
rm $GPG_KEY
invoke_tests "Tools" "Heroku"