woodpecker/.woodpecker/binaries.yml

135 lines
2.7 KiB
YAML
Raw Normal View History

depends_on:
- test
- web
pipeline:
build-web:
image: node:16-alpine
commands:
- cd web/
- yarn install --frozen-lockfile
- yarn build
2022-05-20 03:27:43 +00:00
# when:
# path:
# # related config files
# - ".woodpecker/binaries.yml"
# - "nfpm/*.yml"
# # go source code
# - "**/*.go"
# - "go.*"
# # web source code
# - "web/**"
build-server:
group: build
2022-02-25 11:08:48 +00:00
image: golang:1.17
commands:
- make release-server
2022-05-20 03:27:43 +00:00
# when:
# path:
# # related config files
# - ".woodpecker/binaries.yml"
# - "nfpm/*.yml"
# # go source code
# - "**/*.go"
# - "go.*"
# # web source code
# - "web/**"
build-agent:
group: build
2022-02-25 11:08:48 +00:00
image: golang:1.17
commands:
- make release-agent
2022-05-20 03:27:43 +00:00
# when:
# path:
# # related config files
# - ".woodpecker/binaries.yml"
# - "nfpm/*.yml"
# # go source code
# - "**/*.go"
# - "go.*"
# # web source code
# - "web/**"
build-cli:
group: build
2022-02-25 11:08:48 +00:00
image: golang:1.17
commands:
- make release-cli
2022-05-20 03:27:43 +00:00
# when:
# path:
# # related config files
# - ".woodpecker/binaries.yml"
# - "nfpm/*.yml"
# # go source code
# - "**/*.go"
# - "go.*"
# # web source code
# - "web/**"
build-deb-rpm:
group: bundle
2022-02-25 11:08:48 +00:00
image: golang:1.17
commands:
- make bundle
2022-05-20 03:27:43 +00:00
# when:
# path:
# # related config files
# - ".woodpecker/binaries.yml"
# - "nfpm/*.yml"
# # go source code
# - "**/*.go"
# - "go.*"
# # web source code
# - "web/**"
checksums:
2022-02-25 11:08:48 +00:00
image: golang:1.17
commands:
- make release-checksums
2022-05-20 03:27:43 +00:00
# when:
# path:
# # related config files
# - ".woodpecker/binaries.yml"
# - "nfpm/*.yml"
# # go source code
# - "**/*.go"
# - "go.*"
# # web source code
# - "web/**"
# TODO: upload build artifacts for pushes to ${CI_REPO_DEFAULT_BRANCH}
release-dryrun:
2022-02-25 11:08:48 +00:00
image: golang:1.17
commands:
- ls -la dist/*.*
- cat dist/checksums.txt
2022-05-20 03:27:43 +00:00
# when:
# path:
# # related config files
# - ".woodpecker/binaries.yml"
# - "nfpm/*.yml"
# # go source code
# - "**/*.go"
# - "go.*"
# # web source code
# - "web/**"
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
# path conditions are ignored for tag events