Skip to content

Commit

Permalink
fix do.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
fiji-flo committed Sep 29, 2020
1 parent b7f6b70 commit a7b60a2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions do.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,14 @@ docker_build() {

package_local() {
compile_release
docker_build_local $REV
docker_build_local
}

push_image() {
docker push ${DOCKER_REGISTRY}/${NAME}:${REV}
}

deploy() {
local DEPLOY_ENV=${1:-$DEPLOY_ENV}
if [ -z ${DEPLOY_ENV} ]; then exit 1; fi
helm template -f k8s/values.yaml -f k8s/values/${DEPLOY_ENV}.yaml \
--set docker_registry=${DOCKER_REGISTRY},rev=${REV} k8s/ | kubectl apply -f -
Expand All @@ -41,5 +40,5 @@ then
echo "commands:"
declare -F | sed "s/declare -f /\t/g"
else
`$1` $@
$1
fi

0 comments on commit a7b60a2

Please sign in to comment.