Files
bcard/.woodpecker.yml
killingdruid 39d3fb673e
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
fix: use gitea token for git push auth
2026-02-15 00:10:56 +00:00

32 lines
1.0 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
environment:
GITEA_TOKEN:
from_secret: gitea_token
commands:
- '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 remote set-url origin https://${GITEA_TOKEN}@git.mikhailkilin.ru/killingdruid/bcard.git && git push origin HEAD:main)'