mirror of
https://github.com/actions/runner-images.git
synced 2025-12-11 11:37:00 +00:00
24 lines
766 B
Bash
24 lines
766 B
Bash
#!/bin/bash -e
|
|
################################################################################
|
|
## 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
|
|
echo "deb [trusted=yes] $REPO_URL ./" > $REPO_PATH
|
|
|
|
# install heroku
|
|
apt-get update
|
|
apt-get install heroku
|
|
|
|
# remove heroku's apt repository
|
|
rm $REPO_PATH
|
|
rm $GPG_KEY
|
|
|
|
invoke_tests "Tools" "Heroku"
|