Add preview
This commit is contained in:
parent
ec018d2fb5
commit
8d061f823f
@ -3,7 +3,6 @@ when:
|
||||
- push
|
||||
- pull_request
|
||||
- manual
|
||||
- tag
|
||||
|
||||
steps:
|
||||
build-only:
|
||||
|
26
.woodpecker/preview.yml
Normal file
26
.woodpecker/preview.yml
Normal file
@ -0,0 +1,26 @@
|
||||
when:
|
||||
branch:
|
||||
exclude: renovate/*
|
||||
event: [push, pull_request, manual]
|
||||
|
||||
steps:
|
||||
build:
|
||||
image: node:20
|
||||
commands:
|
||||
- corepack enable
|
||||
- pnpm install
|
||||
- pnpm build
|
||||
- mv dist/index.html dist/200.html
|
||||
|
||||
preview:
|
||||
image: woodpeckerci/plugin-surge-preview
|
||||
settings:
|
||||
path: dist/
|
||||
surge_token:
|
||||
from_secret: surge_token
|
||||
forge_type: gitea
|
||||
forge_url: https://git.sebclem.fr
|
||||
forge_repo_token:
|
||||
from_secret: surge_forge_token
|
||||
when:
|
||||
event: pull_request
|
@ -25,5 +25,5 @@ ENTRYPOINT ["nginx", "-g", "daemon off;"]
|
||||
LABEL \
|
||||
org.label-schema.name="Claptrap Bot" \
|
||||
org.label-schema.url="https://claptrapbot.com" \
|
||||
org.label-schema.vcs-url="https://github.com/Sebclem/Claptrap-ui" \
|
||||
org.label-schema.vcs-url="https://git.sebclem.fr/sebclem/Claptrap-ui" \
|
||||
org.label-schema.vendor="Sebclem"
|
||||
|
Loading…
Reference in New Issue
Block a user