Intial dockerized version of butler

Fix exec

cat -> echo

Push package

then
This commit is contained in:
2019-11-30 21:58:18 -05:00
parent e01a9949d8
commit 79d216d21a
3 changed files with 44 additions and 0 deletions

18
entrypoint.sh Normal file
View File

@@ -0,0 +1,18 @@
#!/bin/sh
set -e
mkdir -p ~/.config/itch
echo $BUTLER_CREDENTIALS > ~/.config/itch/butler_creds
versionArguement=""
if [ "$VERSION" != "" ]
then
versionArguement="--userversion ${VERSION}"
elif [ "$VERSION_FILE" != "" ]
then
versionArguement="--userversion-file ${VERSION_FILE}"
fi
butler push $PACKAGE $ITCH_USER/$ITCH_GAME:$CHANNEL ${versionArguement}