woodpecker/pipeline/frontend/yaml/linter/schema/.woodpecker/test-step.yaml
qwerty287 225ddb586d
Rework entrypoints (#3269)
Co-authored-by: Thomas Anderson <127358482+zc-devs@users.noreply.github.com>
Co-authored-by: 6543 <m.huber@kithara.com>
2024-05-02 14:52:01 +02:00

76 lines
1.2 KiB
YAML

steps:
image:
image: golang
commands:
- go test
image-pull:
image: golang
pull: true
commands:
- go test
single-command:
image: golang
commands: go test
entrypoint:
image: alpine
entrypoint: ['some_entry', '--some-flag']
singla-entrypoint:
image: alpine
entrypoint: some_entry
commands:
privileged: true
image: golang
commands:
- go get
- go test
environment:
image: golang
environment:
CGO: 0
GOOS: linux
GOARCH: amd64
commands:
- go test
environment-array:
image: golang
environment:
- CGO=0
- GOOS=linux
- GOARCH=amd64
commands:
- go test
secrets:
image: docker
commands:
- echo $DOCKER_USERNAME
- echo $DOCKER_PASSWORD
secrets:
- docker_username
- source: docker_prod_password
target: docker_password
group:
group: test
image: golang
commands:
- go test
detached:
image: redis
detach: true
volume:
image: docker
commands:
- docker build --rm -t octocat/hello-world .
volumes:
- /var/run/docker.sock:/var/run/docker.sock