fix: update to Woodpecker v3 pipeline format (steps -> pipeline)
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)
|
||||||
|
|
||||||
steps:
|
pipeline:
|
||||||
- name: lint-and-test
|
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
|
||||||
when:
|
trigger:
|
||||||
event: push
|
event: push
|
||||||
|
|
||||||
- name: build-and-push-image
|
build-and-push-image:
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
privileged: true
|
privileged: true
|
||||||
commands:
|
commands:
|
||||||
@@ -20,13 +20,13 @@ steps:
|
|||||||
- 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
|
||||||
when:
|
trigger:
|
||||||
event: push
|
event: push
|
||||||
|
|
||||||
- name: deploy-to-k8s
|
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
|
||||||
when:
|
trigger:
|
||||||
event: push
|
event: push
|
||||||
|
|||||||
Reference in New Issue
Block a user