mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-30 10:11:23 +02:00
parent
3ae4a8d7bb
commit
111eb7ef48
@ -26,7 +26,7 @@ steps:
|
|||||||
image: docker.io/woodpeckerci/plugin-prettier:0.1.0
|
image: docker.io/woodpeckerci/plugin-prettier:0.1.0
|
||||||
depends_on: []
|
depends_on: []
|
||||||
settings:
|
settings:
|
||||||
version: 3.2.5
|
version: 3.3.3
|
||||||
|
|
||||||
- name: links
|
- name: links
|
||||||
image: docker.io/lycheeverse/lychee:0.15.1
|
image: docker.io/lycheeverse/lychee:0.15.1
|
||||||
|
@ -477,7 +477,7 @@ var flags = append([]cli.Flag{
|
|||||||
// expert flags
|
// expert flags
|
||||||
//
|
//
|
||||||
&cli.StringFlag{
|
&cli.StringFlag{
|
||||||
Sources: cli.EnvVars("WOODPECKER_EXPERT_WEBHOOK_HOST", "WOODPECKER_WEBHOOK_HOST"), // TODO: remove WOODPECKER_WEBHOOK_HOST in next major release
|
Sources: cli.EnvVars("WOODPECKER_EXPERT_WEBHOOK_HOST"),
|
||||||
Name: "server-webhook-host",
|
Name: "server-webhook-host",
|
||||||
Usage: "!!!for experts!!! fully qualified woodpecker server url called by forge's webhooks. Format: <scheme>://<host>[/<prefix path>]",
|
Usage: "!!!for experts!!! fully qualified woodpecker server url called by forge's webhooks. Format: <scheme>://<host>[/<prefix path>]",
|
||||||
},
|
},
|
||||||
|
@ -86,16 +86,17 @@ Sometimes you have some tasks that you need to do in every project. For example,
|
|||||||
If you want to get a Slack notification after your pipeline has finished, you can add a Slack plugin to your pipeline:
|
If you want to get a Slack notification after your pipeline has finished, you can add a Slack plugin to your pipeline:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
---
|
steps:
|
||||||
- name: notify me on Slack
|
# ...
|
||||||
image: plugins/slack
|
- name: notify me on Slack
|
||||||
settings:
|
image: plugins/slack
|
||||||
channel: developers
|
settings:
|
||||||
username: woodpecker
|
channel: developers
|
||||||
password:
|
username: woodpecker
|
||||||
from_secret: slack_token
|
password:
|
||||||
when:
|
from_secret: slack_token
|
||||||
status: [success, failure] # This will execute the step on success and failure
|
when:
|
||||||
|
status: [success, failure] # This will execute the step on success and failure
|
||||||
```
|
```
|
||||||
|
|
||||||
To configure a plugin you can use the `settings` section.
|
To configure a plugin you can use the `settings` section.
|
||||||
|
@ -104,7 +104,7 @@ When using the `local` backend, the `image` entry is used to specify the shell,
|
|||||||
- go test
|
- go test
|
||||||
|
|
||||||
- name: publish
|
- name: publish
|
||||||
+ image: plugins/docker
|
+ image: woodpeckerci/plugin-docker-buildx
|
||||||
repo: foo/bar
|
repo: foo/bar
|
||||||
|
|
||||||
services:
|
services:
|
||||||
@ -475,7 +475,7 @@ Normally steps of a workflow are executed serially in the order in which they ar
|
|||||||
- go build
|
- go build
|
||||||
|
|
||||||
- name: deploy
|
- name: deploy
|
||||||
image: plugins/docker
|
image: woodpeckerci/plugin-docker-buildx
|
||||||
settings:
|
settings:
|
||||||
repo: foo/bar
|
repo: foo/bar
|
||||||
+ depends_on: [build, test] # deploy will be executed after build and test finished
|
+ depends_on: [build, test] # deploy will be executed after build and test finished
|
||||||
|
@ -172,7 +172,7 @@ Example commit substitution:
|
|||||||
```diff
|
```diff
|
||||||
steps:
|
steps:
|
||||||
- name: docker
|
- name: docker
|
||||||
image: plugins/docker
|
image: woodpeckerci/plugin-docker-buildx
|
||||||
settings:
|
settings:
|
||||||
+ tags: ${CI_COMMIT_SHA}
|
+ tags: ${CI_COMMIT_SHA}
|
||||||
```
|
```
|
||||||
@ -182,7 +182,7 @@ Example tag substitution:
|
|||||||
```diff
|
```diff
|
||||||
steps:
|
steps:
|
||||||
- name: docker
|
- name: docker
|
||||||
image: plugins/docker
|
image: woodpeckerci/plugin-docker-buildx
|
||||||
settings:
|
settings:
|
||||||
+ tags: ${CI_COMMIT_TAG}
|
+ tags: ${CI_COMMIT_TAG}
|
||||||
```
|
```
|
||||||
@ -210,7 +210,7 @@ Example variable substitution with substring:
|
|||||||
```diff
|
```diff
|
||||||
steps:
|
steps:
|
||||||
- name: docker
|
- name: docker
|
||||||
image: plugins/docker
|
image: woodpeckerci/plugin-docker-buildx
|
||||||
settings:
|
settings:
|
||||||
+ tags: ${CI_COMMIT_SHA:0:8}
|
+ tags: ${CI_COMMIT_SHA:0:8}
|
||||||
```
|
```
|
||||||
@ -220,7 +220,7 @@ Example variable substitution strips `v` prefix from `v.1.0.0`:
|
|||||||
```diff
|
```diff
|
||||||
steps:
|
steps:
|
||||||
- name: docker
|
- name: docker
|
||||||
image: plugins/docker
|
image: woodpeckerci/plugin-docker-buildx
|
||||||
settings:
|
settings:
|
||||||
+ tags: ${CI_COMMIT_TAG##v}
|
+ tags: ${CI_COMMIT_TAG##v}
|
||||||
```
|
```
|
||||||
|
@ -34,7 +34,7 @@ steps:
|
|||||||
- go test
|
- go test
|
||||||
|
|
||||||
- name: publish
|
- name: publish
|
||||||
image: plugins/docker
|
image: woodpeckerci/plugin-docker-buildx
|
||||||
settings:
|
settings:
|
||||||
repo: foo/bar
|
repo: foo/bar
|
||||||
tags: latest
|
tags: latest
|
||||||
|
@ -197,14 +197,6 @@ Examples:
|
|||||||
- `WOODPECKER_HOST=http://example.org/woodpecker`
|
- `WOODPECKER_HOST=http://example.org/woodpecker`
|
||||||
- `WOODPECKER_HOST=http://example.org:1234/woodpecker`
|
- `WOODPECKER_HOST=http://example.org:1234/woodpecker`
|
||||||
|
|
||||||
### `WOODPECKER_WEBHOOK_HOST`
|
|
||||||
|
|
||||||
> Default: value from `WOODPECKER_HOST` config env
|
|
||||||
|
|
||||||
Server fully qualified URL of the Webhook-facing hostname and path prefix.
|
|
||||||
|
|
||||||
Example: `WOODPECKER_WEBHOOK_HOST=http://woodpecker-server.cicd.svc.cluster.local:8000`
|
|
||||||
|
|
||||||
### `WOODPECKER_SERVER_ADDR`
|
### `WOODPECKER_SERVER_ADDR`
|
||||||
|
|
||||||
> Default: `:8000`
|
> Default: `:8000`
|
||||||
|
@ -97,11 +97,3 @@ Read the value for `WOODPECKER_GITEA_SECRET` from the specified filepath
|
|||||||
> Default: `false`
|
> Default: `false`
|
||||||
|
|
||||||
Configure if SSL verification should be skipped.
|
Configure if SSL verification should be skipped.
|
||||||
|
|
||||||
## Advanced options
|
|
||||||
|
|
||||||
### `WOODPECKER_DEV_GITEA_OAUTH_URL`
|
|
||||||
|
|
||||||
> Default: value of `WOODPECKER_GITEA_URL`
|
|
||||||
|
|
||||||
Configures the user-facing Gitea server address. Should be used if `WOODPECKER_GITEA_URL` points to an internal URL used for API requests.
|
|
||||||
|
@ -4,10 +4,6 @@ toc_max_heading_level: 2
|
|||||||
|
|
||||||
# Forgejo
|
# Forgejo
|
||||||
|
|
||||||
:::warning
|
|
||||||
Forgejo support is experimental.
|
|
||||||
:::
|
|
||||||
|
|
||||||
Woodpecker comes with built-in support for Forgejo. To enable Forgejo you should configure the Woodpecker container using the following environment variables:
|
Woodpecker comes with built-in support for Forgejo. To enable Forgejo you should configure the Woodpecker container using the following environment variables:
|
||||||
|
|
||||||
```ini
|
```ini
|
||||||
|
@ -21,7 +21,7 @@ Some versions need some changes to the server configuration or the pipeline conf
|
|||||||
- Deprecated alternative names for secrets, use `environment` with `from_secret`
|
- Deprecated alternative names for secrets, use `environment` with `from_secret`
|
||||||
- Deprecated slice definition for env vars
|
- Deprecated slice definition for env vars
|
||||||
- Deprecated `environment` filter, use `when.evaluate`
|
- Deprecated `environment` filter, use `when.evaluate`
|
||||||
- Deprecated `WOODPECKER_WEBHOOK_HOST` in favor of `WOODPECKER_EXPERT_WEBHOOK_HOST`
|
- Removed `WOODPECKER_WEBHOOK_HOST` in favor of `WOODPECKER_EXPERT_WEBHOOK_HOST`
|
||||||
- Migrated to rfc9421 for webhook signatures
|
- Migrated to rfc9421 for webhook signatures
|
||||||
|
|
||||||
## 2.0.0
|
## 2.0.0
|
||||||
|
@ -54,8 +54,7 @@ A common config for debugging would look like this:
|
|||||||
WOODPECKER_OPEN=true
|
WOODPECKER_OPEN=true
|
||||||
WOODPECKER_ADMIN=your-username
|
WOODPECKER_ADMIN=your-username
|
||||||
|
|
||||||
# if you want to test webhooks with an online forge like GitHub this address needs to be accessible from public server
|
WOODPECKER_HOST=http://localhost:8000
|
||||||
WOODPECKER_HOST=http://your-dev-address.com
|
|
||||||
|
|
||||||
# github (sample for a forge config - see /docs/administration/forge/overview for other forges)
|
# github (sample for a forge config - see /docs/administration/forge/overview for other forges)
|
||||||
WOODPECKER_GITHUB=true
|
WOODPECKER_GITHUB=true
|
||||||
@ -70,8 +69,8 @@ WOODPECKER_MAX_WORKFLOWS=1
|
|||||||
# enable if you want to develop the UI
|
# enable if you want to develop the UI
|
||||||
# WOODPECKER_DEV_WWW_PROXY=http://localhost:8010
|
# WOODPECKER_DEV_WWW_PROXY=http://localhost:8010
|
||||||
|
|
||||||
# used so you can login without using a public address
|
# if you want to test webhooks with an online forge like GitHub this address needs to be set and accessible from public server
|
||||||
WOODPECKER_DEV_OAUTH_HOST=http://localhost:8000
|
WOODPECKER_EXPERT_WEBHOOK_HOST=http://your-address.com
|
||||||
|
|
||||||
# disable health-checks while debugging (normally not needed while developing)
|
# disable health-checks while debugging (normally not needed while developing)
|
||||||
WOODPECKER_HEALTHCHECK=false
|
WOODPECKER_HEALTHCHECK=false
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
version: 1
|
|
||||||
|
|
||||||
clone:
|
clone:
|
||||||
- name: git
|
- name: git
|
||||||
image: woodpeckerci/plugin-git
|
image: woodpeckerci/plugin-git
|
||||||
|
Loading…
Reference in New Issue
Block a user