fix: revert to v2 steps format (Woodpecker 3.x still expects 'steps:' not 'pipeline:')
ci/woodpecker/push/woodpecker Pipeline failed
ci/woodpecker/push/woodpecker Pipeline failed
The linter requires 'steps:' array format with 'when:' triggers, not the v3 'pipeline:' map format.
This commit is contained in:
+7
-7
@@ -1,17 +1,17 @@
|
|||||||
# Woodpecker CI pipeline for DCOS
|
# Woodpecker CI pipeline for DCOS
|
||||||
# Integrates with stonks-ci (stonks-oracle's CI/CD at stonks-ci.celestium.life)
|
# Integrates with stonks-ci (stonks-oracle's CI/CD at stonks-ci.celestium.life)
|
||||||
|
|
||||||
pipeline:
|
steps:
|
||||||
lint-and-test:
|
- name: lint-and-test
|
||||||
image: python:3.12-slim
|
image: python:3.12-slim
|
||||||
commands:
|
commands:
|
||||||
- pip install --break-system-packages ruff pytest asyncpg redis aiosqlite pyyaml
|
- pip install --break-system-packages ruff pytest asyncpg redis aiosqlite pyyaml
|
||||||
- ruff check src/dcos/
|
- ruff check src/dcos/
|
||||||
- pytest tests/test_memory/ tests/test_core/ -x --tb=short -q || true
|
- pytest tests/test_memory/ tests/test_core/ -x --tb=short -q || true
|
||||||
trigger:
|
when:
|
||||||
event: push
|
event: push
|
||||||
|
|
||||||
build-and-push-image:
|
- name: build-and-push-image
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
privileged: true
|
privileged: true
|
||||||
commands:
|
commands:
|
||||||
@@ -20,13 +20,13 @@ pipeline:
|
|||||||
- docker push ghcr.io/celesrenata/dcos:${CI_COMMIT_SHA}
|
- docker push ghcr.io/celesrenata/dcos:${CI_COMMIT_SHA}
|
||||||
- docker tag ghcr.io/celesrenata/dcos:${CI_COMMIT_SHA} ghcr.io/celesrenata/dcos:latest
|
- docker tag ghcr.io/celesrenata/dcos:${CI_COMMIT_SHA} ghcr.io/celesrenata/dcos:latest
|
||||||
- docker push ghcr.io/celesrenata/dcos:latest
|
- docker push ghcr.io/celesrenata/dcos:latest
|
||||||
trigger:
|
when:
|
||||||
event: push
|
event: push
|
||||||
|
|
||||||
deploy-to-k8s:
|
- name: deploy-to-k8s
|
||||||
image: bitnami/kubectl:latest
|
image: bitnami/kubectl:latest
|
||||||
commands:
|
commands:
|
||||||
# Deploy using runmefirst.sh (handles secrets, namespace, GHCR pull secret)
|
# Deploy using runmefirst.sh (handles secrets, namespace, GHCR pull secret)
|
||||||
- bash ~/sources/kube/dcos/runmefirst.sh
|
- bash ~/sources/kube/dcos/runmefirst.sh
|
||||||
trigger:
|
when:
|
||||||
event: push
|
event: push
|
||||||
|
|||||||
Reference in New Issue
Block a user