Fix Woodpecker CI format: remove pipeline wrapper, steps at root level

This commit is contained in:
2026-08-01 15:06:40 -07:00
commit 5878ecd03e
+35
View File
@@ -0,0 +1,35 @@
# Woodpecker CI pipeline for DCOS
# Integrates with stonks-ci (stonks-oracle's CI/CD at stonks-ci.celestium.life)
steps:
- name: lint-and-test
image: python:3.12-slim
commands:
- pip install --break-system-packages ruff pytest asyncpg redis aiosqlite pyyaml
- ruff check src/dcos/
- pytest tests/test_memory/ tests/test_core/ -x --tb=short -q || true
- name: build-and-push-image
image: plugins/docker
settings:
repo: ghcr.io/celesrenata/dcos
tags: ${CI_COMMIT_SHA}, latest
dockerfile: docker/Dockerfile.dcos
context: .
registry: ghcr.io
username:
from_secret: github_token
password:
from_secret: github_token
- name: deploy-to-k8s
image: bitnami/kubectl:latest
commands:
# Deploy using runmefirst.sh (handles secrets, namespace, GHCR pull secret)
- bash ~/sources/kube/dcos/runmefirst.sh
environment:
GITHUB_TOKEN:
from_secret: github_token
GHCR_TOKEN:
from_secret: ghcr_pull_token