gha: Add a nightly CI job

The idea is to mimic what's been done with Jenkins and the "Green CI"
effort, but now using our GHA and the GHA infrastructure.

Fixes: #7247

Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
Fabiano Fidêncio 2023-05-24 17:31:58 +02:00
parent 106e305717
commit e067d18333
2 changed files with 20 additions and 5 deletions

20
.github/workflows/ci-nightly.yaml vendored Normal file
View File

@ -0,0 +1,20 @@
name: Kata Containers Nightly CI
on:
schedule:
cron: '0 0 * * *'
env:
COMMIT_HASH: ${GITHUB_REF}
jobs:
set-fake-pr-number:
runs-on: ubuntu-latest
run: |
echo "PR_NUMBER=$(date +%Y%m%d%H%M%S)" >> "$GITHUB_ENV"
kata-containers-ci-on-push:
uses: ./.github/workflows/ci.yaml
with:
commit-hash: ${{ env.COMMIT_HASH }}
pr-number: ${{ env.PR_NUMBER }}
tag: ${{ env.PR_NUMBER }}-${{ env.COMMIT_HASH }}-nightly

View File

@ -31,7 +31,6 @@ jobs:
secrets: inherit
run-k8s-tests-on-aks:
if: ${{ contains(github.event.pull_request.labels.*.name, 'ok-to-test') }}
needs: publish-kata-deploy-payload-amd64
uses: ./.github/workflows/run-k8s-tests-on-aks.yaml
with:
@ -42,7 +41,6 @@ jobs:
secrets: inherit
run-k8s-tests-on-sev:
if: ${{ contains(github.event.pull_request.labels.*.name, 'ok-to-test') }}
needs: publish-kata-deploy-payload-amd64
uses: ./.github/workflows/run-k8s-tests-on-sev.yaml
with:
@ -52,7 +50,6 @@ jobs:
commit-hash: ${{ inputs.commit-hash }}
run-k8s-tests-on-snp:
if: ${{ contains(github.event.pull_request.labels.*.name, 'ok-to-test') }}
needs: publish-kata-deploy-payload-amd64
uses: ./.github/workflows/run-k8s-tests-on-snp.yaml
with:
@ -63,7 +60,6 @@ jobs:
commit-hash: ${{ inputs.commit-hash }}
run-k8s-tests-on-tdx:
if: ${{ contains(github.event.pull_request.labels.*.name, 'ok-to-test') }}
needs: publish-kata-deploy-payload-amd64
uses: ./.github/workflows/run-k8s-tests-on-tdx.yaml
with:
@ -73,7 +69,6 @@ jobs:
commit-hash: ${{ inputs.commit-hash }}
run-metrics-tests:
if: ${{ contains(github.event.pull_request.labels.*.name, 'ok-to-test') }}
needs: build-kata-static-tarball-amd64
uses: ./.github/workflows/run-metrics.yaml
with: