mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-26 20:01:02 +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:
parent
6d6e54afab
commit
203ef518df
1 changed files with 19 additions and 0 deletions
|
@ -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.
|
||||
|
||||
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
|
||||
|
||||
Woodpecker gives the ability to skip individual commits by adding `[CI SKIP]` to the commit message. Note this is case-insensitive.
|
||||
|
|
Loading…
Reference in a new issue