capture/.woodpecker.yml

21 lines
435 B
YAML
Raw Normal View History

2023-05-26 16:41:10 +02:00
variables:
- &golang "golang:1.19"
2023-05-26 11:50:35 +02:00
pipeline:
test:
2023-05-26 16:41:10 +02:00
image: *golang
2023-05-26 11:50:35 +02:00
commands:
- go test -v
2023-05-26 14:19:19 +02:00
2023-05-26 11:50:35 +02:00
build:
2023-05-26 16:41:10 +02:00
image: *golang
2023-05-26 11:50:35 +02:00
commands:
- go build
2023-05-26 14:19:19 +02:00
- ART=/artifacts/deblan/capture
- test -d $ART || mkdir $ART
2023-05-26 16:41:10 +02:00
- cp capture $ART/capture-latest
2023-05-26 17:14:37 +02:00
- TAG="${CI_COMMIT_TAG}"
2023-05-26 17:15:34 +02:00
- test -n "$TAG" && cp -v capture "$ART/capture-$TAG" || true
2023-05-26 14:19:19 +02:00
volumes:
- /var/www/html/artifacts:/artifacts