Fix Woodpecker CI format: remove pipeline wrapper, steps at root level
This commit is contained in:
@@ -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
|
||||||
Reference in New Issue
Block a user