use node16 via nvm
ci/woodpecker/push/woodpecker Pipeline failed Details

This commit is contained in:
Aravinth Manivannan 2023-10-21 14:06:04 +05:30
parent 3e2cc350be
commit a3c0e1022f
Signed by: realaravinth
GPG Key ID: F8F50389936984FF
1 changed files with 13 additions and 14 deletions

View File

@ -1,19 +1,18 @@
pipeline: steps:
build: build:
image: python image: python
environment:
- NVM_DIR="$HOME/.nvm"
when: when:
event: [ push, pull_request, tag, deployment ] event: [push, pull_request, tag, deployment]
branch: master branch: master
commands: commands:
- apt-get update - apt-get update
- apt-get install -y ca-certificates curl gnupg tar wget - apt update && apt-get -y --no-install-recommends install curl tar gnupg curl wget git
- mkdir -p /etc/apt/keyrings - curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash
- curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg - source "$NVM_DIR/nvm.sh" && nvm install 16.20.2
- echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list - source "$NVM_DIR/nvm.sh" && nvm use 16.20.2
- apt-get -y install nodejs npm - source "$NVM_DIR/nvm.sh" && node install yarn
- npm install --global yarn - source "$NVM_DIR/nvm.sh" && make env
- apt update && apt-get -y --no-install-recommends install nodejs tar gpg curl wget - source "$NVM_DIR/nvm.sh" && make ci-deploy
- make env secrets: [FORGEJO_WRITE_DEPLOY_KEY, LIBREPAGES_DEPLOY_SECRET]
- make
- make ci-deploy
secrets: [ FORGEJO_WRITE_DEPLOY_KEY, LIBREPAGES_DEPLOY_SECRET ]