Set the pipeline with just echos

This commit is contained in:
dvirlabs 2025-05-05 21:02:00 +03:00
parent c6d25771b0
commit f5610e9d5c
2 changed files with 23 additions and 36 deletions

View File

@ -1,38 +1,25 @@
steps:
- name: helm-check
image: alpine/helm:3.13.2
commands:
- helm lint charts/grafana
- helm template charts/grafana -f manifest/grafana/values-int.yaml
- name: validate-manifest
image: bitnami/kubectl:latest
commands:
- echo "🔍 Validating grafana-int ArgoCD app"
- kubectl apply -f argocd-apps/grafana/grafana-int.yaml --dry-run=client
- name: deploy-argocd-app
image: bitnami/kubectl:latest
commands:
- echo "🚀 Applying grafana-int ArgoCD app"
- kubectl apply -f argocd-apps/grafana/grafana-int.yaml
- name: create-cloudflare-cname
- name: step-1
image: alpine:latest
environment:
CLOUDFLARE_TOKEN: ${CLOUDFLARE_TOKEN}
CLOUDFLARE_ZONE_ID: ${CLOUDFLARE_ZONE_ID}
commands:
- apk add curl jq
- echo "🌐 Creating CNAME for grafana-int.dvirlabs.com"
- |
curl -X POST "https://api.cloudflare.com/client/v4/zones/$CLOUDFLARE_ZONE_ID/dns_records" \
-H "Authorization: Bearer $CLOUDFLARE_TOKEN" \
-H "Content-Type: application/json" \
--data '{
"type": "CNAME",
"name": "grafana-int",
"content": "b50bbf48-0a2f-47ce-b73e-336b6718318b.cfargotunnel.com",
"ttl": 120,
"proxied": true
}'
- echo "🚀 Step 1: Starting preview pipeline"
- name: step-2
image: alpine:latest
commands:
- echo "🔧 Step 2: Simulating Helm Lint"
- name: step-3
image: alpine:latest
commands:
- echo "📦 Step 3: Would validate ArgoCD YAML here"
- name: step-4
image: alpine:latest
commands:
- echo "🌐 Step 4: Would create Cloudflare DNS record here"
- name: done
image: alpine:latest
commands:
- echo "✅ Pipeline finished successfully"

View File

@ -7,7 +7,7 @@ spec:
project: observability
source:
repoURL: 'https://git.dvirlabs.com/dvirlabs/observability-stack.git'
targetRevision: HEAD # אפשר לשנות לפי הצורך (למשל לשם של branch preview)
targetRevision: HEAD
path: charts/grafana
helm:
valueFiles: