Add preview
Some checks failed
ci/woodpecker/push/docker_dev Pipeline failed
ci/woodpecker/push/preview Pipeline was successful

This commit is contained in:
SebClem 2024-01-01 15:07:46 +01:00
parent ec018d2fb5
commit 8d061f823f
Signed by: sebclem
GPG Key ID: 5A4308F6A359EA50
3 changed files with 27 additions and 2 deletions

View File

@ -3,7 +3,6 @@ when:
- push - push
- pull_request - pull_request
- manual - manual
- tag
steps: steps:
build-only: build-only:

26
.woodpecker/preview.yml Normal file
View 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

View File

@ -25,5 +25,5 @@ ENTRYPOINT ["nginx", "-g", "daemon off;"]
LABEL \ LABEL \
org.label-schema.name="Claptrap Bot" \ org.label-schema.name="Claptrap Bot" \
org.label-schema.url="https://claptrapbot.com" \ 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" org.label-schema.vendor="Sebclem"