Files
LinkPort/.drone.yml
T

41 lines
1.2 KiB
YAML

kind: pipeline
name: default
environment:
http_proxy: http://192.168.9.1:7893
https_proxy: http://192.168.9.1:7893
no_proxy: localhost,127.0.0.1,::1
HTTP_PROXY: http://192.168.9.1:7893
HTTPS_PROXY: http://192.168.9.1:7893
NO_PROXY: localhost,127.0.0.1,::1
steps:
- name: frontend-build
image: node:22.19.0-alpine
commands:
- npm --prefix web ci --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