website/.woodpecker.yml

19 lines
710 B
YAML
Raw Normal View History

2023-10-21 14:06:04 +05:30
steps:
2023-02-13 16:04:43 +05:30
build:
image: python
2023-10-21 14:06:04 +05:30
environment:
- NVM_DIR="$HOME/.nvm"
2023-02-13 16:04:43 +05:30
when:
2023-10-21 14:06:04 +05:30
event: [push, pull_request, tag, deployment]
branch: master
2023-02-13 16:04:43 +05:30
commands:
2023-10-21 14:06:04 +05:30
- 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]