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:
Yehonatan Ezron 2022-09-29 23:35:32 +03:00 committed by GitHub
parent 6d6e54afab
commit 203ef518df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.