When build, it copies generated binaries to image, which will be used later by other jobs.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos 2023-10-09 18:26:16 +02:00
parent a7770a7e57
commit b74c4070d1
No known key found for this signature in database
GPG Key ID: C0095B7870A4CCD3

View File

@ -6,3 +6,9 @@ build_image
run_in_docker mkdir -p build_in_docker
run_in_docker -w "$PWD/build_in_docker" cmake -DENABLE_EMULATION=1 ..
run_in_docker -w "$PWD/build_in_docker" make -j ${NUM_PROC}
docker create --name temp_container pico-hsm-test:bullseye
docker cp $PWD/build_in_docker/pico_hsm temp_container:/pico_hsm
docker commit temp_container pico-hsm-test:bullseye
docker stop temp_container
docker rm temp_container
docker rmi $(docker images -f "dangling=true" -q)