Skip to content

Commit

Permalink
remove patching running instances
Browse files Browse the repository at this point in the history
  • Loading branch information
mms-gianni committed Jun 6, 2024
1 parent 03dfdd6 commit 1db9c9b
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions packs/dispatch/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,5 @@ while true; do
sleep 1
done

sleep 2

# patch kuberoes resource with the new image
kubectl patch --type=merge kuberoapps.application.kubero.dev ${APP} -p "{\"spec\":{\"image\":{\"repository\":\"${REPOSITORY}\",\"tag\":\"${TAG}\"}}}"
if [ $? -ne 0 ]; then
echo "$(date) Failed to patch kubero app resource"
exit 1
fi

echo "$(date) Successfully patched kubero app resource"
echo "$(date) Successfully build docker image"
exit 0

0 comments on commit 1db9c9b

Please sign in to comment.