mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-20 12:44:38 +00:00
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:
parent
106e305717
commit
e067d18333
20
.github/workflows/ci-nightly.yaml
vendored
Normal file
20
.github/workflows/ci-nightly.yaml
vendored
Normal 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
|
5
.github/workflows/ci.yaml
vendored
5
.github/workflows/ci.yaml
vendored
@ -31,7 +31,6 @@ jobs:
|
|||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
run-k8s-tests-on-aks:
|
run-k8s-tests-on-aks:
|
||||||
if: ${{ contains(github.event.pull_request.labels.*.name, 'ok-to-test') }}
|
|
||||||
needs: publish-kata-deploy-payload-amd64
|
needs: publish-kata-deploy-payload-amd64
|
||||||
uses: ./.github/workflows/run-k8s-tests-on-aks.yaml
|
uses: ./.github/workflows/run-k8s-tests-on-aks.yaml
|
||||||
with:
|
with:
|
||||||
@ -42,7 +41,6 @@ jobs:
|
|||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
run-k8s-tests-on-sev:
|
run-k8s-tests-on-sev:
|
||||||
if: ${{ contains(github.event.pull_request.labels.*.name, 'ok-to-test') }}
|
|
||||||
needs: publish-kata-deploy-payload-amd64
|
needs: publish-kata-deploy-payload-amd64
|
||||||
uses: ./.github/workflows/run-k8s-tests-on-sev.yaml
|
uses: ./.github/workflows/run-k8s-tests-on-sev.yaml
|
||||||
with:
|
with:
|
||||||
@ -52,7 +50,6 @@ jobs:
|
|||||||
commit-hash: ${{ inputs.commit-hash }}
|
commit-hash: ${{ inputs.commit-hash }}
|
||||||
|
|
||||||
run-k8s-tests-on-snp:
|
run-k8s-tests-on-snp:
|
||||||
if: ${{ contains(github.event.pull_request.labels.*.name, 'ok-to-test') }}
|
|
||||||
needs: publish-kata-deploy-payload-amd64
|
needs: publish-kata-deploy-payload-amd64
|
||||||
uses: ./.github/workflows/run-k8s-tests-on-snp.yaml
|
uses: ./.github/workflows/run-k8s-tests-on-snp.yaml
|
||||||
with:
|
with:
|
||||||
@ -63,7 +60,6 @@ jobs:
|
|||||||
commit-hash: ${{ inputs.commit-hash }}
|
commit-hash: ${{ inputs.commit-hash }}
|
||||||
|
|
||||||
run-k8s-tests-on-tdx:
|
run-k8s-tests-on-tdx:
|
||||||
if: ${{ contains(github.event.pull_request.labels.*.name, 'ok-to-test') }}
|
|
||||||
needs: publish-kata-deploy-payload-amd64
|
needs: publish-kata-deploy-payload-amd64
|
||||||
uses: ./.github/workflows/run-k8s-tests-on-tdx.yaml
|
uses: ./.github/workflows/run-k8s-tests-on-tdx.yaml
|
||||||
with:
|
with:
|
||||||
@ -73,7 +69,6 @@ jobs:
|
|||||||
commit-hash: ${{ inputs.commit-hash }}
|
commit-hash: ${{ inputs.commit-hash }}
|
||||||
|
|
||||||
run-metrics-tests:
|
run-metrics-tests:
|
||||||
if: ${{ contains(github.event.pull_request.labels.*.name, 'ok-to-test') }}
|
|
||||||
needs: build-kata-static-tarball-amd64
|
needs: build-kata-static-tarball-amd64
|
||||||
uses: ./.github/workflows/run-metrics.yaml
|
uses: ./.github/workflows/run-metrics.yaml
|
||||||
with:
|
with:
|
||||||
|
Loading…
Reference in New Issue
Block a user