mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-06 08:16:19 +02:00
fb7619a5c8
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|---| | docker.io/techknowlogick/xgo | patch | `go-1.21.4` -> `go-1.21.5` | --- ### Configuration 📅 **Schedule**: Branch creation - "every weekend" (UTC), Automerge - "before 4am" (UTC). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/woodpecker-ci/woodpecker). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy44Ny4yIiwidXBkYXRlZEluVmVyIjoiMzcuODcuMiIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
88 lines
1.7 KiB
YAML
88 lines
1.7 KiB
YAML
version: 1
|
|
|
|
depends_on:
|
|
- test
|
|
- web
|
|
|
|
# TODO: upload build artifacts for pushes to ${CI_REPO_DEFAULT_BRANCH}
|
|
when:
|
|
event: tag
|
|
|
|
variables:
|
|
- &golang_image 'docker.io/golang:1.21.5'
|
|
- &node_image 'docker.io/node:21-alpine'
|
|
- &xgo_image 'docker.io/techknowlogick/xgo:go-1.21.5'
|
|
- &xgo_version 'go-1.21.2'
|
|
|
|
steps:
|
|
build-web:
|
|
group: prepare
|
|
image: *node_image
|
|
directory: web/
|
|
commands:
|
|
- corepack enable
|
|
- pnpm install --frozen-lockfile
|
|
- pnpm build
|
|
|
|
vendor:
|
|
group: prepare
|
|
image: *golang_image
|
|
commands:
|
|
- go mod vendor
|
|
|
|
cross-compile-server:
|
|
group: build
|
|
image: *xgo_image
|
|
pull: true
|
|
commands:
|
|
- apt update
|
|
- apt install -y tree
|
|
- make cross-compile-server
|
|
environment:
|
|
PLATFORMS: linux|arm64/v8;linux|amd64;windows|amd64
|
|
TAGS: bindata sqlite sqlite_unlock_notify netgo
|
|
XGO_VERSION: *xgo_version
|
|
TARGZ: '1'
|
|
|
|
build-agent:
|
|
group: build
|
|
image: *golang_image
|
|
commands:
|
|
- make release-agent
|
|
|
|
build-cli:
|
|
group: build
|
|
image: *golang_image
|
|
commands:
|
|
- make release-cli
|
|
|
|
build-deb-rpm:
|
|
group: bundle
|
|
image: *golang_image
|
|
commands:
|
|
- make bundle
|
|
|
|
checksums:
|
|
image: *golang_image
|
|
commands:
|
|
- make release-checksums
|
|
|
|
release-dryrun:
|
|
image: *golang_image
|
|
commands:
|
|
- ls -la dist/*.*
|
|
- cat dist/checksums.txt
|
|
|
|
release:
|
|
image: docker.io/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}
|