Hyperpipe/.woodpecker.yml
Shiny Nematoda de0d2814da fix ci
2023-11-21 15:07:41 +00:00

32 lines
709 B
YAML

when:
branch: main
event: ['push']
steps:
build:
image: node:alpine
commands:
- npm install && npm audit fix
- npm run build
when:
event: ['push', 'pull_request']
surge:
image: node:alpine
secrets: [surge_login, surge_token]
commands:
- npm install surge
- cp dist/index.html dist/200.html
- npx surge ./dist --domain https://hyperpipe.surge.sh
docker:
image: woodpeckerci/plugin-docker-buildx
settings:
platforms: linux/amd64,linux/arm64
repo: codeberg.org/hyperpipe/hyperpipe
registry: codeberg.org
tag: latest
username:
from_secret: cb_user
password:
from_secret: cb_token