website/.woodpecker.yml
Aravinth Manivannan a3c0e1022f
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
use node16 via nvm
2023-10-21 14:24:13 +05:30

18 lines
710 B
YAML

steps:
build:
image: python
environment:
- NVM_DIR="$HOME/.nvm"
when:
event: [push, pull_request, tag, deployment]
branch: master
commands:
- apt-get update
- apt update && apt-get -y --no-install-recommends install curl tar gnupg curl wget git
- curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash
- source "$NVM_DIR/nvm.sh" && nvm install 16.20.2
- source "$NVM_DIR/nvm.sh" && nvm use 16.20.2
- source "$NVM_DIR/nvm.sh" && node install yarn
- source "$NVM_DIR/nvm.sh" && make env
- source "$NVM_DIR/nvm.sh" && make ci-deploy
secrets: [FORGEJO_WRITE_DEPLOY_KEY, LIBREPAGES_DEPLOY_SECRET]