@@ -242,7 +242,7 @@ jobs:
242242 tar -xvf debs_amd64.tar
243243 container/image-builder.sh -m dev
244244 - name : Save docker image
245- run : docker save --output cuttlefish-orchestration.tar cuttlefish-orchestration
245+ run : docker save --output cuttlefish-orchestration.tar cuttlefish-orchestration:latest
246246 - name : Publish docker image
247247 uses : actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # aka v4.0.0
248248 with :
@@ -264,7 +264,7 @@ jobs:
264264 tar -xvf debs_arm64.tar
265265 container/image-builder.sh -m dev
266266 - name : Save docker image
267- run : docker save --output cuttlefish-orchestration.tar cuttlefish-orchestration
267+ run : docker save --output cuttlefish-orchestration.tar cuttlefish-orchestration:latest
268268 - name : Publish docker image
269269 uses : actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # aka v4.0.0
270270 with :
@@ -394,3 +394,31 @@ jobs:
394394 # Run create_from_images_zip_test e2e tests
395395 cd e2etests
396396 bazel test orchestration/create_from_images_zip_test:create_from_images_zip_test_test
397+ podman-image-check :
398+ runs-on : ubuntu-22.04
399+ needs : [build-docker-image-amd64]
400+ steps :
401+ - name : Checkout repository
402+ uses : actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675 # aka v2
403+ - name : Download docker image
404+ uses : actions/download-artifact@v4
405+ with :
406+ name : cuttlefish-orchestration-amd64
407+ - name : Load docker image as podman image
408+ run : |
409+ sudo apt install -y skopeo
410+ sudo skopeo copy \
411+ docker-archive:cuttlefish-orchestration.tar \
412+ containers-storage:localhost/cuttlefish-orchestration:latest
413+ - name : Run check
414+ shell : bash
415+ run : |
416+ sudo podman run --privileged -d -p 2080:2080 localhost/cuttlefish-orchestration:latest
417+ # Wait for HO service to start.
418+ sleep 10s
419+ res=$( curl -v http://localhost:2080/cvds )
420+ echo "response: ${res}"
421+ test "${res}" = '{"cvds":[]}'
422+ # Run create_from_images_zip_test e2e tests
423+ cd e2etests
424+ bazel test orchestration/create_from_images_zip_test:create_from_images_zip_test_test
0 commit comments