Files
bcard/.woodpecker.yml
killingdruid 50196bc7e5
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
debug: check available credentials and env vars
2026-02-15 09:16:42 +00:00

35 lines
1.2 KiB
YAML

when:
- branch: main
event: push
path:
exclude:
- 'k8s/**'
on_empty: true
steps:
- name: build-and-push
image: woodpeckerci/plugin-kaniko
settings:
registry: git.mikhailkilin.ru
repo: killingdruid/bcard
tags: ${CI_COMMIT_SHA}
username:
from_secret: docker_username
password:
from_secret: docker_password
- name: update-manifests
image: alpine/git
commands:
- echo "=== Debug info ==="
- git remote -v
- 'cat ~/.netrc 2>/dev/null || echo "No ~/.netrc"'
- 'cat /root/.netrc 2>/dev/null || echo "No /root/.netrc"'
- env | sort | grep -iE "^CI_|^GITEA|^PLUGIN|^NETRC" || true
- echo "=== End debug ==="
- 'sed -i "s#image: git.mikhailkilin.ru/killingdruid/bcard:.*#image: git.mikhailkilin.ru/killingdruid/bcard:${CI_COMMIT_SHA}#" k8s/bcard.yaml'
- git config user.email "woodpecker@ci"
- git config user.name "Woodpecker CI"
- git add k8s/bcard.yaml
- 'git diff --cached --quiet && echo "No changes to deploy" || (git commit -m "[CI SKIP] deploy: ${CI_COMMIT_SHA}" && git push origin HEAD:main 2>&1 || echo "PUSH FAILED")'