What is a pipeline, exactly? #3569
-
I am new to Woodpecker and when digging through the documentation and examples I feel a bit lost in the general "pipeline" definition. I also apologize for the emotional rollercoaster below. When I look at the tutorial, I see that a pipeline is steps:
- name: build
image: debian
commands:
- echo "This is the build step"
- name: a-test-step
image: debian
commands:
- echo "Testing.." So there is a section A bit down I see that the steps can also be plugins: steps:
deploy-to-k8s:
image: laszlocloud/my-k8s-plugin
settings:
template: config/k8s/service.yaml Hey, where is the list of steps gone? Now instead of a list I have a hash/dict/object... Hmmm, would that mean that I can either use a list or a dictionary? OK. I then jump into deep water by running a workflow for a project of mine where I need to build an image from a steps:
build:
name: build docker image
image: woodpeckerci/plugin-docker-buildx
privileged: true
settings:
tag: gitea.XXX.YY/wojtek/dash:latest
push:
name: push to gitea
image: woodpeckerci/plugin-docker-buildx
privileged: true
settings:
username: wojtek
password:
from_secret: gitea-password I try this and, crap, there is an error:
So back to the docs where I see that both a list and a dict are fine. OK this is cleared at least. But I still do no understand the error above so here I am, asking for help 🙂 One last thing: I REALLY like Woodpecker because it exactly fits the CI/CD I am looking for: simple, straightforward and with a lot of potential (as opposed to the crappy Github Actions or slightly better Gitlab I forgot what they are called). So I want to know!! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Yes, read more at the first paragraph of https://woodpecker-ci.org/docs/usage/workflow-syntax
The pipeline definition means the YAML file. In general, a pipeline is a collection of workflows, and every workflow is defined using a YAML file. You can also take a look at https://woodpecker-ci.org/docs/usage/terminiology |
Beta Was this translation helpful? Give feedback.
-
Better ask GitHub directly, next time. |
Beta Was this translation helpful? Give feedback.
#2475
Better ask GitHub directly, next time.
It may be flaky issue.
1496
I've faced personally. And yesterday I pushed (not forced) to pretty old repositories - the same. Just restarted manually. Followed pushes worked as intended.