mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-01-04 14:48:42 +00:00
Remove steps for publishing release branches (#3125)
This commit is contained in:
parent
f3420716ab
commit
aef3f8f3ef
5 changed files with 48 additions and 154 deletions
|
@ -3,7 +3,6 @@ when:
|
||||||
- event: push
|
- event: push
|
||||||
branch:
|
branch:
|
||||||
- ${CI_REPO_DEFAULT_BRANCH}
|
- ${CI_REPO_DEFAULT_BRANCH}
|
||||||
- release/*
|
|
||||||
- renovate/*
|
- renovate/*
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
|
@ -61,7 +60,7 @@ steps:
|
||||||
path: *when_path
|
path: *when_path
|
||||||
- branch:
|
- branch:
|
||||||
- ${CI_REPO_DEFAULT_BRANCH}
|
- ${CI_REPO_DEFAULT_BRANCH}
|
||||||
- release/*
|
- renovate/*
|
||||||
event: [push, tag]
|
event: [push, tag]
|
||||||
path: *when_path
|
path: *when_path
|
||||||
|
|
||||||
|
@ -82,7 +81,7 @@ steps:
|
||||||
path: *when_path
|
path: *when_path
|
||||||
- branch:
|
- branch:
|
||||||
- ${CI_REPO_DEFAULT_BRANCH}
|
- ${CI_REPO_DEFAULT_BRANCH}
|
||||||
- release/*
|
- renovate/*
|
||||||
event: [push, tag]
|
event: [push, tag]
|
||||||
path: *when_path
|
path: *when_path
|
||||||
|
|
||||||
|
@ -105,6 +104,9 @@ steps:
|
||||||
evaluate: 'CI_COMMIT_PULL_REQUEST_LABELS contains "build_pr_images"'
|
evaluate: 'CI_COMMIT_PULL_REQUEST_LABELS contains "build_pr_images"'
|
||||||
- event: pull_request
|
- event: pull_request
|
||||||
path: *when_path
|
path: *when_path
|
||||||
|
- event: push
|
||||||
|
branch: renovate/*
|
||||||
|
path: *when_path
|
||||||
|
|
||||||
cross-compile-server:
|
cross-compile-server:
|
||||||
depends_on:
|
depends_on:
|
||||||
|
@ -123,7 +125,6 @@ steps:
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
- ${CI_REPO_DEFAULT_BRANCH}
|
- ${CI_REPO_DEFAULT_BRANCH}
|
||||||
- release/*
|
|
||||||
event: [push, tag]
|
event: [push, tag]
|
||||||
path: *when_path
|
path: *when_path
|
||||||
|
|
||||||
|
@ -168,26 +169,12 @@ steps:
|
||||||
platforms: *platforms_preview
|
platforms: *platforms_preview
|
||||||
tag: pull_${CI_COMMIT_PULL_REQUEST}
|
tag: pull_${CI_COMMIT_PULL_REQUEST}
|
||||||
when:
|
when:
|
||||||
evaluate: 'not (CI_COMMIT_PULL_REQUEST_LABELS contains "build_pr_images")'
|
- evaluate: 'not (CI_COMMIT_PULL_REQUEST_LABELS contains "build_pr_images")'
|
||||||
event: pull_request
|
event: pull_request
|
||||||
path: *when_path
|
path: *when_path
|
||||||
|
- event: push
|
||||||
build-server-alpine:
|
branch: renovate/*
|
||||||
depends_on:
|
path: *when_path
|
||||||
- vendor
|
|
||||||
- build-web
|
|
||||||
- cross-compile-server-preview
|
|
||||||
image: *buildx_plugin
|
|
||||||
settings:
|
|
||||||
dry_run: true
|
|
||||||
repo: woodpeckerci/woodpecker-server
|
|
||||||
dockerfile: docker/Dockerfile.server.alpine.multiarch
|
|
||||||
platforms: *platforms_preview
|
|
||||||
tag: pull_${CI_COMMIT_PULL_REQUEST}-alpine
|
|
||||||
when:
|
|
||||||
evaluate: 'not (CI_COMMIT_PULL_REQUEST_LABELS contains "build_pr_images")'
|
|
||||||
event: pull_request
|
|
||||||
path: *when_path
|
|
||||||
|
|
||||||
publish-next-server:
|
publish-next-server:
|
||||||
depends_on:
|
depends_on:
|
||||||
|
@ -219,36 +206,6 @@ steps:
|
||||||
event: push
|
event: push
|
||||||
path: *when_path
|
path: *when_path
|
||||||
|
|
||||||
publish-release-branch-server:
|
|
||||||
depends_on:
|
|
||||||
- cross-compile-server
|
|
||||||
image: *buildx_plugin
|
|
||||||
settings:
|
|
||||||
repo: *publish_repos_server
|
|
||||||
dockerfile: docker/Dockerfile.server.multiarch
|
|
||||||
platforms: *platforms_server
|
|
||||||
tag: ${CI_COMMIT_BRANCH##release/}
|
|
||||||
logins: *publish_logins
|
|
||||||
when:
|
|
||||||
branch: release/*
|
|
||||||
event: push
|
|
||||||
path: *when_path
|
|
||||||
|
|
||||||
publish-release-branch-server-alpine:
|
|
||||||
depends_on:
|
|
||||||
- cross-compile-server
|
|
||||||
image: *buildx_plugin
|
|
||||||
settings:
|
|
||||||
repo: *publish_repos_server
|
|
||||||
dockerfile: docker/Dockerfile.server.alpine.multiarch
|
|
||||||
platforms: *platforms_alpine
|
|
||||||
tag: ${CI_COMMIT_BRANCH##release/}
|
|
||||||
logins: *publish_logins
|
|
||||||
when:
|
|
||||||
branch: release/*
|
|
||||||
event: push
|
|
||||||
path: *when_path
|
|
||||||
|
|
||||||
release-server:
|
release-server:
|
||||||
depends_on:
|
depends_on:
|
||||||
- cross-compile-server
|
- cross-compile-server
|
||||||
|
@ -308,9 +265,12 @@ steps:
|
||||||
tag: pull_${CI_COMMIT_PULL_REQUEST}
|
tag: pull_${CI_COMMIT_PULL_REQUEST}
|
||||||
build_args: *build_args
|
build_args: *build_args
|
||||||
when:
|
when:
|
||||||
evaluate: 'not (CI_COMMIT_PULL_REQUEST_LABELS contains "build_pr_images")'
|
- evaluate: 'not (CI_COMMIT_PULL_REQUEST_LABELS contains "build_pr_images")'
|
||||||
event: pull_request
|
event: pull_request
|
||||||
path: *when_path
|
path: *when_path
|
||||||
|
- event: push
|
||||||
|
branch: renovate/*
|
||||||
|
path: *when_path
|
||||||
|
|
||||||
publish-next-agent:
|
publish-next-agent:
|
||||||
depends_on:
|
depends_on:
|
||||||
|
@ -350,38 +310,6 @@ steps:
|
||||||
event: push
|
event: push
|
||||||
path: *when_path
|
path: *when_path
|
||||||
|
|
||||||
publish-release-branch-agent:
|
|
||||||
depends_on:
|
|
||||||
- vendor
|
|
||||||
image: *buildx_plugin
|
|
||||||
settings:
|
|
||||||
repo: *publish_repos_agent
|
|
||||||
dockerfile: docker/Dockerfile.agent.multiarch
|
|
||||||
platforms: *platforms_release
|
|
||||||
tag: ${CI_COMMIT_BRANCH##release/}
|
|
||||||
logins: *publish_logins
|
|
||||||
build_args: *build_args
|
|
||||||
when:
|
|
||||||
branch: release/*
|
|
||||||
event: push
|
|
||||||
path: *when_path
|
|
||||||
|
|
||||||
publish-release-branch-agent-alpine:
|
|
||||||
depends_on:
|
|
||||||
- vendor
|
|
||||||
image: *buildx_plugin
|
|
||||||
settings:
|
|
||||||
repo: *publish_repos_agent
|
|
||||||
dockerfile: docker/Dockerfile.agent.alpine.multiarch
|
|
||||||
platforms: *platforms_alpine
|
|
||||||
tag: ${CI_COMMIT_BRANCH##release/}
|
|
||||||
logins: *publish_logins
|
|
||||||
build_args: *build_args
|
|
||||||
when:
|
|
||||||
branch: release/*
|
|
||||||
event: push
|
|
||||||
path: *when_path
|
|
||||||
|
|
||||||
release-agent:
|
release-agent:
|
||||||
depends_on:
|
depends_on:
|
||||||
- vendor
|
- vendor
|
||||||
|
@ -449,9 +377,12 @@ steps:
|
||||||
tag: pull_${CI_COMMIT_PULL_REQUEST}
|
tag: pull_${CI_COMMIT_PULL_REQUEST}
|
||||||
build_args: *build_args
|
build_args: *build_args
|
||||||
when:
|
when:
|
||||||
evaluate: 'not (CI_COMMIT_PULL_REQUEST_LABELS contains "build_pr_images")'
|
- evaluate: 'not (CI_COMMIT_PULL_REQUEST_LABELS contains "build_pr_images")'
|
||||||
event: pull_request
|
event: pull_request
|
||||||
path: *when_path
|
path: *when_path
|
||||||
|
- event: push
|
||||||
|
branch: renovate/*
|
||||||
|
path: *when_path
|
||||||
|
|
||||||
publish-next-cli:
|
publish-next-cli:
|
||||||
depends_on:
|
depends_on:
|
||||||
|
@ -491,38 +422,6 @@ steps:
|
||||||
event: push
|
event: push
|
||||||
path: *when_path
|
path: *when_path
|
||||||
|
|
||||||
publish-release-branch-cli:
|
|
||||||
depends_on:
|
|
||||||
- vendor
|
|
||||||
image: *buildx_plugin
|
|
||||||
settings:
|
|
||||||
repo: *publish_repos_cli
|
|
||||||
dockerfile: docker/Dockerfile.cli.multiarch
|
|
||||||
platforms: *platforms_release
|
|
||||||
tag: ${CI_COMMIT_BRANCH##release/}
|
|
||||||
logins: *publish_logins
|
|
||||||
build_args: *build_args
|
|
||||||
when:
|
|
||||||
branch: release/*
|
|
||||||
event: push
|
|
||||||
path: *when_path
|
|
||||||
|
|
||||||
publish-release-branch-cli-alpine:
|
|
||||||
depends_on:
|
|
||||||
- vendor
|
|
||||||
image: *buildx_plugin
|
|
||||||
settings:
|
|
||||||
repo: *publish_repos_cli
|
|
||||||
dockerfile: docker/Dockerfile.cli.alpine.multiarch
|
|
||||||
platforms: *platforms_alpine
|
|
||||||
tag: ${CI_COMMIT_BRANCH##release/}
|
|
||||||
logins: *publish_logins
|
|
||||||
build_args: *build_args
|
|
||||||
when:
|
|
||||||
branch: release/*
|
|
||||||
event: push
|
|
||||||
path: *when_path
|
|
||||||
|
|
||||||
release-cli:
|
release-cli:
|
||||||
depends_on:
|
depends_on:
|
||||||
- vendor
|
- vendor
|
||||||
|
|
|
@ -44,6 +44,7 @@ steps:
|
||||||
- make docs
|
- make docs
|
||||||
when:
|
when:
|
||||||
- path: *when_path
|
- path: *when_path
|
||||||
|
event: [tag, pull_request, push]
|
||||||
- event: manual
|
- event: manual
|
||||||
|
|
||||||
build:
|
build:
|
||||||
|
@ -55,6 +56,7 @@ steps:
|
||||||
- pnpm build
|
- pnpm build
|
||||||
when:
|
when:
|
||||||
- path: *when_path
|
- path: *when_path
|
||||||
|
event: [tag, pull_request, push]
|
||||||
- event: manual
|
- event: manual
|
||||||
|
|
||||||
deploy-preview:
|
deploy-preview:
|
||||||
|
|
|
@ -3,7 +3,6 @@ when:
|
||||||
- event: push
|
- event: push
|
||||||
branch:
|
branch:
|
||||||
- ${CI_REPO_DEFAULT_BRANCH}
|
- ${CI_REPO_DEFAULT_BRANCH}
|
||||||
- release/*
|
|
||||||
- renovate/*
|
- renovate/*
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
|
@ -11,23 +10,20 @@ variables:
|
||||||
- &trivy_plugin woodpeckerci/plugin-trivy:1.0.1
|
- &trivy_plugin woodpeckerci/plugin-trivy:1.0.1
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
check backend:
|
backend:
|
||||||
depends_on: []
|
depends_on: []
|
||||||
image: *trivy_plugin
|
image: *trivy_plugin
|
||||||
settings:
|
settings:
|
||||||
skip-dirs: web/,docs/
|
skip-dirs: web/,docs/
|
||||||
|
|
||||||
check docs:
|
docs:
|
||||||
depends_on: []
|
depends_on: []
|
||||||
image: *trivy_plugin
|
image: *trivy_plugin
|
||||||
settings:
|
settings:
|
||||||
skip-dirs: node_modules/,plugins/woodpecker-plugins/node_modules/
|
skip-dirs: node_modules/,plugins/woodpecker-plugins/node_modules/
|
||||||
dir: docs/
|
dir: docs/
|
||||||
when:
|
|
||||||
event: [pull_request, push, cron]
|
|
||||||
branch: ${CI_REPO_DEFAULT_BRANCH}
|
|
||||||
|
|
||||||
check web:
|
web:
|
||||||
depends_on: []
|
depends_on: []
|
||||||
image: *trivy_plugin
|
image: *trivy_plugin
|
||||||
settings:
|
settings:
|
||||||
|
|
|
@ -1,9 +1,8 @@
|
||||||
when:
|
when:
|
||||||
- event: [pull_request, tag]
|
- event: pull_request
|
||||||
- event: push
|
- event: push
|
||||||
branch:
|
branch:
|
||||||
- ${CI_REPO_DEFAULT_BRANCH}
|
- ${CI_REPO_DEFAULT_BRANCH}
|
||||||
- release/*
|
|
||||||
- renovate/*
|
- renovate/*
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
|
@ -11,13 +10,16 @@ variables:
|
||||||
- &when
|
- &when
|
||||||
- path: &when_path # related config files
|
- path: &when_path # related config files
|
||||||
- '.woodpecker/test.yml'
|
- '.woodpecker/test.yml'
|
||||||
- '.golangci.yml'
|
- '.golangci.yaml'
|
||||||
# go source code
|
# go source code
|
||||||
- '**/*.go'
|
- '**/*.go'
|
||||||
- 'go.*'
|
- 'go.*'
|
||||||
# schema changes
|
# schema changes
|
||||||
- 'pipeline/schema/**'
|
- 'pipeline/schema/**'
|
||||||
event: [pull_request, tag]
|
event: pull_request
|
||||||
|
- event: push
|
||||||
|
branch: renovate/*
|
||||||
|
path: *when_path
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
vendor:
|
vendor:
|
||||||
|
@ -25,9 +27,9 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- go mod vendor
|
- go mod vendor
|
||||||
when:
|
when:
|
||||||
- path:
|
path:
|
||||||
- <<: *when_path
|
- <<: *when_path
|
||||||
- '.woodpecker/**'
|
- '.woodpecker/**'
|
||||||
|
|
||||||
lint-pipeline:
|
lint-pipeline:
|
||||||
depends_on:
|
depends_on:
|
||||||
|
@ -36,10 +38,9 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- go run go.woodpecker-ci.org/woodpecker/v2/cmd/cli lint
|
- go run go.woodpecker-ci.org/woodpecker/v2/cmd/cli lint
|
||||||
when:
|
when:
|
||||||
- <<: *when
|
- event: pull_request
|
||||||
- path:
|
path:
|
||||||
- '.woodpecker/**'
|
- '.woodpecker/**'
|
||||||
- 'pipeline/schema/**'
|
|
||||||
|
|
||||||
dummy-web:
|
dummy-web:
|
||||||
image: *golang_image
|
image: *golang_image
|
||||||
|
@ -57,7 +58,7 @@ steps:
|
||||||
- make lint
|
- make lint
|
||||||
when: *when
|
when: *when
|
||||||
|
|
||||||
check_swagger:
|
check-swagger:
|
||||||
depends_on:
|
depends_on:
|
||||||
- vendor
|
- vendor
|
||||||
image: *golang_image
|
image: *golang_image
|
||||||
|
@ -70,7 +71,7 @@ steps:
|
||||||
lint-editorconfig:
|
lint-editorconfig:
|
||||||
image: docker.io/mstruebing/editorconfig-checker:2.7.2
|
image: docker.io/mstruebing/editorconfig-checker:2.7.2
|
||||||
when:
|
when:
|
||||||
- event: [pull_request, tag]
|
event: pull_request
|
||||||
|
|
||||||
lint-license-header:
|
lint-license-header:
|
||||||
image: *golang_image
|
image: *golang_image
|
||||||
|
|
|
@ -1,10 +1,7 @@
|
||||||
when:
|
when:
|
||||||
- event: [pull_request, tag]
|
- event: pull_request
|
||||||
- event: push
|
- event: push
|
||||||
branch:
|
branch: renovate/*
|
||||||
- ${CI_REPO_DEFAULT_BRANCH}
|
|
||||||
- release/*
|
|
||||||
- renovate/*
|
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
- &node_image 'docker.io/node:21-alpine'
|
- &node_image 'docker.io/node:21-alpine'
|
||||||
|
@ -16,10 +13,9 @@ variables:
|
||||||
- 'web/**'
|
- 'web/**'
|
||||||
# api source code
|
# api source code
|
||||||
- 'server/api/**'
|
- 'server/api/**'
|
||||||
event: [pull_request, tag, deployment]
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
install_dependencies:
|
install-dependencies:
|
||||||
image: *node_image
|
image: *node_image
|
||||||
directory: web/
|
directory: web/
|
||||||
commands:
|
commands:
|
||||||
|
@ -29,7 +25,7 @@ steps:
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
depends_on:
|
depends_on:
|
||||||
- install_dependencies
|
- install-dependencies
|
||||||
image: *node_image
|
image: *node_image
|
||||||
directory: web/
|
directory: web/
|
||||||
commands:
|
commands:
|
||||||
|
@ -39,7 +35,7 @@ steps:
|
||||||
|
|
||||||
formatcheck:
|
formatcheck:
|
||||||
depends_on:
|
depends_on:
|
||||||
- install_dependencies
|
- install-dependencies
|
||||||
image: *node_image
|
image: *node_image
|
||||||
directory: web/
|
directory: web/
|
||||||
commands:
|
commands:
|
||||||
|
@ -49,7 +45,7 @@ steps:
|
||||||
|
|
||||||
typecheck:
|
typecheck:
|
||||||
depends_on:
|
depends_on:
|
||||||
- install_dependencies
|
- install-dependencies
|
||||||
image: *node_image
|
image: *node_image
|
||||||
directory: web/
|
directory: web/
|
||||||
commands:
|
commands:
|
||||||
|
@ -59,7 +55,7 @@ steps:
|
||||||
|
|
||||||
test:
|
test:
|
||||||
depends_on:
|
depends_on:
|
||||||
- install_dependencies
|
- install-dependencies
|
||||||
image: *node_image
|
image: *node_image
|
||||||
directory: web/
|
directory: web/
|
||||||
commands:
|
commands:
|
||||||
|
|
Loading…
Reference in a new issue