This repository has been archived on 2024-02-11. You can view files and clone it, but cannot push or open issues or pull requests.
sitio/.woodpecker.yml

30 lines
901 B
YAML
Raw Normal View History

2023-07-17 19:26:53 +00:00
pipeline:
2023-07-17 19:36:55 +00:00
setup:
2023-07-17 19:26:53 +00:00
image: gitea.nulo.in/nulo/super-image:3.18
commands:
- pnpm install
2023-07-17 19:36:55 +00:00
check:
image: gitea.nulo.in/nulo/super-image:3.18
commands:
2023-07-17 19:26:53 +00:00
- ./tool check
2023-07-17 19:36:55 +00:00
when:
path:
2023-07-17 19:39:17 +00:00
include: ["*.js", "*.ts", "package.json", "pnpm-lock.yaml", "tsconfig.json"]
2023-07-17 19:36:55 +00:00
build:
image: gitea.nulo.in/nulo/super-image:3.18
commands:
2023-07-17 19:39:17 +00:00
- ./tool refresh_feeds
2023-07-17 19:26:53 +00:00
- ./tool build
2023-07-17 19:36:55 +00:00
upload:
image: gitea.nulo.in/nulo/super-image:3.18
commands:
2023-07-17 19:26:53 +00:00
- |
eval $(ssh-agent -s)
echo "$${SSH_KEY}" | tr -d '\r' | ssh-add -
mkdir -p ~/.ssh
echo "[dorsiblanco.nulo.in]:2223 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEQEuHNIWQcS5La6lc2OvHQxZN6tRVtkts2wH1tfpola root@853c93d633a9" > ~/.ssh/known_hosts
- rsync --rsh='ssh -p2223' --recursive --chmod=644 build/ root@dorsiblanco.nulo.in:/data/nulo_ar/
secrets:
- ssh_key