mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
16 lines
450 B
Bash
Executable File
16 lines
450 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
SELF=`which $0`; APP="$1"; TARGET="$2"
|
|
TMP=$(mktemp -d -t "$TARGET.XXXXX")
|
|
trap "rm -rf $TMP" EXIT
|
|
cp -r $(dirname $SELF)/$APP/* $TMP
|
|
cd $TMP
|
|
git init
|
|
git config user.email "robot@example.com"
|
|
git config user.name "Test Robot"
|
|
git add .
|
|
git commit -m 'initial commit'
|
|
REPO="test-$RANDOM"
|
|
git remote add target git@$TARGET:$REPO
|
|
git push target master
|
|
./check_deploy "$(ssh dokku@$TARGET url $REPO)" && echo "-----> Deploy success!" |