Skip to content

Commit

Permalink
feat: allow to install custom ledokku version via bootstrap script (#229
Browse files Browse the repository at this point in the history
)
  • Loading branch information
pradel committed Oct 30, 2020
1 parent b542eb5 commit 7088aee
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions ledokku-bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,13 @@ install-postgres() {
main() {
ensure-dokku

# Set latest version or use the one provided by the user
LEDOKKU_TAG=${LEDOKKU_TAG:-"0.3.3"}

# First we get the user ip so we can use it in the text we print later
DOKKU_SSH_HOST=$(curl ifconfig.co)

echo "=== 🐳 ==="
echo "=== 🐳 ledokku:${LEDOKKU_TAG} ==="
echo "Welcome to installation helper of Ledokku"
echo
echo "In your browser open https://github.com/settings/developers and click on the \"New OAuth App\" button."
Expand Down Expand Up @@ -83,9 +86,9 @@ main() {

# Now it's finally time to install ledokku
echo "=> Installation"
docker pull ledokku/ledokku:0.3.3
docker tag ledokku/ledokku:0.3.3 dokku/ledokku:0.3.3
dokku tags:deploy ledokku 0.3.3
docker pull ledokku/ledokku:${LEDOKKU_TAG}
docker tag ledokku/ledokku:${LEDOKKU_TAG} dokku/ledokku:${LEDOKKU_TAG}
dokku tags:deploy ledokku ${LEDOKKU_TAG}

echo "=== 🐳 ==="
echo "Installation succesful"
Expand Down

0 comments on commit 7088aee

Please sign in to comment.