Add cname.yaml and update the .woodpecker.yaml

This commit is contained in:
dvirlabs 2025-07-11 09:30:33 +03:00
parent dd1a692915
commit 36d46f0a27
2 changed files with 22 additions and 28 deletions

View File

@ -1,29 +1,21 @@
when:
event:
- push
branch:
- master
steps:
- name: detect-and-validate
image: alpine:latest
commands:
- apk add --no-cache bash git curl jq
- echo "🔍 Detecting changed apps with values-int.yaml"
- |
CHANGED_APPS=$(git diff --name-only origin/master | grep 'manifest/.*/values-int.yaml' | cut -d'/' -f2 | sort -u)
if [ -z "$CHANGED_APPS" ]; then
echo "✅ No values-int.yaml changes detected. Skipping."
exit 0
fi
echo "Changed apps: $CHANGED_APPS"
for app in $CHANGED_APPS; do
echo "🔧 Validating app: $app"
helm lint charts/$app || exit 1
helm template charts/$app -f manifest/$app/values-int.yaml || exit 1
done
- echo "✅ All changed apps passed lint and render. ArgoCD will sync them automatically."
trigger-gitops-via-push:
when:
event: [push, pull_request, tag]
branch: [master]
name: Trigger apps-gitops via Git push
image: alpine/git
environment:
GIT_USERNAME:
from_secret: GIT_USERNAME
GIT_TOKEN:
from_secret: GIT_TOKEN
commands: |
git config --global user.name "woodpecker-bot"
git config --global user.email "ci@dvirlabs.com"
git clone "https://$${GIT_USERNAME}:$${GIT_TOKEN}@git.dvirlabs.com/dvirlabs/apps-gitops.git"
cd apps-gitops
echo "# trigger at $(date) by $${CI_REPO_NAME}" >> .trigger
git add .trigger
git commit -m "ci: trigger apps-gitops build" || echo "no changes"
git push origin HEAD

View File

@ -0,0 +1,2 @@
enabled: true
hostname: kuma.dvirlabs.com