This commit is contained in:
parent
c9075ec215
commit
b5ae7c937c
@ -1,6 +1,16 @@
|
|||||||
---
|
---
|
||||||
branches: main
|
branches: main
|
||||||
|
|
||||||
|
variables:
|
||||||
|
surge_settings: &surge_settings
|
||||||
|
path: public
|
||||||
|
surge_token:
|
||||||
|
from_secret: SURGE_TOKEN
|
||||||
|
forge_type: gitea
|
||||||
|
forge_url: https://git.shrug.pw
|
||||||
|
forge_repo_token:
|
||||||
|
from_secret: SURGE_GITEA
|
||||||
|
|
||||||
clone:
|
clone:
|
||||||
git:
|
git:
|
||||||
image: woodpeckerci/plugin-git
|
image: woodpeckerci/plugin-git
|
||||||
@ -16,17 +26,19 @@ pipeline:
|
|||||||
preview:
|
preview:
|
||||||
image: woodpeckerci/plugin-surge-preview
|
image: woodpeckerci/plugin-surge-preview
|
||||||
secrets: [SURGE_TOKEN, SURGE_GITEA]
|
secrets: [SURGE_TOKEN, SURGE_GITEA]
|
||||||
settings:
|
settings: *surge_settings
|
||||||
path: public
|
|
||||||
surge_token:
|
|
||||||
from_secret: SURGE_TOKEN
|
|
||||||
forge_type: gitea
|
|
||||||
forge_url: https://git.shrug.pw
|
|
||||||
forge_repo_token:
|
|
||||||
from_secret: SURGE_GITEA
|
|
||||||
when:
|
when:
|
||||||
event: pull_request
|
event: pull_request
|
||||||
|
|
||||||
|
teardown-preview:
|
||||||
|
image: woodpeckerci/plugin-surge-preview
|
||||||
|
secrets: [SURGE_TOKEN, SURGE_GITEA]
|
||||||
|
settings: *surge_settings
|
||||||
|
environment:
|
||||||
|
- CI_BUILD_EVENT=pull_close
|
||||||
|
when:
|
||||||
|
event: push
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
image: git.shrug.pw/neil/containers/woodpecker-ci:latest
|
image: git.shrug.pw/neil/containers/woodpecker-ci:latest
|
||||||
secrets: [ssh_key]
|
secrets: [ssh_key]
|
||||||
|
Loading…
Reference in New Issue
Block a user