mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-06-07 18:08:48 +00:00
Use CI vars for plugin (#3061)
This commit is contained in:
parent
12db130b0b
commit
7080d133a2
1 changed files with 4 additions and 6 deletions
|
@ -13,6 +13,8 @@ when:
|
||||||
branch:
|
branch:
|
||||||
- ${CI_REPO_DEFAULT_BRANCH}
|
- ${CI_REPO_DEFAULT_BRANCH}
|
||||||
- renovate/*
|
- renovate/*
|
||||||
|
- event: pull_request_closed
|
||||||
|
path: *when_path
|
||||||
- cron: update_docs
|
- cron: update_docs
|
||||||
event: cron
|
event: cron
|
||||||
- event: manual
|
- event: manual
|
||||||
|
@ -43,22 +45,18 @@ steps:
|
||||||
- event: [cron, manual]
|
- event: [cron, manual]
|
||||||
|
|
||||||
deploy-preview:
|
deploy-preview:
|
||||||
image: docker.io/woodpeckerci/plugin-surge-preview:1.2.2
|
image: docker.io/woodpeckerci/plugin-surge-preview:1.3.0
|
||||||
settings:
|
settings:
|
||||||
path: 'docs/build/'
|
path: 'docs/build/'
|
||||||
surge_token:
|
surge_token:
|
||||||
from_secret: SURGE_TOKEN
|
from_secret: SURGE_TOKEN
|
||||||
forge_type: github
|
|
||||||
forge_url: 'https://github.com'
|
|
||||||
forge_repo_token:
|
forge_repo_token:
|
||||||
from_secret: GITHUB_TOKEN_SURGE
|
from_secret: GITHUB_TOKEN_SURGE
|
||||||
failure: ignore
|
failure: ignore
|
||||||
when:
|
when:
|
||||||
event: pull_request
|
event: [pull_request, pull_request_closed]
|
||||||
path: *when_path
|
path: *when_path
|
||||||
|
|
||||||
# TODO: add step to remove preview again after PR is closed (waiting for #286)
|
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
image: docker.io/alpine:3.19
|
image: docker.io/alpine:3.19
|
||||||
secrets:
|
secrets:
|
||||||
|
|
Loading…
Reference in a new issue