Fix the entrypoint.sh
This commit is contained in:
parent
fe28512ee2
commit
54409e935a
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
echo "🚀 Starting wp-kaniko-sync"
|
||||
@ -17,22 +17,3 @@ echo "🔨 Building Docker image for ${PLUGIN_CONTEXT}"
|
||||
--cleanup
|
||||
|
||||
echo "✅ Image pushed successfully"
|
||||
|
||||
if [[ -n "$PLUGIN_GIT_REPO" ]]; then
|
||||
echo "📡 Cloning GitOps repo"
|
||||
|
||||
git config --global user.name "woodpecker-bot"
|
||||
git config --global user.email "ci@dvirlabs.com"
|
||||
|
||||
git clone "https://${PLUGIN_GIT_USERNAME}:${PLUGIN_GIT_TOKEN}@${PLUGIN_GIT_REPO}"
|
||||
cd $(basename "$PLUGIN_GIT_REPO" .git)
|
||||
|
||||
echo "📝 Updating tag in ${PLUGIN_VALUES_FILE}"
|
||||
yq -i ".$PLUGIN_VALUES_PATH = \"$TAG\"" "$PLUGIN_VALUES_FILE"
|
||||
|
||||
git add "$PLUGIN_VALUES_FILE"
|
||||
git commit -m "${PLUGIN_NAME}: update tag to $TAG" || echo "⚠️ No changes"
|
||||
git push origin HEAD
|
||||
fi
|
||||
|
||||
echo "🎉 Done"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user