mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-12 20:39:30 +00:00
cc: gha: Export MEASURE_ROOTFS=yes for rootfs-image builds
We need to export MEASURED_ROOTFS=yes for the rootfs-image builds, as shown here[0], otherwise the root_hash.txt file won't be generated. A huge thanks to Choi for quickly finding this out. Fixes: #7235 [0]: https://github.com/kata-containers/kata-containers/blob/CCv0/tools/osbuilder/image-builder/image_builder.sh#L507, Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
@@ -34,6 +34,10 @@ jobs:
|
||||
asset: cc-kernel
|
||||
- measured_rootfs: yes
|
||||
asset: cc-tdx-kernel
|
||||
- measured_rootfs: yes
|
||||
asset: cc-rootfs-image
|
||||
- measured_rootfs: yes
|
||||
asset: cc-tdx-rootfs-image
|
||||
steps:
|
||||
- name: Login to Kata Containers quay.io
|
||||
uses: docker/login-action@v2
|
||||
|
@@ -23,6 +23,8 @@ jobs:
|
||||
include:
|
||||
- measured_rootfs: yes
|
||||
asset: cc-kernel
|
||||
- measured_rootfs: yes
|
||||
asset: cc-rootfs-image
|
||||
steps:
|
||||
- name: Login to Kata Containers quay.io
|
||||
uses: docker/login-action@v2
|
||||
|
4
.github/workflows/cc-payload-amd64.yaml
vendored
4
.github/workflows/cc-payload-amd64.yaml
vendored
@@ -34,6 +34,10 @@ jobs:
|
||||
asset: cc-kernel
|
||||
- measured_rootfs: yes
|
||||
asset: cc-tdx-kernel
|
||||
- measured_rootfs: yes
|
||||
asset: cc-rootfs-image
|
||||
- measured_rootfs: yes
|
||||
asset: cc-tdx-rootfs-image
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Build ${{ matrix.asset }}
|
||||
|
2
.github/workflows/cc-payload-s390x.yaml
vendored
2
.github/workflows/cc-payload-s390x.yaml
vendored
@@ -20,6 +20,8 @@ jobs:
|
||||
include:
|
||||
- measured_rootfs: yes
|
||||
asset: cc-kernel
|
||||
- measured_rootfs: yes
|
||||
asset: cc-rootfs-image
|
||||
steps:
|
||||
- name: Adjust a permission for repo
|
||||
run: |
|
||||
|
@@ -255,6 +255,7 @@ install_cc_image() {
|
||||
root_hash_suffix="${4:-""}"
|
||||
tee="${5:-""}"
|
||||
export KATA_BUILD_CC=yes
|
||||
export MEASURED_ROOTFS=${MEASURED_ROOTFS}
|
||||
|
||||
local jenkins="${jenkins_url}/job/kata-containers-2.0-rootfs-image-cc-$(uname -m)/${cached_artifacts_path}"
|
||||
local component="rootfs-image"
|
||||
|
Reference in New Issue
Block a user