From e067d183336ce0bb4f79d922787d44bc1e6144f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Wed, 24 May 2023 17:31:58 +0200 Subject: [PATCH] gha: Add a nightly CI job MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .github/workflows/ci-nightly.yaml | 20 ++++++++++++++++++++ .github/workflows/ci.yaml | 5 ----- 2 files changed, 20 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/ci-nightly.yaml diff --git a/.github/workflows/ci-nightly.yaml b/.github/workflows/ci-nightly.yaml new file mode 100644 index 000000000..d3a604e50 --- /dev/null +++ b/.github/workflows/ci-nightly.yaml @@ -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 diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 7eb1491a5..7a1bcdd22 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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: