Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use dag in ci config #3010

Merged
merged 8 commits into from
Dec 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ docker-compose.yml
extras/
/build/
/dist/
/data/

docs/venv

Expand Down
26 changes: 20 additions & 6 deletions .woodpecker/binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ variables:

steps:
build-web:
group: prepare
image: *node_image
directory: web/
commands:
Expand All @@ -23,13 +22,14 @@ steps:
- pnpm build

vendor:
group: prepare
image: *golang_image
commands:
- go mod vendor

cross-compile-server:
group: build
depends_on:
- vendor
- build-web
image: *xgo_image
pull: true
commands:
Expand All @@ -43,35 +43,49 @@ steps:
TARGZ: '1'

build-agent:
group: build
depends_on:
- vendor
image: *golang_image
commands:
- make release-agent

build-cli:
group: build
depends_on:
- vendor
image: *golang_image
commands:
- make release-cli

build-deb-rpm:
group: bundle
depends_on:
- cross-compile-server
- build-agent
- build-cli
image: *golang_image
commands:
- make bundle

checksums:
depends_on:
- cross-compile-server
- build-agent
- build-cli
- build-deb-rpm
image: *golang_image
commands:
- make release-checksums

release-dryrun:
depends_on:
- checksums
image: *golang_image
commands:
- ls -la dist/*.*
- cat dist/checksums.txt

release:
depends_on:
- checksums
image: docker.io/plugins/github-release
secrets:
- source: github_token
Expand Down
Loading