Files
LinkPort/.drone.yml
T
曾志威 7e5ca6b497
continuous-integration/drone Build encountered an error
ci: use China dependency mirrors and persist npm cache
2026-10-14 10:06:34 +08:00

41 lines
1.1 KiB
YAML

kind: pipeline
name: default
steps:
- name: frontend-build
image: node:22.19.0-alpine
volumes:
- name: npm-cache
path: /root/.npm
commands:
- npm --prefix web ci --prefer-offline --no-audit --no-fund
- npm --prefix web run build
- name: build-binaries
image: golang:1.27.1-alpine
environment:
GOTOOLCHAIN: go1.27.1
CGO_ENABLED: "0"
BUILD_JOBS: "1"
GO_BUILD_PARALLELISM: "1"
commands:
- apk add --no-cache git
- sh scripts/build-ci-release.sh
- name: package
image: node:22.19.0-alpine
environment:
IPFS_API: https://ipfs.freeicu.top
IPFS_TOKEN: "674d69308edc52450a5fff0e64947703de3d47d723810b53833ec9d4e999f20e"
commands:
- apk add --no-cache libarchive-tools curl
- node --test scripts/build-ci-release.test.mjs scripts/ci-release.test.mjs
- node scripts/verify-package.mjs bin/build-cache/ci-release/linux-amd64/linkport
- node scripts/ci-release.mjs package
- node scripts/ci-release.mjs upload
volumes:
- name: npm-cache
host:
path: /var/cache/drone/linkport/npm