File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed
.github/actions/build_aws_eif Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change 8181 run : |
8282 make -f ${{ inputs.makefile }} ${{ inputs.identity_scope }}operator.eif
8383
84- - name : Verify EIF
85- shell : bash
86- run : |
87- nitro-cli describe-eif --eif-path $1.eif
88-
8984 - name : Free up space
9085 shell : bash
9186 run : |
@@ -122,10 +117,22 @@ runs:
122117 docker cp amazonlinux:/sockd ${ARTIFACTS_OUTPUT_DIR}/
123118 docker cp amazonlinux:/vsockpx ${ARTIFACTS_OUTPUT_DIR}/
124119 docker cp amazonlinux:/${{ inputs.identity_scope }}operator.eif ${ARTIFACTS_OUTPUT_DIR}/uid2operator.eif
120+
121+ eifsize=$(wc -c < "${ARTIFACTS_OUTPUT_DIR}/uid2operator.eif")
122+ if [ $eifsize -le 1 ]; then
123+ echo "The eif was less then 1 byte. This indicates a build failure"
124+ exit 1
125+ fi
125126
126127 docker cp amazonlinux:/pcr0.txt ${{ steps.buildFolder.outputs.BUILD_FOLDER }}
127128 docker cp amazonlinux:/pcr0.txt ${ARTIFACTS_OUTPUT_DIR}/
128129 echo "enclave_id=$(cat ${{ steps.buildFolder.outputs.BUILD_FOLDER}}/pcr0.txt)" >> $GITHUB_OUTPUT
130+
131+ pcrsize=$(wc -c < "${{ steps.buildFolder.outputs.BUILD_FOLDER}}/pcr0.txtf")
132+ if [ $pcrsize -le 1 ]; then
133+ echo "The pcr0.txt file was less then 1 byte. This indicates a build failure"
134+ exit 1
135+ fi
129136
130137 - name : Cleanup
131138 shell : bash
You can’t perform that action at this time.
0 commit comments