Fix release branch and tagging (#2033)

frontport pipeline fixes
This commit is contained in:
6543 2023-07-25 16:29:01 +02:00 committed by GitHub
parent 84b597478f
commit c695175d21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 19 additions and 7 deletions

View file

@ -1,7 +1,9 @@
when: when:
- event: [pull_request, tag] - event: [pull_request, tag]
- event: push - event: push
branch: [ main, release/* ] branch:
- ${CI_REPO_DEFAULT_BRANCH}
- release/*
depends_on: depends_on:
- test - test
@ -85,8 +87,10 @@ steps:
TAGS: bindata sqlite sqlite_unlock_notify netgo TAGS: bindata sqlite sqlite_unlock_notify netgo
XGO_VERSION: *xgo_version XGO_VERSION: *xgo_version
when: when:
branch: ${CI_REPO_DEFAULT_BRANCH} branch:
event: push - ${CI_REPO_DEFAULT_BRANCH}
- release/*
event: [push, tag]
publish-next-server: publish-next-server:
image: woodpeckerci/plugin-docker-buildx image: woodpeckerci/plugin-docker-buildx

View file

@ -1,7 +1,9 @@
when: when:
- event: pull_request - event: pull_request
- event: push - event: push
branch: [ main, release/* ] branch:
- ${CI_REPO_DEFAULT_BRANCH}
- release/*
variables: variables:

View file

@ -1,7 +1,9 @@
when: when:
- event: [ pull_request, cron ] - event: [ pull_request, cron ]
- event: push - event: push
branch: [ main, release/* ] branch:
- ${CI_REPO_DEFAULT_BRANCH}
- release/*
variables: variables:
- &trivy_image aquasec/trivy:latest - &trivy_image aquasec/trivy:latest

View file

@ -1,7 +1,9 @@
when: when:
- event: [pull_request, tag] - event: [pull_request, tag]
- event: push - event: push
branch: [ main, release/* ] branch:
- ${CI_REPO_DEFAULT_BRANCH}
- release/*
variables: variables:
- &golang_image 'golang:1.20.2' - &golang_image 'golang:1.20.2'

View file

@ -1,7 +1,9 @@
when: when:
- event: [pull_request, tag] - event: [pull_request, tag]
- event: push - event: push
branch: [ main, release/* ] branch:
- ${CI_REPO_DEFAULT_BRANCH}
- release/*
variables: variables:
- &node_image 'node:18-alpine' - &node_image 'node:18-alpine'