Files
web/deploy.sh
2023-08-27 21:01:17 -04:00

15 lines
341 B
Bash
Executable File

#!/usr/bin/env bash
source ./build.sh $@
# build.sh sets these env vars:
# DEXORDER_WEB_VERSION
# DEXORDER_WEB_IMAGE
$DOCKER push $DEXORDER_WEB_IMAGE > /dev/null
if [ $? != 0 ]; then
echo 'container push failed'
exit 1
fi
sed -e "s|\$DEXORDER_WEB_IMAGE|$DEXORDER_WEB_IMAGE|g" k8s/deployment.yaml | kubectl --context=la apply -f -