Merge pull request #1149 from fluxcd/ci-release-workflows
ci: various workflow changes
This commit is contained in:
commit
34e5dc7849
|
@ -2,7 +2,8 @@ name: fuzz
|
|||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
- 'main'
|
||||
- 'release/**'
|
||||
paths-ignore:
|
||||
- 'CHANGELOG.md'
|
||||
- 'README.md'
|
||||
|
|
|
@ -8,7 +8,8 @@ on:
|
|||
- 'MAINTAINERS'
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- 'main'
|
||||
- 'release/**'
|
||||
|
||||
permissions:
|
||||
contents: read # for actions/checkout to fetch code
|
||||
|
@ -28,8 +29,8 @@ jobs:
|
|||
**/go.sum
|
||||
**/go.mod
|
||||
- name: Enable integration tests
|
||||
# Only run integration tests for main branch
|
||||
if: github.ref == 'refs/heads/main'
|
||||
# Only run integration tests for main and release branches
|
||||
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/')
|
||||
run: |
|
||||
echo 'GO_TAGS=integration' >> $GITHUB_ENV
|
||||
- name: Setup Kubernetes
|
||||
|
@ -63,8 +64,8 @@ jobs:
|
|||
**/go.sum
|
||||
**/go.mod
|
||||
- name: Enable integration tests
|
||||
# Only run integration tests for main branch
|
||||
if: github.ref == 'refs/heads/main'
|
||||
# Only run integration tests for main and release branches
|
||||
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/')
|
||||
run: |
|
||||
echo 'GO_TAGS=integration' >> $GITHUB_ENV
|
||||
- name: Prepare
|
||||
|
|
|
@ -7,7 +7,7 @@ on:
|
|||
inputs:
|
||||
tag:
|
||||
description: 'image tag prefix'
|
||||
default: 'rc'
|
||||
default: 'preview'
|
||||
required: true
|
||||
|
||||
permissions:
|
||||
|
|
|
@ -2,9 +2,9 @@ name: scan
|
|||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
branches: [ 'main', 'release/**' ]
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
branches: [ 'main', 'release/**' ]
|
||||
schedule:
|
||||
- cron: '18 10 * * 3'
|
||||
|
||||
|
|
|
@ -9,7 +9,8 @@ on:
|
|||
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- 'main'
|
||||
- 'release/**'
|
||||
|
||||
permissions:
|
||||
contents: read # for actions/checkout to fetch code
|
||||
|
|
|
@ -9,7 +9,8 @@ on:
|
|||
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- 'main'
|
||||
- 'release/**'
|
||||
|
||||
permissions:
|
||||
contents: read # for actions/checkout to fetch code
|
||||
|
|
Loading…
Reference in New Issue