ci: integrate dagger with woodpecker
The Woodpecker agent is now capable of running Dagger pipelines.
This commit is contained in:
parent
c036319fc6
commit
07549bdffb
1 changed files with 7 additions and 16 deletions
|
@ -1,19 +1,10 @@
|
||||||
|
---
|
||||||
pipeline:
|
pipeline:
|
||||||
test:
|
dagger:
|
||||||
image: golang:1.20.4
|
image: golang:1.20.4-alpine
|
||||||
environment:
|
|
||||||
- GO_TEST_VERBOSE=1
|
|
||||||
- GO_TEST_COVER=1
|
|
||||||
commands:
|
commands:
|
||||||
|
- apk add docker-cli
|
||||||
- cd internal/build
|
- cd internal/build
|
||||||
- go run magefiles/main.go -v test
|
- go run .
|
||||||
when:
|
volumes:
|
||||||
event: pull_request
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
|
||||||
lint:
|
|
||||||
image: golangci/golangci-lint:v1.52.2-alpine
|
|
||||||
commands:
|
|
||||||
- cd internal/build
|
|
||||||
- go run magefiles/main.go -v lint
|
|
||||||
when:
|
|
||||||
event: pull_request
|
|
||||||
|
|
Loading…
Reference in a new issue