[ci] Add Woodpecker build pushing to forgejo.viktorbarzin.me/viktor/wealthfolio-sync
Companion to the existing GHA pipeline that pushes broker-sync to DockerHub. The Woodpecker build pushes to Forgejo as wealthfolio-sync (image name kept to match the existing infra/stacks/wealthfolio/main.tf CronJob reference, which has been broken since registry-private lost the image).
This commit is contained in:
parent
1d1e20b72b
commit
dfee29fda7
1 changed files with 45 additions and 0 deletions
45
.woodpecker/build.yml
Normal file
45
.woodpecker/build.yml
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
when:
|
||||
event: push
|
||||
branch: [main, master]
|
||||
|
||||
clone:
|
||||
git:
|
||||
image: woodpeckerci/plugin-git
|
||||
settings:
|
||||
attempts: 5
|
||||
backoff: 10s
|
||||
|
||||
steps:
|
||||
- name: lint-and-test
|
||||
image: python:3.12-slim
|
||||
commands:
|
||||
- pip install --no-cache-dir "poetry==1.8.4"
|
||||
- poetry install --no-interaction --no-root
|
||||
- poetry run ruff check .
|
||||
- poetry run mypy broker_sync tests
|
||||
- poetry run pytest -q
|
||||
|
||||
- name: build-and-push
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
depends_on:
|
||||
- lint-and-test
|
||||
settings:
|
||||
# Image name is `wealthfolio-sync` to match the deployment in
|
||||
# infra/stacks/wealthfolio/main.tf (CronJob `wealthfolio-sync`).
|
||||
# The repo is called `broker-sync` because the source covers
|
||||
# multiple brokers (Trading 212, Schwab, Fidelity, IMAP-CSV) —
|
||||
# we just happen to publish it under the wealthfolio name since
|
||||
# that's the consumer stack.
|
||||
repo:
|
||||
- forgejo.viktorbarzin.me/viktor/wealthfolio-sync
|
||||
logins:
|
||||
- registry: forgejo.viktorbarzin.me
|
||||
username:
|
||||
from_secret: forgejo_user
|
||||
password:
|
||||
from_secret: forgejo_push_token
|
||||
dockerfile: Dockerfile
|
||||
context: .
|
||||
auto_tag: true
|
||||
platforms:
|
||||
- linux/amd64
|
||||
Loading…
Add table
Add a link
Reference in a new issue