Fix issues 10
This commit is contained in:
@@ -7,7 +7,7 @@ import './styles/animations.css';
|
|||||||
import './styles/themes/light.css';
|
import './styles/themes/light.css';
|
||||||
import './styles/themes/dark.css';
|
import './styles/themes/dark.css';
|
||||||
|
|
||||||
// TEst - OpenTelemetry Web SDK initialization
|
// OpenTelemetry Web SDK initialization
|
||||||
import { WebTracerProvider } from '@opentelemetry/sdk-trace-web';
|
import { WebTracerProvider } from '@opentelemetry/sdk-trace-web';
|
||||||
import { BatchSpanProcessor } from '@opentelemetry/sdk-trace-base';
|
import { BatchSpanProcessor } from '@opentelemetry/sdk-trace-base';
|
||||||
import { OTLPTraceExporter } from '@opentelemetry/exporter-trace-otlp-http';
|
import { OTLPTraceExporter } from '@opentelemetry/exporter-trace-otlp-http';
|
||||||
|
|||||||
@@ -86,7 +86,10 @@ spec:
|
|||||||
cd /tmp/gitops
|
cd /tmp/gitops
|
||||||
|
|
||||||
# Switch to target branch
|
# 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
|
# Compute short hash once for job name updates
|
||||||
SHORT_HASH=$(echo "$(params.git-revision)" | cut -c 1-8)
|
SHORT_HASH=$(echo "$(params.git-revision)" | cut -c 1-8)
|
||||||
@@ -184,7 +187,8 @@ spec:
|
|||||||
git status
|
git status
|
||||||
if ! git diff --cached --quiet; then
|
if ! git diff --cached --quiet; then
|
||||||
git commit -m "Update images for services: $(params.services) [skip ci]"
|
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"
|
echo "GitOps manifests updated successfully"
|
||||||
else
|
else
|
||||||
echo "No changes to commit"
|
echo "No changes to commit"
|
||||||
|
|||||||
Reference in New Issue
Block a user