mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-13 21:34:48 +00:00
docs: add alternative naming options (#1225)
Added naming option to pipeline syntax with a list and name keyword resolves #1119
This commit is contained in:
@@ -21,6 +21,25 @@ pipeline:
|
|||||||
|
|
||||||
In the above example we define two pipeline steps, `frontend` and `backend`. The names of these steps are completely arbitrary.
|
In the above example we define two pipeline steps, `frontend` and `backend`. The names of these steps are completely arbitrary.
|
||||||
|
|
||||||
|
Another way to name a step is by using the name keyword:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
pipeline:
|
||||||
|
- name: backend
|
||||||
|
image: golang
|
||||||
|
commands:
|
||||||
|
- go build
|
||||||
|
- go test
|
||||||
|
- name: frontend
|
||||||
|
image: node
|
||||||
|
commands:
|
||||||
|
- npm install
|
||||||
|
- npm run test
|
||||||
|
- npm run build
|
||||||
|
```
|
||||||
|
|
||||||
|
Keep in mind the name is optional, if not added the steps will be numerated.
|
||||||
|
|
||||||
### Skip Commits
|
### Skip Commits
|
||||||
|
|
||||||
Woodpecker gives the ability to skip individual commits by adding `[CI SKIP]` to the commit message. Note this is case-insensitive.
|
Woodpecker gives the ability to skip individual commits by adding `[CI SKIP]` to the commit message. Note this is case-insensitive.
|
||||||
|
Reference in New Issue
Block a user