Skip to content

Commit b4faed8

Browse files
committed
wip: gcp: echo gcloud commands for image creation
1 parent df90b9a commit b4faed8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

mkosi.profiles/gcp/mkosi.postoutput

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,11 @@ touch -d "2024-01-01 00:00:00 UTC" "$TMP/disk.raw" 2>/dev/null || true
5151
tar --format=oldgnu -Sczf "$TAR" -C "$TMP" disk.raw
5252

5353
rm -rf "$TMP"
54+
55+
IMAGE_NAME="bob-l2-poc-ilya-tmp-$(date +%s)"
56+
GS_PATH="gs://flashbots-artifacts-us-east5/${IMAGE_NAME}.tar.gz"
57+
58+
echo export CLOUDSDK_CORE_PROJECT=flashbots-artifacts
59+
echo gcloud storage cp ./build/tdx-debian.tar.gz "${GS_PATH}"
60+
echo gcloud beta compute images create --guest-os-features TDX_CAPABLE,UEFI_COMPATIBLE --source-uri "${GS_PATH}" "${IMAGE_NAME}"
61+
echo "This will create GCP image: projects/flashbots-artifacts/global/images/${IMAGE_NAME}"

0 commit comments

Comments
 (0)