woodpecker/.woodpecker/main.yml
6543 11d5d4bf48
Compile for more platforms on release (#703)
* move docker stuff into own pipeline

* add compile targets "freebsd/arm64,freebsd/amd64,openbsd/arm64,openbsd/amd64" for agent & cli

* add dryrun for server
2022-01-18 00:36:46 +01:00

66 lines
1.1 KiB
YAML

pipeline:
build-web:
image: node:16-alpine
commands:
- cd web/
- yarn install --frozen-lockfile
- yarn build
build-server:
group: build
image: golang:1.16
commands:
- make release-server
build-agent:
group: build
image: golang:1.16
commands:
- make release-agent
when:
event: tag
build-cli:
group: build
image: golang:1.16
commands:
- make release-cli
when:
event: tag
build-deb-rpm:
group: bundle
image: golang:1.16
commands:
- make bundle
when:
event: tag
checksums:
image: golang:1.16
commands:
- make release-checksums
when:
event: tag
# TODO: upload build artifacts for pushes to ${CI_REPO_DEFAULT_BRANCH}
release:
image: plugins/github-release
secrets:
- source: github_token
target: github_release_api_key
settings:
files:
- dist/*.tar.gz
- dist/*.deb
- dist/*.rpm
- dist/checksums.txt
title: ${CI_COMMIT_TAG##v}
when:
event: tag
depends_on:
- test
- web