diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 52a86b08d3..da09da4a44 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -30,6 +30,30 @@ jobs: commit-hash: ${{ inputs.commit-hash }} secrets: inherit + build-and-publish-tee-confidential-unencrypted-image: + runs-on: ubuntu-latest + steps: + - name: Login to Kata Containers ghcr.io + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Checkout code + uses: actions/checkout@v3 + with: + ref: ${{ inputs.commit-hash }} + + - name: Docker build and push + uses: docker/build-and-push-action@v3 + with: + tags: ghcr.io/kata-containers/test-images:unencrypted-${{ pr-number }} + push: true + context: . + platforms: linux/amd64, linux/s390x + file: tests/integration/kubernetes/runtimeclass_workloads/confidential/unencrypted/Dockerfile + run-k8s-tests-on-aks: needs: publish-kata-deploy-payload-amd64 uses: ./.github/workflows/run-k8s-tests-on-aks.yaml @@ -42,7 +66,7 @@ jobs: secrets: inherit run-k8s-tests-on-sev: - needs: publish-kata-deploy-payload-amd64 + needs: [publish-kata-deploy-payload-amd64, build-and-publish-tee-confidential-unencrypted-image] uses: ./.github/workflows/run-k8s-tests-on-sev.yaml with: registry: ghcr.io @@ -51,7 +75,7 @@ jobs: commit-hash: ${{ inputs.commit-hash }} run-k8s-tests-on-snp: - needs: publish-kata-deploy-payload-amd64 + needs: [publish-kata-deploy-payload-amd64, build-and-publish-tee-confidential-unencrypted-image] uses: ./.github/workflows/run-k8s-tests-on-snp.yaml with: registry: ghcr.io @@ -60,7 +84,7 @@ jobs: commit-hash: ${{ inputs.commit-hash }} run-k8s-tests-on-tdx: - needs: publish-kata-deploy-payload-amd64 + needs: [publish-kata-deploy-payload-amd64, build-and-publish-tee-confidential-unencrypted-image] uses: ./.github/workflows/run-k8s-tests-on-tdx.yaml with: registry: ghcr.io