ci: fix woodpecker v3 syntax - secrets, when blocks
This commit is contained in:
+9
-2
@@ -8,12 +8,16 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- pip install ruff==0.15.10 --quiet
|
- pip install ruff==0.15.10 --quiet
|
||||||
- ruff check services/
|
- ruff check services/
|
||||||
|
when:
|
||||||
|
event: [push, pull_request]
|
||||||
|
|
||||||
test-python:
|
test-python:
|
||||||
image: python:3.12-slim
|
image: python:3.12-slim
|
||||||
commands:
|
commands:
|
||||||
- pip install -r requirements.txt --quiet
|
- pip install -r requirements.txt --quiet
|
||||||
- pytest tests/ -x --tb=short -q
|
- pytest tests/ -x --tb=short -q
|
||||||
|
when:
|
||||||
|
event: [push, pull_request]
|
||||||
|
|
||||||
test-frontend:
|
test-frontend:
|
||||||
image: node:24-slim
|
image: node:24-slim
|
||||||
@@ -21,6 +25,8 @@ steps:
|
|||||||
- cd frontend
|
- cd frontend
|
||||||
- npm ci
|
- npm ci
|
||||||
- npx vitest --run
|
- npx vitest --run
|
||||||
|
when:
|
||||||
|
event: [push, pull_request]
|
||||||
|
|
||||||
build-scheduler:
|
build-scheduler:
|
||||||
image: woodpeckerci/plugin-docker-buildx
|
image: woodpeckerci/plugin-docker-buildx
|
||||||
@@ -337,6 +343,9 @@ steps:
|
|||||||
|
|
||||||
mirror-github:
|
mirror-github:
|
||||||
image: alpine/git
|
image: alpine/git
|
||||||
|
environment:
|
||||||
|
GITHUB_SSH_KEY:
|
||||||
|
from_secret: github_ssh_key
|
||||||
commands:
|
commands:
|
||||||
- mkdir -p ~/.ssh
|
- mkdir -p ~/.ssh
|
||||||
- echo "$GITHUB_SSH_KEY" > ~/.ssh/id_ed25519
|
- echo "$GITHUB_SSH_KEY" > ~/.ssh/id_ed25519
|
||||||
@@ -345,8 +354,6 @@ steps:
|
|||||||
- git remote add github git@github.com:celesrenata/stonks-oracle.git || git remote set-url github git@github.com:celesrenata/stonks-oracle.git
|
- git remote add github git@github.com:celesrenata/stonks-oracle.git || git remote set-url github git@github.com:celesrenata/stonks-oracle.git
|
||||||
- git push github main --force
|
- git push github main --force
|
||||||
- git push github --tags --force
|
- git push github --tags --force
|
||||||
secrets:
|
|
||||||
- github_ssh_key
|
|
||||||
when:
|
when:
|
||||||
event: push
|
event: push
|
||||||
branch: main
|
branch: main
|
||||||
|
|||||||
Reference in New Issue
Block a user