capture/.woodpecker.yml

29 lines
548 B
YAML
Raw Normal View History

2023-05-26 16:41:10 +02:00
variables:
- &golang "golang:1.19"
2023-05-27 17:11:11 +02:00
- &volumes
- /var/www/html/artifacts/capture/deblan:/artifacts
2023-05-26 16:41:10 +02:00
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-27 17:11:11 +02:00
volumes: *volumes
2023-05-26 11:50:35 +02:00
commands:
2023-05-27 17:11:11 +02:00
- go build -o /artifacts/capture
push-release:
image: plugins/gitea-release
volumes: *volumes
settings:
api_key:
from_secret: gitnet_api_key
base_url: https://gitnet.fr
note: ${CI_COMMIT_MESSAGE}
files: /artifacts/capture
when:
event: [tag]