capture/.woodpecker.yml
2023-05-26 16:52:58 +02:00

22 lines
472 B
YAML

variables:
- &golang "golang:1.19"
pipeline:
test:
image: *golang
commands:
- go test -v
build:
image: *golang
environment:
TAG: ${CI_COMMIT_TAG:-}
commands:
- go build
- ART=/artifacts/deblan/capture
- test -d $ART || mkdir $ART
- cp capture $ART/capture-latest
- test -z "${CI_COMMIT_TAG}" && cp capture "$ART/capture-${CI_COMMIT_TAG}" || true
volumes:
- /var/www/html/artifacts:/artifacts