From 54409e935ac7fdd17d145a1868ce4c610cebea1e Mon Sep 17 00:00:00 2001 From: dvirlabs Date: Wed, 18 Jun 2025 05:56:36 +0300 Subject: [PATCH] Fix the entrypoint.sh --- entrypoint.sh | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) 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"