Fix issues 10

This commit is contained in:
2026-01-23 22:14:15 +01:00
parent 4701b6a5b1
commit 68e07355eb
2 changed files with 7 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ import './styles/animations.css';
import './styles/themes/light.css';
import './styles/themes/dark.css';
// TEst - OpenTelemetry Web SDK initialization
// OpenTelemetry Web SDK initialization
import { WebTracerProvider } from '@opentelemetry/sdk-trace-web';
import { BatchSpanProcessor } from '@opentelemetry/sdk-trace-base';
import { OTLPTraceExporter } from '@opentelemetry/exporter-trace-otlp-http';

View File

@@ -86,7 +86,10 @@ spec:
cd /tmp/gitops
# Switch to target branch
git checkout "$(params.git-branch)" || git checkout -b "$(params.git-branch)"
# The git-branch param may come as "refs/heads/main" from webhook, extract just the branch name
BRANCH_NAME=$(echo "$(params.git-branch)" | sed 's|refs/heads/||')
echo "Target branch: $BRANCH_NAME"
git checkout "$BRANCH_NAME" || git checkout -b "$BRANCH_NAME"
# Compute short hash once for job name updates
SHORT_HASH=$(echo "$(params.git-revision)" | cut -c 1-8)
@@ -184,7 +187,8 @@ spec:
git status
if ! git diff --cached --quiet; then
git commit -m "Update images for services: $(params.services) [skip ci]"
git push origin "$(params.git-branch)"
echo "Pushing to branch: $BRANCH_NAME"
git push origin "HEAD:$BRANCH_NAME"
echo "GitOps manifests updated successfully"
else
echo "No changes to commit"