diff --git a/.github/workflows/ci-nightly.yaml b/.github/workflows/ci-nightly.yaml new file mode 100644 index 0000000000..d3a604e506 --- /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 7eb1491a50..7a1bcdd223 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: