Hyperpipe/.woodpecker.yaml
Shiny Nematoda 81c0073645 fix typo
2024-05-20 13:35:01 +00:00

32 lines
730 B
YAML

when:
branch: main
event: ['push']
steps:
- name: build
image: node:alpine
commands:
- npm install && npm audit fix
- npm run build
when:
event: ['push', 'pull_request']
- name: 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
- name: 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