This commit is contained in:
scrungus 2023-02-03 16:51:29 +00:00
parent ccdb0c1384
commit 7a61137099
3 changed files with 20 additions and 27 deletions

View File

@ -1,26 +0,0 @@
name: test and publish
on:
push:
branches:
- main
- "feature/*"
- "fix/*"
jobs:
lint:
uses: ./.github/workflows/lint.yaml
sync_images:
needs: [lint]
uses: ./.github/workflows/sync-images.yaml
secrets: inherit
test:
needs: [sync_images]
uses: ./.github/workflows/test.yaml
secrets: inherit
publish:
needs: [test]
uses: ./.github/workflows/publish-artifacts.yaml
secrets: inherit

View File

@ -1,6 +1,8 @@
name: publish artifacts
on:
workflow_call:
push:
release:
types: [created]
jobs:
build_push_utils_image:

View File

@ -11,6 +11,15 @@ jobs:
capi: ["v1.3.2"]
capo: ["v0.7.0-stackhpc.3"]
addonprovider: ["0.1.0-dev.0.main.21"]
shouldRun:
- github.event.pull_request.draft
exclude:
- version: kube-1-23
shouldRun: true
- version: kube-1-24
shouldRun: true
- version: kube-1-25
shouldRun: true
max-parallel: 1
fail-fast: false
steps:
@ -221,6 +230,14 @@ jobs:
run: sonobuoy run --mode quick --wait
env:
KUBECONFIG: ./kubeconfig
if: matrix.version != kube-1-26 or github.event.pull_request.draft == true
- name: Run sonobuoy [smoke]
timeout-minutes: 20
run: sonobuoy run --wait
env:
KUBECONFIG: ./kubeconfig
if: matrix.version == kube-1-26 and github.event.pull_request.draft == false
- name: Print logs
if: ${{ always() }}