diff --git a/.woodpecker.yml b/.woodpecker.yml index f965f37..4873ba3 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -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 \ No newline at end of file diff --git a/manifests/uptime-kuma/cname.yaml b/manifests/uptime-kuma/cname.yaml new file mode 100644 index 0000000..7ee448a --- /dev/null +++ b/manifests/uptime-kuma/cname.yaml @@ -0,0 +1,2 @@ +enabled: true +hostname: kuma.dvirlabs.com \ No newline at end of file