diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 1df5a9717d..f2088e2fd7 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -33,6 +33,17 @@ jobs: build-and-publish-tee-confidential-unencrypted-image: runs-on: ubuntu-latest steps: + - name: Checkout code + uses: actions/checkout@v3 + with: + ref: ${{ inputs.commit-hash }} + + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - name: Login to Kata Containers ghcr.io uses: docker/login-action@v2 with: @@ -40,13 +51,8 @@ jobs: 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 + uses: docker/build-push-action@v4 with: tags: ghcr.io/kata-containers/test-images:unencrypted-${{ inputs.pr-number }} push: true