Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use CI vars for plugin #3061

Merged
merged 6 commits into from
Dec 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions .woodpecker/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ when:
branch:
- ${CI_REPO_DEFAULT_BRANCH}
- renovate/*
- event: pull_request_closed
path: *when_path
- cron: update_docs
event: cron
- event: manual
Expand Down Expand Up @@ -43,22 +45,18 @@ steps:
- event: [cron, manual]

deploy-preview:
image: docker.io/woodpeckerci/plugin-surge-preview:1.2.2
image: docker.io/woodpeckerci/plugin-surge-preview:1.3.0
settings:
path: 'docs/build/'
surge_token:
from_secret: SURGE_TOKEN
forge_type: github
forge_url: 'https://github.com'
forge_repo_token:
from_secret: GITHUB_TOKEN_SURGE
failure: ignore
when:
event: pull_request
event: [pull_request, pull_request_closed]
path: *when_path

# TODO: add step to remove preview again after PR is closed (waiting for #286)

deploy:
image: docker.io/alpine:3.19
secrets:
Expand Down