Set the pipeline with just echos
This commit is contained in:
parent
c6d25771b0
commit
f5610e9d5c
@ -1,38 +1,25 @@
|
|||||||
steps:
|
steps:
|
||||||
- name: helm-check
|
- name: step-1
|
||||||
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
|
|
||||||
image: alpine:latest
|
image: alpine:latest
|
||||||
environment:
|
|
||||||
CLOUDFLARE_TOKEN: ${CLOUDFLARE_TOKEN}
|
|
||||||
CLOUDFLARE_ZONE_ID: ${CLOUDFLARE_ZONE_ID}
|
|
||||||
commands:
|
commands:
|
||||||
- apk add curl jq
|
- echo "🚀 Step 1: Starting preview pipeline"
|
||||||
- echo "🌐 Creating CNAME for grafana-int.dvirlabs.com"
|
|
||||||
- |
|
- name: step-2
|
||||||
curl -X POST "https://api.cloudflare.com/client/v4/zones/$CLOUDFLARE_ZONE_ID/dns_records" \
|
image: alpine:latest
|
||||||
-H "Authorization: Bearer $CLOUDFLARE_TOKEN" \
|
commands:
|
||||||
-H "Content-Type: application/json" \
|
- echo "🔧 Step 2: Simulating Helm Lint"
|
||||||
--data '{
|
|
||||||
"type": "CNAME",
|
- name: step-3
|
||||||
"name": "grafana-int",
|
image: alpine:latest
|
||||||
"content": "b50bbf48-0a2f-47ce-b73e-336b6718318b.cfargotunnel.com",
|
commands:
|
||||||
"ttl": 120,
|
- echo "📦 Step 3: Would validate ArgoCD YAML here"
|
||||||
"proxied": true
|
|
||||||
}'
|
- 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"
|
||||||
|
|||||||
@ -7,7 +7,7 @@ spec:
|
|||||||
project: observability
|
project: observability
|
||||||
source:
|
source:
|
||||||
repoURL: 'https://git.dvirlabs.com/dvirlabs/observability-stack.git'
|
repoURL: 'https://git.dvirlabs.com/dvirlabs/observability-stack.git'
|
||||||
targetRevision: HEAD # אפשר לשנות לפי הצורך (למשל לשם של branch preview)
|
targetRevision: HEAD
|
||||||
path: charts/grafana
|
path: charts/grafana
|
||||||
helm:
|
helm:
|
||||||
valueFiles:
|
valueFiles:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user