Files
transcribator/.woodpecker/deploy.yml
Mikhail Kilin b072a60536
Some checks failed
ci/woodpecker/push/deploy Pipeline failed
Add Woodpecker CI pipeline, make Dockerfile multi-stage
- Multi-stage Dockerfile: download Zig 0.15.2, build inside Docker
- .woodpecker/deploy.yml: Kaniko build + push + manifest update

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-19 12:00:55 +03:00

34 lines
1.1 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/transcribator
tags: ${CI_COMMIT_SHA}
username:
from_secret: docker_username
password:
from_secret: docker_password
- name: update-manifests
image: alpine/git
environment:
GIT_TOKEN:
from_secret: git_push_token
commands:
- 'printf "machine git.mikhailkilin.ru\nlogin killingdruid\npassword %s\n" "$GIT_TOKEN" > ~/.netrc'
- 'chmod 600 ~/.netrc'
- 'sed -i "s#image: git.mikhailkilin.ru/killingdruid/transcribator:.*#image: git.mikhailkilin.ru/killingdruid/transcribator:${CI_COMMIT_SHA}#" k8s/transcribator.yaml'
- 'git config user.email "woodpecker@ci"'
- 'git config user.name "Woodpecker CI"'
- 'git add k8s/transcribator.yaml'
- 'git diff --cached --quiet && echo "No changes" || (git commit -m "[CI SKIP] deploy ${CI_COMMIT_SHA}" && git push origin HEAD:main)'