diff --git a/entrypoint.sh b/entrypoint.sh index 6ea12e4..638b4c3 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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"