adept/.woodpecker.yml

34 lines
731 B
YAML
Raw Normal View History

2022-08-31 20:21:24 -04:00
pipeline:
2022-09-02 12:12:09 -04:00
build_test:
2022-08-31 20:21:24 -04:00
image: golang:1.16
commands:
2022-09-02 12:12:09 -04:00
- go build
2022-08-31 20:21:24 -04:00
test:
image: golang:1.16
commands:
2022-09-02 12:12:09 -04:00
- apt update
- apt install -f lsof
- go test -v ./...
2022-09-02 12:12:09 -04:00
build_release:
image: golang:1.16
commands:
- go mod vendor
- GOOS=linux GOARCH=amd64 go build -o "dist/adept-linux-amd64-${CI_COMMIT_TAG}"
- GOOS=windows GOARCH=amd64 go build -o "dist/adept-windows-amd64-${CI_COMMIT_TAG}.exe"
when:
event: tag
2022-08-31 20:21:24 -04:00
gitea_release:
image: plugins/gitea-release
settings:
api_key:
from_secret: gitea_api_key
base_url: https://git.metaunix.net
title: "${CI_COMMIT_TAG}"
files:
- dist/adept-*
when:
event: tag