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