From c695175d21908567cc2786d3a5e86de108e63b8a Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Tue, 25 Jul 2023 16:29:01 +0200 Subject: [PATCH] Fix release branch and tagging (#2033) frontport pipeline fixes --- .woodpecker/docker.yml | 10 +++++++--- .woodpecker/docs.yml | 4 +++- .woodpecker/securityscan.yml | 4 +++- .woodpecker/test.yml | 4 +++- .woodpecker/web.yml | 4 +++- 5 files changed, 19 insertions(+), 7 deletions(-) diff --git a/.woodpecker/docker.yml b/.woodpecker/docker.yml index ee62077ce..2a1c28c6c 100644 --- a/.woodpecker/docker.yml +++ b/.woodpecker/docker.yml @@ -1,7 +1,9 @@ when: - event: [pull_request, tag] - event: push - branch: [ main, release/* ] + branch: + - ${CI_REPO_DEFAULT_BRANCH} + - release/* depends_on: - test @@ -85,8 +87,10 @@ steps: TAGS: bindata sqlite sqlite_unlock_notify netgo XGO_VERSION: *xgo_version when: - branch: ${CI_REPO_DEFAULT_BRANCH} - event: push + branch: + - ${CI_REPO_DEFAULT_BRANCH} + - release/* + event: [push, tag] publish-next-server: image: woodpeckerci/plugin-docker-buildx diff --git a/.woodpecker/docs.yml b/.woodpecker/docs.yml index e48a43d4b..3fc7a5456 100644 --- a/.woodpecker/docs.yml +++ b/.woodpecker/docs.yml @@ -1,7 +1,9 @@ when: - event: pull_request - event: push - branch: [ main, release/* ] + branch: + - ${CI_REPO_DEFAULT_BRANCH} + - release/* variables: diff --git a/.woodpecker/securityscan.yml b/.woodpecker/securityscan.yml index aeb9021dd..022fc114e 100644 --- a/.woodpecker/securityscan.yml +++ b/.woodpecker/securityscan.yml @@ -1,7 +1,9 @@ when: - event: [ pull_request, cron ] - event: push - branch: [ main, release/* ] + branch: + - ${CI_REPO_DEFAULT_BRANCH} + - release/* variables: - &trivy_image aquasec/trivy:latest diff --git a/.woodpecker/test.yml b/.woodpecker/test.yml index 850df82a9..a6330f09f 100644 --- a/.woodpecker/test.yml +++ b/.woodpecker/test.yml @@ -1,7 +1,9 @@ when: - event: [pull_request, tag] - event: push - branch: [ main, release/* ] + branch: + - ${CI_REPO_DEFAULT_BRANCH} + - release/* variables: - &golang_image 'golang:1.20.2' diff --git a/.woodpecker/web.yml b/.woodpecker/web.yml index 8d4b7b96d..96d3483fc 100644 --- a/.woodpecker/web.yml +++ b/.woodpecker/web.yml @@ -1,7 +1,9 @@ when: - event: [pull_request, tag] - event: push - branch: [ main, release/* ] + branch: + - ${CI_REPO_DEFAULT_BRANCH} + - release/* variables: - &node_image 'node:18-alpine'