Merge pull request #7607 from fidencio/topic/create-image-to-be-used-by-the-confidential-tests-follow-up-2

ci: create-confidential-image: Add dependent actions
This commit is contained in:
Fabiano Fidêncio 2023-08-09 19:53:49 +02:00 committed by GitHub
commit ebc86091d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,6 +33,17 @@ jobs:
build-and-publish-tee-confidential-unencrypted-image: build-and-publish-tee-confidential-unencrypted-image:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: 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 - name: Login to Kata Containers ghcr.io
uses: docker/login-action@v2 uses: docker/login-action@v2
with: with:
@ -40,13 +51,8 @@ jobs:
username: ${{ github.actor }} username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout code
uses: actions/checkout@v3
with:
ref: ${{ inputs.commit-hash }}
- name: Docker build and push - name: Docker build and push
uses: docker/build-and-push-action@v3 uses: docker/build-push-action@v4
with: with:
tags: ghcr.io/kata-containers/test-images:unencrypted-${{ inputs.pr-number }} tags: ghcr.io/kata-containers/test-images:unencrypted-${{ inputs.pr-number }}
push: true push: true