Skip to content
This repository has been archived by the owner on Aug 28, 2021. It is now read-only.

Fix first install on failed first deployment #34

Merged
merged 2 commits into from
Dec 21, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM linkyard/docker-helm:2.7.2
MAINTAINER Mario Siegenthaler <[email protected]>
LABEL maintainer "[email protected]"

RUN apk add --update --upgrade --no-cache jq bash nodejs curl yarn

Expand Down
4 changes: 3 additions & 1 deletion assets/out
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,16 @@ fi
is_deployed() {
if [ -n "$1" ]; then
set +e
helm status --tiller-namespace $tiller_namespace $1 | grep "STATUS: " > /dev/null
set +o pipefail
helm history --tiller-namespace $tiller_namespace $1 2>&1 | grep "DEPLOYED" > /dev/null
if [ $? = 0 ]; then
# exists
echo true
else
# does not exist
echo false
fi
set -o pipefail
set -e
else
echo false
Expand Down