Merge pull request #134 from phaza/patch-1
I want to add env variables to new instances
This commit is contained in:
commit
1751a4ad74
1 file changed
+2
@@ -34,11 +34,13 @@ case "$1" in
|
|||||||
|
|
||||||
release)
|
release)
|
||||||
APP="$2"; IMAGE="$3"
|
APP="$2"; IMAGE="$3"
|
||||||
|
pluginhook pre-release $APP $IMAGE
|
||||||
if [[ -f "$HOME/$APP/ENV" ]]; then
|
if [[ -f "$HOME/$APP/ENV" ]]; then
|
||||||
id=$(cat "$HOME/$APP/ENV" | docker run -i -a stdin $IMAGE /bin/bash -c "mkdir -p /app/.profile.d && cat > /app/.profile.d/app-env.sh")
|
id=$(cat "$HOME/$APP/ENV" | docker run -i -a stdin $IMAGE /bin/bash -c "mkdir -p /app/.profile.d && cat > /app/.profile.d/app-env.sh")
|
||||||
test $(docker wait $id) -eq 0
|
test $(docker wait $id) -eq 0
|
||||||
docker commit $id $IMAGE > /dev/null
|
docker commit $id $IMAGE > /dev/null
|
||||||
fi
|
fi
|
||||||
|
pluginhook post-release $APP $IMAGE
|
||||||
;;
|
;;
|
||||||
|
|
||||||
deploy)
|
deploy)
|
||||||
|
|||||||
Reference in new issue
Block a user